- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/lib/controller/fieldtype.php
- Класс: BitrixBizprocControllerFieldType
- Вызов: FieldType::renderControlOptionsAction
private function renderControlOptionsAction(array $documentType, array $type, array $params)
{
if (!$this->inputAndAccessCheck($documentType, $type))
{
return null;
}
$params = (new BizprocValidator($params))
->validateRequire('Func')
->validateEnum('Func', [
'BPRIASwitchSubTypeControl',
'BWFVCSwitchSubTypeControl',
'WFSSwitchSubTypeControlC',
'WFSSwitchSubTypeControlV',
'WFSSwitchSubTypeControlP',
])
->setDefault('Value', '')
->getPureValues();
$runtime = CBPRuntime::GetRuntime();
$runtime->StartRuntime();
$documentService = $runtime->GetService("DocumentService");
return $documentService->GetFieldInputControlOptions(
$documentType,
$type,
$params['Func'],
$params['Value'],
);
}