- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/virtualdocument.php
- Класс: CBPVirtualDocument
- Вызов: CBPVirtualDocument::getFieldValuePrintable
static function getFieldValuePrintable($documentId, $fieldName, $fieldType, $fieldValue, $arFieldType)
{
$documentType = null;
if ($fieldType == "S:UserID")
{
static $arCache = array();
if (!array_key_exists($documentId, $arCache))
{
if (mb_substr($documentId, 0, mb_strlen("type_")) == "type_")
$arCache[$documentId] = $documentId;
else
$arCache[$documentId] = self::GetDocumentType($documentId);
}
$documentType = $arCache[$documentId];
}
if (is_null($arFieldType) || !is_array($arFieldType) || count($arFieldType) <= 0)
$arFieldType = array();
$arFieldType["Type"] = $fieldType;
return self::GetFieldInputValuePrintable($documentType, $arFieldType, $fieldValue);
}