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

