## Class TActiveRecordCriteria

Description

Search criteria for Active Record.

Criteria object for active record finder methods. Usage:

     $criteria = new TActiveRecordCriteria;
     $criteria->Condition = 'username = :name AND password = :pass';
     $criteria->Parameters[':name'] = 'admin';
     $criteria->Parameters[':pass'] = 'prado';
     $criteria->OrdersBy['level'] = 'desc';
     $criteria->OrdersBy['name'] = 'asc';
     $criteria->Limit = 10;
     $criteria->Offset = 20;

- since: 3.1
- version: $Id: TActiveRecordCriteria.php 2541 2008-10-21 15:05:13Z qiang.xue $
- author: Wei Zhuo <weizho[at]gmail[dot]com>

Located in /Data/ActiveRecord/TActiveRecordCriteria.php (line 35)

    TComponent
       |
       --TSqlCriteria
          |
          --TActiveRecordCriteria

Methods

#### Inherited Methods

Inherited From TSqlCriteria

> TSqlCriteria::__construct()
> TSqlCriteria::getCondition()
> TSqlCriteria::getIsNamedParameters()
> TSqlCriteria::getLimit()
> TSqlCriteria::getOffset()
> TSqlCriteria::getOrdersBy()
> TSqlCriteria::getParameters()
> TSqlCriteria::getSelect()
> TSqlCriteria::setCondition()
> TSqlCriteria::setLimit()
> TSqlCriteria::setOffset()
> TSqlCriteria::setOrdersBy()
> TSqlCriteria::setParameters()
> TSqlCriteria::setSelect()
> TSqlCriteria::__toString()

Inherited From TComponent

> TComponent::addParsedObject()
> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::createdOnTemplate()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Documentation generated on Mon, 22 Feb 2010 12:16:33 +0000 by phpDocumentor 1.3.0RC4