method
public
FieldType::setDocumentType()
Класс: \Bitrix\Bizproc\FieldType
Сигнатура
public setDocumentType(array<string|int, mixed> $documentType) : $this
Параметры
$documentType
array<string|int, mixed>
Тип документа.
Возвращаемое значение
$this
Как применяется в FieldType
FieldType::setDocumentType() — метод класса \Bitrix\Bizproc\FieldType модуля «Бизнес-процессы».
Метод объекта: сначала нужен экземпляр FieldType.
use Bitrix\Main\Loader;
use Bitrix\Bizproc\FieldType;
Loader::includeModule('bizproc');
/** @var FieldType $object */
$documentType = [];
$result = $object->setDocumentType($documentType);
// $result: $thisДругие методы FieldType
canRenderControl()clearValue()convertPropertyToView()convertUfType()convertValue()externalizeValue()extractValue()formatValue()getBaseType()getBaseTypesMap()Возвращает список поддерживаемых базовых типов.getDescription()getDocumentId()
setDocumentType() есть и у других классов модуля «Бизнес-процессы»: PropertiesDialog.
Исходный файл: source/bizproc/lib/fieldtype.php:193

