• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/controller/globalfield.php
  • Класс: BitrixBizprocControllerGlobalField
  • Вызов: GlobalField::upsertAction
public function upsertAction($fieldId, $property, $documentType, $mode): array
{
	$documentType = CBPDocument::unSignDocumentType($documentType);
	switch ($mode)
	{
		case 'variable':
			return $this->upsertVariable($fieldId, $property, $documentType);
		case 'constant':
			return $this->upsertConstant($fieldId, $property, $documentType);
		default:
			return [
				'error' => BitrixMainLocalizationLoc::getMessage(
					'BIZPROC_CONTROLLER_GLOBALFIELD_MODE_NOT_DEFINED'
				),
			];
	}
}