CBPDocumentService::SetGUIFieldEdit: Bitrix method

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

    
public function SetGUIFieldEdit($parameterDocumentType$fieldName$arRequest, &$arErrors$arDocumentField = array())
    {
        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 (
class_exists($entity) && method_exists($entity"SetGUIFieldEdit"))
            return 
call_user_func_array(array($entity"SetGUIFieldEdit"), array($documentType$fieldName$arRequest, &$arErrors$arDocumentField));

        return 
CBPHelper::SetGUIFieldEdit($parameterDocumentType$fieldName$arRequest$arErrors$arDocumentField);
    }