Propel 2 API
Class

Propel\Runtime\ActiveQuery\Criterion\AbstractCriterion

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.

Parameters

Criteria $outer The outer class (this is an "inner" class).
string $column TABLE.COLUMN format.
mixed $value
string $comparison

at line 97
public init(Criteria $criteria)

Init some properties with the help of outer class

Parameters

Criteria $criteria The outer class

at line 139
public string getColumn()

Get the column name.

Return Value

string A String with the column name.

at line 150
public void setTable(string $name)

Set the table name.

Parameters

string $name A String with the table name.

Return Value

void

at line 160
public string getTable()

Get the table name.

Return Value

string A String with the table name.

at line 170
public string getComparison()

Get the comparison.

Return Value

string A String with the comparison.

at line 180
public mixed getValue()

Get the value.

Return Value

mixed An Object with the value.

at line 192
public AdapterInterface getAdapter()

Get the adapter.

The AdapterInterface which might be used to get db specific
variations of sql.

Return Value

AdapterInterface value of db.

at line 204
public void setAdapter(AdapterInterface $v)

Set the adapter.

The AdapterInterface might be used to get db specific variations of sql.

Parameters

AdapterInterface $v Value to assign to db.

Return Value

void

at line 225
public array getConjunctions()

Get the list of conjunctions in this Criterion

Return Value

array

at line 233
public addAnd(AbstractCriterion $criterion)

Append an AND Criterion onto this Criterion's list.

Parameters

AbstractCriterion $criterion

at line 245
public Criterion addOr(AbstractCriterion $criterion)

Append an OR Criterion onto this Criterion's list.

Parameters

AbstractCriterion $criterion

Return Value

Criterion

at line 263
public void appendPsTo(string $sb, array $params)

Appends a Prepared Statement representation of the Criterion onto the buffer.

Parameters

string $sb &$sb The string that will receive the Prepared Statement
array $params A list to which Prepared Statement parameters will be appended

Return Value

void

Exceptions

PropelException - if the expression builder cannot figure out how to turn a specified expression into proper SQL.

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.

Parameters

$obj

Return Value

boolean

at line 341
public array getAllTables()

Get all tables from nested criterion objects

Return Value

array

at line 367
public Criterion[] getAttachedCriterion()

get an array of all criterion attached to this recursing through all sub criterion

Return Value

Criterion[]

at line 380
public __clone()

Ensures deep cloning of attached objects