| @@ 82-89 (lines=8) @@ | ||
| 79 | * В случае возвращения true мутатор применяется. |
|
| 80 | * @return bool |
|
| 81 | */ |
|
| 82 | public function validate() |
|
| 83 | { |
|
| 84 | $res = true; |
|
| 85 | if ($this->getValidationFunction()) { |
|
| 86 | $res = call_user_func($this->getValidationFunction(), $this->getRowData()); |
|
| 87 | } |
|
| 88 | return $res; |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * Изменяет данные |
|
| @@ 63-70 (lines=8) @@ | ||
| 60 | /** |
|
| 61 | * @return bool|mixed |
|
| 62 | */ |
|
| 63 | public function validate() |
|
| 64 | { |
|
| 65 | $res = true; |
|
| 66 | if ($this->getValidationFunction()) { |
|
| 67 | $res = call_user_func($this->getValidationFunction(), $this->getRowData(), $this); |
|
| 68 | } |
|
| 69 | return $res; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | ||