Element_OphTrOperationnote_Anaesthetic::rules PHP 메소드

rules() 공개 메소드

public rules ( ) : array
리턴 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, anaesthetist_id, anaesthetic_type_id, anaesthetic_delivery_id, anaesthetic_comment, anaesthetic_witness_id', 'safe'), array('anaesthetic_type_id', 'required'), array('anaesthetist_id, anaesthetic_delivery_id, anaesthetic_complications', 'validateAnaesthetic'), array('id, event_id, anaesthetist_id, anaesthetic_type_id, anaesthetic_delivery_id, anaesthetic_comment, anaesthetic_witness_id', 'safe', 'on' => 'search'));
    }