Element_OphDrPrescription_Details::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, comments, draft, print', 'safe'), array('items', 'required'), array('id, event_id, comments', 'safe', 'on' => 'search'));
    }