ProductSpecial::search PHP Method

    public function search()
    {
        // Warning: Please modify the following code to remove attributes that
        // should not be searched.
        $criteria = new CDbCriteria();
        $criteria->compare('product_special_id', $this->product_special_id);
        $criteria->compare('product_id', $this->product_id);
        $criteria->compare('customer_group_id', $this->customer_group_id);
        $criteria->compare('priority', $this->priority);
        $criteria->compare('price', $this->price, true);
        $criteria->compare('date_start', $this->date_start, true);
        $criteria->compare('date_end', $this->date_end, true);
        return new CActiveDataProvider($this, array('criteria' => $criteria));
    }