Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
datevalidator.php
1<?php
10
13
15{
16 public function validate($value, $primary, array $row, ORM\Fields\Field $field)
17 {
18 if (empty($value))
19 {
20 return true;
21 }
22
23 if ($value instanceof Type\Date)
24 {
25 // self-validating object
26 return true;
27 }
28
29 return $this->getErrorMessage($value, $field);
30 }
31}
validate($value, $primary, array $row, ORM\Fields\Field $field)
getErrorMessage($value, ORM\Fields\Field $field, $errorPhrase=null, $additionalTemplates=null)
Definition validator.php:50