CBPVirtualDocument::GetFieldValuePrintable: Bitrix method

      
<?php 
//  CBPVirtualDocument :: GetFieldValuePrintable()
//  /dist/bitrix/modules/bizproc/classes/general/virtualdocument.php:2268

    
function GetFieldValuePrintable($documentId$fieldName$fieldType$fieldValue$arFieldType)
    {
        
$documentType null;

        if (
$fieldType == "S:UserID")
        {
            static 
$arCache = array();
            if (!
array_key_exists($documentId$arCache))
            {
                if (
substr($documentId0strlen("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);
    }