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