public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public function search()
{
$criteria = new \CDbCriteria();
$criteria->compare('id', $this->id, true);
$criteria->compare('name', $this->name, true);
$criteria->compare('display_order', $this->display_order, true);
return new \CActiveDataProvider(get_class($this), array('criteria' => $criteria));
}