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

setDocumentType() есть и у других классов модуля «Бизнес-процессы»: PropertiesDialog.

Исходный файл: source/bizproc/lib/fieldtype.php:193

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