CBPDocumentService::getGUIFieldEdit

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPDocumentService
  4. getGUIFieldEdit
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/documentservice.php
  • Класс: CBPDocumentService
  • Вызов: CBPDocumentService::getGUIFieldEdit
public function getGUIFieldEdit($parameterDocumentType, $formName, $fieldName, $fieldValue, $arDocumentField = array(), $bAllowSelection = false)
{
	[$moduleId, $entity, $documentType] = CBPHelper::ParseDocumentId($parameterDocumentType);

	if ($moduleId)
	{
		CModule::IncludeModule($moduleId);
	}

	if (!is_array($arDocumentField) || count($arDocumentField) <= 0)
	{
		$arDocumentFields = $this->GetDocumentFields($parameterDocumentType);
		$arDocumentField = $arDocumentFields[$fieldName];
	}

	if (!array_key_exists("BP_AddShowParameterInit_".$moduleId."_".$entity."_".$documentType, $GLOBALS))
	{
		$GLOBALS["BP_AddShowParameterInit_".$moduleId."_".$entity."_".$documentType] = 1;
		CBPDocument::AddShowParameterInit($moduleId, "only_users", $documentType, $entity);
	}

	if (class_exists($entity) && method_exists($entity, "GetGUIFieldEdit"))
		return call_user_func_array(array($entity, "GetGUIFieldEdit"), array($documentType, $formName, $fieldName, $fieldValue, $arDocumentField, $bAllowSelection));

	return CBPHelper::GetGUIFieldEdit($parameterDocumentType, $formName, $fieldName, $fieldValue, $arDocumentField, $bAllowSelection);
}

Добавить комментарий