Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
enumvalidator.php
1<?php
10
12
14{
23 public function validate($value, $primary, array $row, ORM\Fields\Field $field)
24 {
25 if (in_array($value, $field->getValues(), true) || $value == '')
26 {
27 return true;
28 }
29
30 return $this->getErrorMessage($value, $field);
31 }
32}
validate($value, $primary, array $row, ORM\Fields\Field $field)
getErrorMessage($value, ORM\Fields\Field $field, $errorPhrase=null, $additionalTemplates=null)
Definition validator.php:50