OEModule\OphCiExamination\models\Element_OphCiExamination_DRGrading::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_retinopathy_id', $this->left_retinopathy_id);
        $criteria->compare('left_maculopathy_id', $this->left_maculopathy_id);
        $criteria->compare('left_clinicalret_id', $this->left_clinicalret_id);
        $criteria->compare('left_clinicalmac_id', $this->left_clinicalmac_id);
        $criteria->compare('right_retinopathy_id', $this->right_retinopathy_id);
        $criteria->compare('right_maculopathy_id', $this->right_maculopathy_id);
        $criteria->compare('right_clinicalret_id', $this->right_clinicalret_id);
        $criteria->compare('right_clinicalmac_id', $this->right_clinicalmac_id);
        $criteria->compare('left_nscretinopathy_photocoagulation', $this->left_nscretinopathy_photocoagulation);
        $criteria->compare('left_nscmaculopathy_photocoagulation', $this->left_nscmaculopathy_photocoagulation);
        $criteria->compare('right_nscretinopathy_photocoagulation', $this->right_nscretinopathy_photocoagulation);
        $criteria->compare('right_nscmaculopathy_photocoagulation', $this->right_nscmaculopathy_photocoagulation);
        return new \CActiveDataProvider(get_class($this), array('criteria' => $criteria));
    }