XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
classes
db
queryparts
expression
InsertExpression.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
11
class
InsertExpression
extends
Expression
12
{
13
18
var
$argument
;
19
26
function
__construct
(
$column_name
,
$argument
)
27
{
28
parent::__construct(
$column_name
);
29
$this->argument =
$argument
;
30
}
31
32
function
getValue
($with_values =
true
)
33
{
34
if
($with_values)
35
{
36
return
$this->argument->getValue();
37
}
38
return
'?'
;
39
}
40
41
function
show
()
42
{
43
if
(!$this->argument)
44
{
45
return
false
;
46
}
47
$value = $this->argument->getValue();
48
if
(!isset($value))
49
{
50
return
false
;
51
}
52
return
true
;
53
}
54
55
function
getArgument
()
56
{
57
return
$this->argument
;
58
}
59
60
function
getArguments
()
61
{
62
if
($this->argument)
63
{
64
return
array($this->argument);
65
}
66
else
67
{
68
return
array();
69
}
70
}
71
72
}
73
/* End of file InsertExpression.class.php */
74
/* Location: ./classes/db/queryparts/expression/InsertExpression.class.php */
InsertExpression\show
show()
Definition:
InsertExpression.class.php:41
InsertExpression\getArguments
getArguments()
Definition:
InsertExpression.class.php:60
InsertExpression\getArgument
getArgument()
Definition:
InsertExpression.class.php:55
Expression
Definition:
Expression.class.php:16
InsertExpression
Definition:
InsertExpression.class.php:11
InsertExpression\$argument
$argument
Definition:
InsertExpression.class.php:18
InsertExpression\__construct
__construct($column_name, $argument)
Definition:
InsertExpression.class.php:26
InsertExpression\getValue
getValue($with_values=true)
Definition:
InsertExpression.class.php:32
Expression\$column_name
$column_name
Definition:
Expression.class.php:23
Generated on Tue Dec 18 2018 17:04:25 for XpressEngine Core by
1.8.5