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)
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 69
public
__construct(Criteria $outer, $column, $value, $comparison = null)
Create a new instance.
at line 89
public
init(Criteria $criteria)
Init some properties with the help of outer class
at line 112
public string
getColumn()
Get the column name.
at line 123
public void
setTable(name $name)
Set the table name.
at line 133
public string
getTable()
Get the table name.
at line 143
public string
getComparison()
Get the comparison.
at line 153
public mixed
getValue()
Get the value.
at line 164
public DBAdapter
getDB()
Get the value of db.
The DBAdapter which might be used to get db specific
variations of sql.
at line 175
public void
setDB(DBAdapter $v)
Set the value of db.
The DBAdapter might be used to get db specific variations of sql.
at line 189
public Criterion
setIgnoreCase(boolean $b)
Sets ignore case.
at line 200
public boolean
isIgnoreCase()
Is ignore case on or off?
at line 218
public array
getConjunctions()
Get the list of conjunctions in this Criterion
at line 226
public
addAnd(Criterion $criterion)
Append an AND Criterion onto this Criterion's list.
at line 237
public Criterion
addOr(Criterion $criterion)
Append an OR Criterion onto this Criterion's list.
at line 254
public void
appendPsTo(string $sb, array $params)
Appends a Prepared Statement representation of the Criterion onto the buffer.
at line 429
public boolean
equals($obj)
This method checks another Criteria to see if they contain the same attributes and hashtable entries.
at line 469
public
hashCode()
Returns a hash code value for the object.
at line 500
public array
getAllTables()
Get all tables from nested criterion objects
at line 525
public array
getAttachedCriterion()
get an array of all criterion attached to this recursing through all sub criterion
at line 537
public
__clone()
Ensures deep cloning of attached objects