CBPDocumentService::GetGUIFieldEdit: Bitrix method

      
<?php 
//  CBPDocumentService :: GetGUIFieldEdit()
//  /dist/bitrix/modules/bizproc/classes/general/documentservice.php:1030

    
public function GetGUIFieldEdit($parameterDocumentType$formName$fieldName$fieldValue$arDocumentField = array(), $bAllowSelection false)
    {
        list(
$moduleId$entity$documentType) = CBPHelper::ParseDocumentId($parameterDocumentType);

        if (
strlen($moduleId) > 0)
            
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);
    }