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

