Element_OphTrOperationbooking_Operation::search PHP Méthode

    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('eye_id', $this->eye_id);
        $criteria->compare('procedures', $this->procedures);
        $criteria->compare('consultant_required', $this->consultant_required);
        $criteria->compare('any_grade_of_doctor', $this->any_grade_of_doctor);
        $criteria->compare('anaesthetic_type_id', $this->anaesthetic_type_id);
        $criteria->compare('overnight_stay', $this->overnight_stay);
        $criteria->compare('site_id', $this->site_id);
        $criteria->compare('priority_id', $this->priority_id);
        $criteria->compare('decision_date', $this->decision_date);
        $criteria->compare('comments', $this->comments);
        $criteria->compare('comments_rtt', $this->comments_rtt);
        return new CActiveDataProvider(get_class($this), array('criteria' => $criteria));
    }