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

