method
public
static
UserTypePropertyHtml::validateValueSingle()
Сигнатура
public static validateValueSingle(mixed $value, FieldType $fieldType) : mixed
Параметры
$value
mixed
$fieldType
FieldType
Возвращаемое значение
mixed
Как применяется в UserTypePropertyHtml
UserTypePropertyHtml::validateValueSingle() — метод класса \Bitrix\Iblock\BizprocType\UserTypePropertyHtml модуля «Информационные блоки».
Статический метод — вызывается через имя класса UserTypePropertyHtml, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Iblock\BizprocType\UserTypePropertyHtml;
Loader::includeModule('iblock');
$value = null;
$fieldType = null; // FieldType
$result = UserTypePropertyHtml::validateValueSingle($value, $fieldType);
// $result: mixedДругие методы UserTypePropertyHtml
addError()addErrors()addFormat()canRenderControl()clearValueMultiple()clearValueSingle()compareValues()convertFrom()convertPropertyToView()convertTo()convertValueMultiple()convertValueSingle()
validateValueSingle() есть и у других классов модуля «Информационные блоки»: UserTypeProperty, UserTypePropertyDiskFile, UserTypePropertyElist, UserTypePropertyEmployee.
Исходный файл: source/iblock/lib/bizproctype/usertypepropertyhtml.php:867

