abstract class AbstractCriterion
This is an "inner" class that describes an object in the criteria.
In Torque this is an inner class of the Criteria class.
Constants
UND |
|
ODER |
|
Methods
__construct(Criteria $outer, string $column, mixed $value, string $comparison = null)
Create a new instance. |
||
init(Criteria $criteria)
Init some properties with the help of outer class |
||
string |
getColumn()
Get the column name. |
|
void |
setTable(string $name)
Set the table name. |
|
string |
getTable()
Get the table name. |
|
string |
getComparison()
Get the comparison. |
|
mixed |
getValue()
Get the value. |
|
AdapterInterface |
getAdapter()
Get the adapter. |
|
void |
setAdapter(AdapterInterface $v)
Set the adapter. |
|
array |
getConjunctions()
Get the list of conjunctions in this Criterion |
|
addAnd(AbstractCriterion $criterion)
Append an AND Criterion onto this Criterion's list. |
||
Criterion |
addOr(AbstractCriterion $criterion)
Append an OR Criterion onto this Criterion's list. |
|
void |
appendPsTo(string $sb, array $params)
Appends a Prepared Statement representation of the Criterion onto the buffer. |
|
__toString() | ||
boolean |
equals($obj)
This method checks another Criteria to see if they contain the same attributes and hashtable entries. |
|
array |
getAllTables()
Get all tables from nested criterion objects |
|
Criterion[] |
getAttachedCriterion()
get an array of all criterion attached to this recursing through all sub criterion |
|
__clone()
Ensures deep cloning of attached objects |
Details
at line 85
public
__construct(Criteria $outer, string $column, mixed $value, string $comparison = null)
Create a new instance.
at line 97
public
init(Criteria $criteria)
Init some properties with the help of outer class
at line 139
public string
getColumn()
Get the column name.
at line 150
public void
setTable(string $name)
Set the table name.
at line 160
public string
getTable()
Get the table name.
at line 170
public string
getComparison()
Get the comparison.
at line 180
public mixed
getValue()
Get the value.
at line 192
public AdapterInterface
getAdapter()
Get the adapter.
The AdapterInterface which might be used to get db specific
variations of sql.
at line 204
public void
setAdapter(AdapterInterface $v)
Set the adapter.
The AdapterInterface might be used to get db specific variations of sql.
at line 225
public array
getConjunctions()
Get the list of conjunctions in this Criterion
at line 233
public
addAnd(AbstractCriterion $criterion)
Append an AND Criterion onto this Criterion's list.
at line 245
public Criterion
addOr(AbstractCriterion $criterion)
Append an OR Criterion onto this Criterion's list.
at line 263
public void
appendPsTo(string $sb, array $params)
Appends a Prepared Statement representation of the Criterion onto the buffer.
at line 278
public
__toString()
at line 300
public boolean
equals($obj)
This method checks another Criteria to see if they contain the same attributes and hashtable entries.
at line 341
public array
getAllTables()
Get all tables from nested criterion objects
at line 367
public Criterion[]
getAttachedCriterion()
get an array of all criterion attached to this recursing through all sub criterion
at line 380
public
__clone()
Ensures deep cloning of attached objects