Lines Matching refs:this
10 $this->model = $model;
14 $this->rules[$field] = $rule;
18 if (isset($this->rules[$field])) {
19 unset($this->rules[$field]);
24 $this->rules = array_merge($this->rules, $rules);
28 return $this->rules;
32 if (!isset($this->rules[$field])) {
35 return $this->rules[$field];
39 return $this->errors;
43 $this->errors[$field] = $code;
48 if (!method_exists($this, $validator)) {
53 $result = call_user_func_array(array($this, $validator), $args);
64 return $this->check_against_val_method($value, $method, $args);
68 if (!isset($this->rules[$field])) {
72 $args = $this->rules[$field][0];
73 $null = $this->rules[$field][1];
76 list($result, $code) = $this->validate_one($value, $method, $args, $null);
89 $fields = array_keys($this->rules);
97 $val_data[$key] = $this->validate_field($key, $value);
100 $this->errors[$key] = $e->get_errors()[$key];
103 if (count($this->errors) > 0) {
115 $result = $this->check_against_val_method($value, $method, $args);
131 $wiki_users = $this->model->userFactory->get_all();