class Criterion
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, $column, $value, $comparison = null, $type = 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(name $name)
Set the table name. |
|
string |
getTable()
Get the table name. |
|
string |
getComparison()
Get the comparison. |
|
mixed |
getValue()
Get the value. |
|
DBAdapter |
getDB()
Get the value of db. |
|
void |
setDB(DBAdapter $v)
Set the value of db. |
|
Criterion |
setIgnoreCase(boolean $b)
Sets ignore case. |
|
boolean |
isIgnoreCase()
Is ignore case on or off? |
|
array |
getConjunctions()
Get the list of conjunctions in this Criterion |
|
addAnd(Criterion $criterion)
Append an AND Criterion onto this Criterion's list. |
||
Criterion |
addOr(Criterion $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. |
|
boolean |
equals($obj)
This method checks another Criteria to see if they contain the same attributes and hashtable entries. |
|
hashCode()
Returns a hash code value for the object. |
||
array |
getAllTables()
Get all tables from nested criterion objects |
|
array |
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 75
public
__construct(Criteria $outer, $column, $value, $comparison = null, $type = null)
Create a new instance.
at line 96
public
init(Criteria $criteria)
Init some properties with the help of outer class
at line 119
public string
getColumn()
Get the column name.
at line 130
public void
setTable(name $name)
Set the table name.
at line 140
public string
getTable()
Get the table name.
at line 150
public string
getComparison()
Get the comparison.
at line 160
public mixed
getValue()
Get the value.
at line 171
public DBAdapter
getDB()
Get the value of db.
The DBAdapter which might be used to get db specific
variations of sql.
at line 182
public void
setDB(DBAdapter $v)
Set the value of db.
The DBAdapter might be used to get db specific variations of sql.
at line 196
public Criterion
setIgnoreCase(boolean $b)
Sets ignore case.
at line 208
public boolean
isIgnoreCase()
Is ignore case on or off?
at line 226
public array
getConjunctions()
Get the list of conjunctions in this Criterion
at line 234
public
addAnd(Criterion $criterion)
Append an AND Criterion onto this Criterion's list.
at line 246
public Criterion
addOr(Criterion $criterion)
Append an OR Criterion onto this Criterion's list.
at line 264
public void
appendPsTo(string $sb, array $params)
Appends a Prepared Statement representation of the Criterion onto the buffer.
at line 463
public boolean
equals($obj)
This method checks another Criteria to see if they contain the same attributes and hashtable entries.
at line 503
public
hashCode()
Returns a hash code value for the object.
at line 534
public array
getAllTables()
Get all tables from nested criterion objects
at line 560
public array
getAttachedCriterion()
get an array of all criterion attached to this recursing through all sub criterion
at line 573
public
__clone()
Ensures deep cloning of attached objects