Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ConditionParser Class Reference

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
 

Detailed Description

Represents a query condition.

Ubiquity\orm\parser$ConditionParser This class is part of Ubiquity

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.6

Definition at line 17 of file ConditionParser.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $condition = null,
  $firstPart = null,
  $params = null 
)

Definition at line 29 of file ConditionParser.php.

Member Function Documentation

◆ addKeyValues()

addKeyValues (   $keyValues,
  $classname,
  $separator = ' AND ' 
)

Definition at line 46 of file ConditionParser.php.

◆ addParams()

addParams (   $value)
private

Definition at line 79 of file ConditionParser.php.

◆ addPart()

addPart (   $condition,
  $value 
)

Definition at line 86 of file ConditionParser.php.

◆ addParts()

addParts (   $condition,
  $values 
)

Definition at line 94 of file ConditionParser.php.

◆ compileParts()

compileParts (   $separator = ' OR ')

Definition at line 102 of file ConditionParser.php.

◆ countParts()

countParts ( )

Definition at line 177 of file ConditionParser.php.

◆ getCondition()

getCondition ( )
Returns
string

Definition at line 139 of file ConditionParser.php.

◆ getParams()

getParams ( )
Returns
mixed

Definition at line 153 of file ConditionParser.php.

◆ hasParam()

hasParam (   $value)
Returns
mixed

Definition at line 167 of file ConditionParser.php.

◆ limitOne()

limitOne ( )

Definition at line 202 of file ConditionParser.php.

◆ parseKey()

parseKey (   $keyValues,
  $className 
)
private

Definition at line 125 of file ConditionParser.php.

◆ prepareKeys()

prepareKeys ( array  $keys)

Definition at line 37 of file ConditionParser.php.

◆ refactorParts()

refactorParts ( )
private

Definition at line 116 of file ConditionParser.php.

◆ setCondition()

setCondition (   $condition)
Parameters
string$condition

Definition at line 187 of file ConditionParser.php.

◆ setKeyValues()

setKeyValues (   $values)

Definition at line 70 of file ConditionParser.php.

◆ setParams()

setParams (   $params)
Parameters
mixed$params

Definition at line 196 of file ConditionParser.php.

◆ simple()

static simple (   $condition,
  $params 
)
static

Definition at line 210 of file ConditionParser.php.

Field Documentation

◆ $condition

$condition
private

Definition at line 21 of file ConditionParser.php.

◆ $firstPart

$firstPart
private

Definition at line 19 of file ConditionParser.php.

◆ $invertedParams

$invertedParams = true
private

Definition at line 27 of file ConditionParser.php.

◆ $params

$params
private

Definition at line 25 of file ConditionParser.php.

◆ $parts

$parts = []
private

Definition at line 23 of file ConditionParser.php.


The documentation for this class was generated from the following file: