Element_OphCoTherapyapplication_PatientSuitability::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('id', $this->id, true);
        $criteria->compare('event_id', $this->event_id, true);
        $criteria->compare('left_treatment_id', $this->left_treatment_id);
        $criteria->compare('left_angiogram_baseline_date', $this->left_angiogram_baseline_date);
        $criteria->compare('left_nice_compliance', $this->left_nice_compliance);
        $criteria->compare('right_treatment_id', $this->right_treatment_id);
        $criteria->compare('right_angiogram_baseline_date', $this->right_angiogram_baseline_date);
        $criteria->compare('right_nice_compliance', $this->right_nice_compliance);
        return new CActiveDataProvider(get_class($this), array('criteria' => $criteria));
    }