Disorder::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('id, fully_specified_name, term', 'required'), array('id', 'length', 'max' => 10), array('fully_specified_name, term', 'length', 'max' => 255), array('id, fully_specified_name, term, systemic', 'safe', 'on' => 'search'));
    }