method public static

BoolType::renderControlSingle()

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

Сигнатура

public static renderControlSingle(FieldType $fieldType, array<string|int, mixed> $field, mixed $value, mixed $allowSelection, mixed $renderMode) : string

Параметры

$fieldType FieldType
Тип поля документа.
$field array<string|int, mixed>
Поле формы.
$value mixed
Значение поля.
$allowSelection mixed
Флаг разрешения выбора.
$renderMode mixed
Режим отрисовки элемента управления.

Возвращаемое значение

string

Как применяется в BoolType

BoolType::renderControlSingle() — метод класса \Bitrix\Bizproc\BaseType\BoolType модуля «Бизнес-процессы».

Статический метод — вызывается через имя класса BoolType, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Bizproc\BaseType\BoolType;

Loader::includeModule('bizproc');

$fieldType = null; // FieldType
$field = [];
$value = null;
$allowSelection = null;
$renderMode = null;
$result = BoolType::renderControlSingle($fieldType, $field, $value, $allowSelection, $renderMode);
// $result: string

Другие методы BoolType

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

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

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