method
public
FieldType::__construct()
Класс: \Bitrix\Bizproc\FieldType
Сигнатура
public __construct(array<string|int, mixed> $property, array<string|int, mixed> $documentType, string $typeClass[, null|array<string|int, mixed> $documentId = null ]) : mixed
Параметры
$property
array<string|int, mixed>
Свойство документа.
$documentType
array<string|int, mixed>
Тип документа.
$typeClass
string
Менеджер класса типа.
$documentId
null|array<string|int, mixed>
= null
Возвращаемое значение
mixed
Как применяется в FieldType
FieldType::__construct() — метод класса \Bitrix\Bizproc\FieldType модуля «Бизнес-процессы».
Конструктор: создаёт экземпляр FieldType — обязательные аргументы перечислены в разделе «Параметры».
use Bitrix\Main\Loader;
use Bitrix\Bizproc\FieldType;
Loader::includeModule('bizproc');
$property = [];
$documentType = [];
$typeClass = '';
$object = new FieldType($property, $documentType, $typeClass);Другие методы FieldType
canRenderControl()clearValue()convertPropertyToView()convertUfType()convertValue()externalizeValue()extractValue()formatValue()getBaseType()getBaseTypesMap()Возвращает список поддерживаемых базовых типов.getDescription()getDocumentId()
__construct() есть и у других классов модуля «Бизнес-процессы»: BaseOperator, BetweenOperator, Condition, ConditionGroup, ContainOperator, Date, DateTime, EmptyOperator.
Исходный файл: source/bizproc/lib/fieldtype.php:121

