• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/bizproctype/usertypepropertyemployee.php
  • Класс: BitrixIblockBizprocTypeUserTypePropertyEmployee
  • Вызов: UserTypePropertyEmployee::formatValuePrintable
static function formatValuePrintable(FieldType $fieldType, $value)
	{
		$value = static::fixUserPrefix($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'],
				[
					[
						'LINK_IBLOCK_ID' => $fieldType->getOptions(),
					],
					[
						'VALUE' => $value,
					],
					[
						'MODE' => 'SIMPLE_TEXT',
					]
				]
			);
			return htmlspecialcharsback($result);
		}
		return parent::formatValuePrintable($fieldType, $value);
	}