• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/bizproctype/usertypeproperty.php
  • Класс: BitrixIblockBizprocTypeUserTypeProperty
  • Вызов: UserTypeProperty::formatValuePrintable
static function formatValuePrintable(FieldType $fieldType, $value)
	{
		$userType = static::getUserType($fieldType);
		if (is_array($value) && isset($value['VALUE']))
			$value = $value['VALUE'];

		if (!empty($userType['GetPublicViewHTML']))
		{
			$result = call_user_func_array(
				$userType['GetPublicViewHTML'],
				array(
					array('LINK_IBLOCK_ID' => $fieldType->getOptions()),
					array('VALUE' => $value),
					''
				)
			);

			//replace empty links
			$result = str_replace('', '', $result);
			return HTMLToTxt($result);
		}
		return parent::formatValuePrintable($fieldType, $value);
	}