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
UpdateExpressionWithoutArgument.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
11
class
UpdateExpressionWithoutArgument
extends
UpdateExpression
12
{
13
18
var
$argument
;
19
26
function
__construct
(
$column_name
,
$argument
)
27
{
28
Expression::__construct
(
$column_name
);
29
$this->argument =
$argument
;
30
}
31
32
function
getExpression
($with_value =
true
)
33
{
34
return
"$this->column_name = $this->argument"
;
35
}
36
37
function
getValue
()
38
{
39
// TODO Escape value according to column type instead of variable type
40
$value =
$this->argument
;
41
if
(!is_numeric($value))
42
{
43
return
"'"
. $value .
"'"
;
44
}
45
return
$value;
46
}
47
48
function
show
()
49
{
50
if
(!$this->argument)
51
{
52
return
false
;
53
}
54
$value =
$this->argument
;
55
if
(!isset($value))
56
{
57
return
false
;
58
}
59
return
true
;
60
}
61
62
function
getArgument
()
63
{
64
return
null;
65
}
66
67
function
getArguments
()
68
{
69
return
array();
70
}
71
72
}
73
/* End of file UpdateExpressionWithoutArgument.class.php */
74
/* Location: ./classes/db/queryparts/expression/UpdateExpressionWithoutArgument.class.php */
UpdateExpressionWithoutArgument\__construct
__construct($column_name, $argument)
Definition:
UpdateExpressionWithoutArgument.class.php:26
UpdateExpressionWithoutArgument
Definition:
UpdateExpressionWithoutArgument.class.php:11
Expression\__construct
__construct($column_name)
Definition:
Expression.class.php:30
UpdateExpression
Definition:
UpdateExpression.class.php:11
UpdateExpressionWithoutArgument\getArguments
getArguments()
Definition:
UpdateExpressionWithoutArgument.class.php:67
UpdateExpressionWithoutArgument\$argument
$argument
Definition:
UpdateExpressionWithoutArgument.class.php:18
UpdateExpressionWithoutArgument\getExpression
getExpression($with_value=true)
Definition:
UpdateExpressionWithoutArgument.class.php:32
UpdateExpressionWithoutArgument\show
show()
Definition:
UpdateExpressionWithoutArgument.class.php:48
UpdateExpressionWithoutArgument\getArgument
getArgument()
Definition:
UpdateExpressionWithoutArgument.class.php:62
UpdateExpressionWithoutArgument\getValue
getValue()
Definition:
UpdateExpressionWithoutArgument.class.php:37
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