Class \Prado\Data\DataGateway\TSqlCriteria
Search criteria for TDbDataGateway.
Criteria object for data gateway finder methods. Usage:
$criteria = new TSqlCriteria();
$criteria->Parameters[':name'] = 'admin';
$criteria->Parameters[':pass'] = 'prado';
$criteria->OrdersBy['level'] = 'desc';
$criteria->OrdersBy['name'] = 'asc';
$criteria->Limit = 10;
$criteria->Offset = 20;
Class hierarchy
Author: Wei Zhuo <weizho[at]gmail[dot]com>Since: 3.1
public
|
__construct([null|string $condition = null ][, mixed $parameters = [] ]) : mixed
Creates a new criteria with given condition;
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setCondition(string $value) : mixed
Sets the search conditions to be placed after the WHERE clause in the SQL.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setSelect(mixed $value) : mixed
Sets the field list to be placed after the SELECT in the SQL.
Different behavior depends on type of assigned value string usage without modification null will be expanded to full list of quoted table column names (quoting depends on database) array
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |