Element_OphTrConsent_Procedure::rules PHP Method

rules() public method

public rules ( ) : array
return array validation rules for model attributes.
    public function rules()
    {
        // NOTE: you should only define rules for those attributes that
        // will receive user inputs.
        return array(array('event_id, eye_id, anaesthetic_type_id, booking_event_id', 'safe'), array('eye_id, anaesthetic_type_id, ', 'required'), array('id, event_id, eye_id, anaesthetic_type_id, ', 'safe', 'on' => 'search'));
    }