public search ( ) : CActiveDataProvider | ||
리턴 | 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('element_id', $this->element_id, true);
$criteria->compare('item_id', $this->item_id, true);
return new \CActiveDataProvider(get_class($this), array('criteria' => $criteria));
}