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
condition
ConditionWithoutArgument.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
9
class
ConditionWithoutArgument
extends
Condition
10
{
11
20
function
__construct
(
$column_name
,
$argument
,
$operation
,
$pipe
=
""
)
21
{
22
parent::__construct(
$column_name
,
$argument
,
$operation
,
$pipe
);
23
$tmpArray = array(
'in'
=> 1,
'notin'
=> 1,
'not_in'
=> 1);
24
if
(isset($tmpArray[
$operation
]))
25
{
26
if
(is_array(
$argument
))
27
{
28
$argument
= implode(
$argument
,
','
);
29
}
30
$this->_value =
'('
.
$argument
.
')'
;
31
}
32
else
33
{
34
$this->_value =
$argument
;
35
}
36
}
37
38
}
39
/* End of file ConditionWithoutArgument.class.php */
40
/* Location: ./classes/db/queryparts/condition/ConditionWithoutArgument.class.php */
Condition\$operation
$operation
Definition:
Condition.class.php:25
ConditionWithoutArgument\__construct
__construct($column_name, $argument, $operation, $pipe="")
Definition:
ConditionWithoutArgument.class.php:20
Condition
Definition:
Condition.class.php:9
Condition\$argument
$argument
Definition:
Condition.class.php:17
Condition\$column_name
$column_name
Definition:
Condition.class.php:16
Condition\$pipe
$pipe
Definition:
Condition.class.php:31
ConditionWithoutArgument
Definition:
ConditionWithoutArgument.class.php:9
Generated on Tue Dec 18 2018 17:04:25 for XpressEngine Core by
1.8.5