• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/task/result/resultparser.php
  • Класс: BitrixTasksInternalsTaskResultResultParser
  • Вызов: ResultParser::parseInlineFiles
public function parseInlineFiles(string $text)
// {
// 	if (!Loader::includeModule('disk'))
// 	{
// 		return $text;
// 	}
//
// 	$objectIds = [];
// 	$attachedIds = [];
//
// 	if (preg_match_all("#\[disk file id=(n\d+)\]#is".BX_UTF_PCRE_MODIFIER, $text, $matches))
// 	{
// 		$objectIds = array_map(function($a) { return (int)mb_substr($a, 1); }, $matches[1]);
// 	}
//
// 	if (preg_match_all("#\[disk file id=(\d+)\]#is".BX_UTF_PCRE_MODIFIER, $text, $matches))
// 	{
// 		$attachedIds = array_map(function($a) { return (int)$a; }, $matches[1]);
// 	}
//
// 	if (
// 		empty($objectIds)
// 		&& empty($attachedIds)
// 	)
// 	{
// 		return $text;
// 	}
//
// 	$imageList = $this->loadImages($objectIds, $attachedIds);
//
// 	if (empty($imageList))
// 	{
// 		return $text;
// 	}
//
// 	return $text;
// }