method public static

File::renderControlSingle()

Класс: \Bitrix\Bizproc\BaseType\File

Сигнатура

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

renderControlSingle() есть и у других классов модуля «Бизнес-процессы»: Base, BoolType, Date, Datetime, Double, InternalSelect, IntType, Select.

Исходный файл: source/bizproc/lib/basetype/file.php:269

Что будем искать? Например,Продвижение