Ubiquity 2.5.2
php rapid development framework
|
Represents a query condition. More...
Public Member Functions | |
__construct ($condition=null, $firstPart=null, $params=null) | |
prepareKeys (array $keys) | |
addKeyValues ($keyValues, $classname, $separator=' AND ') | |
setKeyValues ($values) | |
addPart ($condition, $value) | |
addParts ($condition, $values) | |
compileParts ($separator=' OR ') | |
getCondition () | |
getParams () | |
hasParam ($value) | |
countParts () | |
setCondition ($condition) | |
setParams ($params) | |
limitOne () | |
Static Public Member Functions | |
static | simple ($condition, $params) |
Private Member Functions | |
addParams ($value) | |
refactorParts () | |
parseKey ($keyValues, $className) | |
Private Attributes | |
$firstPart | |
$condition | |
$parts = [] | |
$params | |
$invertedParams = true | |
Represents a query condition.
Ubiquity\orm\parser$ConditionParser This class is part of Ubiquity
Definition at line 17 of file ConditionParser.php.
__construct | ( | $condition = null , |
|
$firstPart = null , |
|||
$params = null |
|||
) |
Definition at line 29 of file ConditionParser.php.
addKeyValues | ( | $keyValues, | |
$classname, | |||
$separator = ' AND ' |
|||
) |
Definition at line 46 of file ConditionParser.php.
|
private |
Definition at line 79 of file ConditionParser.php.
addPart | ( | $condition, | |
$value | |||
) |
Definition at line 86 of file ConditionParser.php.
addParts | ( | $condition, | |
$values | |||
) |
Definition at line 94 of file ConditionParser.php.
compileParts | ( | $separator = ' OR ' | ) |
Definition at line 102 of file ConditionParser.php.
countParts | ( | ) |
Definition at line 177 of file ConditionParser.php.
getCondition | ( | ) |
Definition at line 139 of file ConditionParser.php.
getParams | ( | ) |
Definition at line 153 of file ConditionParser.php.
hasParam | ( | $value | ) |
Definition at line 167 of file ConditionParser.php.
limitOne | ( | ) |
Definition at line 202 of file ConditionParser.php.
|
private |
Definition at line 125 of file ConditionParser.php.
prepareKeys | ( | array | $keys | ) |
Definition at line 37 of file ConditionParser.php.
|
private |
Definition at line 116 of file ConditionParser.php.
setCondition | ( | $condition | ) |
string | $condition |
Definition at line 187 of file ConditionParser.php.
setKeyValues | ( | $values | ) |
Definition at line 70 of file ConditionParser.php.
setParams | ( | $params | ) |
mixed | $params |
Definition at line 196 of file ConditionParser.php.
|
static |
Definition at line 210 of file ConditionParser.php.
|
private |
Definition at line 21 of file ConditionParser.php.
|
private |
Definition at line 19 of file ConditionParser.php.
|
private |
Definition at line 27 of file ConditionParser.php.
|
private |
Definition at line 25 of file ConditionParser.php.
|
private |
Definition at line 23 of file ConditionParser.php.