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, string $column, mixed $value, string $comparison = null, string $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(string $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(Criterion|null $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 76
public
__construct(Criteria $outer, string $column, mixed $value, string $comparison = null, string $type = null)
Create a new instance.
at line 97
public
init(Criteria $criteria)
Init some properties with the help of outer class
at line 120
public string
getColumn()
Get the column name.
at line 131
public void
setTable(string $name)
Set the table name.
at line 141
public string
getTable()
Get the table name.
at line 151
public string
getComparison()
Get the comparison.
at line 161
public mixed
getValue()
Get the value.
at line 172
public DBAdapter
getDB()
Get the value of db.
The DBAdapter which might be used to get db specific
variations of sql.
at line 183
public void
setDB(DBAdapter $v)
Set the value of db.
The DBAdapter might be used to get db specific variations of sql.
at line 197
public Criterion
setIgnoreCase(boolean $b)
Sets ignore case.
at line 209
public boolean
isIgnoreCase()
Is ignore case on or off?
at line 227
public array
getConjunctions()
Get the list of conjunctions in this Criterion
at line 235
public
addAnd(Criterion $criterion)
Append an AND Criterion onto this Criterion's list.
at line 249
public Criterion
addOr(Criterion $criterion)
Append an OR Criterion onto this Criterion's list.
at line 267
public void
appendPsTo(string $sb, array $params)
Appends a Prepared Statement representation of the Criterion onto the buffer.
at line 468
public boolean
equals(Criterion|null $obj)
This method checks another Criteria to see if they contain the same attributes and hashtable entries.
at line 508
public
hashCode()
Returns a hash code value for the object.
at line 539
public array
getAllTables()
Get all tables from nested criterion objects
at line 568
public array
getAttachedCriterion()
get an array of all criterion attached to this recursing through all sub criterion
at line 581
public
__clone()
Ensures deep cloning of attached objects