Lines Matching refs:rules
8 private $rules=array(), $errors=array(), $model;
14 $this->rules[$field] = $rule;
18 if (isset($this->rules[$field])) {
19 unset($this->rules[$field]);
23 public function set_rules($rules) {
24 $this->rules = array_merge($this->rules, $rules);
28 return $this->rules;
32 if (!isset($this->rules[$field])) {
35 return $this->rules[$field];
68 if (!isset($this->rules[$field])) {
72 $args = $this->rules[$field][0];
73 $null = $this->rules[$field][1];
89 $fields = array_keys($this->rules);