WeightClass::rules PHP Méthode

rules() public méthode

public rules ( ) : array
Résultat 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('value', 'length', 'max' => 15), array('weight_class_id, value', 'safe', 'on' => 'search'));
    }