- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/documentservice.php
- Класс: CBPDocumentService
- Вызов: CBPDocumentService::getFieldInputValuePrintable
public function getFieldInputValuePrintable($parameterDocumentType, $fieldType, $fieldValue)
{
[$moduleId, $entity, $documentType] = CBPHelper::ParseDocumentId($parameterDocumentType);
if ($moduleId)
{
CModule::IncludeModule($moduleId);
}
$arFieldType = FieldType::normalizeProperty($fieldType);
if ((string) $arFieldType["Type"] == "")
return "";
$fieldTypeObject = $this->getFieldTypeObject($parameterDocumentType, $arFieldType);
if ($fieldTypeObject)
{
return $fieldTypeObject->formatValue($fieldValue, 'printable');
}
if (class_exists($entity))
{
if (method_exists($entity, "GetFieldInputValuePrintable"))
return call_user_func_array(array($entity, "GetFieldInputValuePrintable"), array($documentType, $arFieldType, $fieldValue));
if (method_exists($entity, "GetFieldValuePrintable"))
return call_user_func_array(array($entity, "GetFieldValuePrintable"), array(null, "", $arFieldType["Type"], $fieldValue, $arFieldType));
}
return CBPHelper::GetFieldInputValuePrintable($parameterDocumentType, $arFieldType, $fieldValue);
}