• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblocksocnetbizproc.php
  • Класс: CIBlockDocumentWebdavSocnet
  • Вызов: CIBlockDocumentWebdavSocnet::GetFieldValuePrintable
static function GetFieldValuePrintable($documentId, $fieldName, $fieldType, $fieldValue, $arFieldType)
{
	$documentType = null;

	if ($fieldType == "user")
	{
		static $arCache = array();
		if (!array_key_exists($documentId, $arCache))
		{
			if (mb_substr($documentId, 0, mb_strlen("iblock_")) == "iblock_")
				$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);
}