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

