- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/textparser.php
- Класс: CTextParser
- Вызов: CTextParser::convert_userfields
public function convert_userfields($matches)
{
$vars = get_object_vars($this);
$vars['TEMPLATE'] = ($this->bMobile ? 'mobile' : $this->type);
$vars['LAZYLOAD'] = $this->LAZYLOAD;
$userField = $this->userField;
$id = $matches[2];
foreach (GetModuleEvents('main', 'TextParserUserField', true) as $arEvent)
{
ExecuteModuleEventEx($arEvent, [$id, &$userField, &$vars, &$this]);
}
if ($userField['USER_TYPE']['USER_TYPE_ID'] == 'disk_file' || in_array($id, $userField['VALUE']))
{
if (defined('BX_COMP_MANAGED_CACHE'))
{
global $CACHE_MANAGER;
$CACHE_MANAGER->RegisterTag('webdav_element_internal_' . $id);
}
return call_user_func_array(
[$userField['USER_TYPE']['CLASS_NAME'], 'GetPublicViewHTML'],
[$userField, $id, $matches[3], $vars, $matches]
);
}
return $matches[0];
}