method
public
static
Select::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
Как применяется в Select
Select::renderControlSingle() — метод класса \Bitrix\Bizproc\BaseType\Select модуля «Бизнес-процессы».
Статический метод — вызывается через имя класса Select, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Bizproc\BaseType\Select;
Loader::includeModule('bizproc');
$fieldType = null; // FieldType
$field = [];
$value = null;
$allowSelection = true;
$renderMode = 1;
$result = Select::renderControlSingle($fieldType, $field, $value, $allowSelection, $renderMode);
// $result: stringДругие методы Select
addError()addErrors()addFormat()canRenderControl()clearValueMultiple()clearValueSingle()compareValues()convertFrom()convertPropertyToView()convertTo()convertValueMultiple()convertValueSingle()
renderControlSingle() есть и у других классов модуля «Бизнес-процессы»: Base, BoolType, Date, Datetime, Double, File, InternalSelect, IntType.
Исходный файл: source/bizproc/lib/basetype/select.php:311

