Example #1
0
 public static function GetFieldValuePrintable($parameterDocumentId, $fieldName, $fieldType, $fieldValue, $arFieldType = null)
 {
     list($moduleId, $entity, $documentId) = CBPHelper::ParseDocumentId($parameterDocumentId);
     if (strlen($moduleId) > 0) {
         CModule::IncludeModule($moduleId);
     }
     if (class_exists($entity) && method_exists($entity, "GetFieldValuePrintable")) {
         return call_user_func_array(array($entity, "GetFieldValuePrintable"), array($documentId, $fieldName, $fieldType, $fieldValue, $arFieldType));
     }
     return CBPHelper::GetFieldValuePrintable($fieldName, $fieldType, $fieldValue, $arFieldType);
 }