Пример #1
0
 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);
 }