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);
$criteria->compare('product_id', $this->product_id);
$criteria->compare('attribute_id', $this->attribute_id);
$criteria->compare('int_value', $this->int_value);
$criteria->compare('str_value', $this->str_value, true);
$criteria->compare('text_value', $this->text_value, true);
return new CActiveDataProvider($this, ['criteria' => $criteria]);
}