OEModule\OphCiExamination\models\Element_OphCiExamination_Refraction::search PHP Метод

    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_sphere', $this->left_sphere);
        $criteria->compare('left_cylinder', $this->left_cylinder);
        $criteria->compare('left_axis', $this->left_axis);
        $criteria->compare('left_type_id', $this->left_type_id);
        $criteria->compare('left_type_other', $this->left_type_other);
        $criteria->compare('right_sphere', $this->right_sphere);
        $criteria->compare('right_cylinder', $this->right_cylinder);
        $criteria->compare('right_axis', $this->right_axis);
        $criteria->compare('right_type_id', $this->right_type_id);
        $criteria->compare('right_type_other', $this->right_type_other);
        return new \CActiveDataProvider(get_class($this), array('criteria' => $criteria));
    }