CBPViewHelper::getFileLinksReplaceCallback

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPViewHelper
  4. getFileLinksReplaceCallback
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/viewhelper.php
  • Класс: CBPViewHelper
  • Вызов: CBPViewHelper::getFileLinksReplaceCallback
static function getFileLinksReplaceCallback()
{
	return function($matches)
	{
		$matches[2] = htmlspecialcharsback($matches[2]);
		parse_str($matches[2], $query);
		if (isset($query['i']))
		{
			try
			{
				$attributes = BitrixMainUIViewerItemAttributes::tryBuildByFileId(
					$query['i'],
					$matches[1].$matches[2]
				);
				return "";
			}
			catch (ArgumentException $e) {}
		}

		return $matches[0];
	};
}

Добавить комментарий