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
DeleteExpression.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
12
class
DeleteExpression
extends
Expression
13
{
14
19
var
$value
;
20
27
function
__construct
(
$column_name
,
$value
)
28
{
29
parent::__construct(
$column_name
);
30
$this->value =
$value
;
31
}
32
37
function
getExpression
()
38
{
39
return
"$this->column_name = $this->value"
;
40
}
41
42
function
getValue
()
43
{
44
// TODO Escape value according to column type instead of variable type
45
if
(!is_numeric($this->value))
46
{
47
return
"'"
. $this->value .
"'"
;
48
}
49
return
$this->value
;
50
}
51
52
function
show
()
53
{
54
if
(!$this->value)
55
{
56
return
false
;
57
}
58
return
true
;
59
}
60
61
}
62
/* End of file DeleteExpression.class.php */
63
/* Location: ./classes/db/queryparts/expression/DeleteExpression.class.php */
DeleteExpression\getValue
getValue()
Definition:
DeleteExpression.class.php:42
DeleteExpression\show
show()
Definition:
DeleteExpression.class.php:52
DeleteExpression\$value
$value
Definition:
DeleteExpression.class.php:19
Expression
Definition:
Expression.class.php:16
DeleteExpression\__construct
__construct($column_name, $value)
Definition:
DeleteExpression.class.php:27
DeleteExpression\getExpression
getExpression()
Definition:
DeleteExpression.class.php:37
DeleteExpression
Definition:
DeleteExpression.class.php:12
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