• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component.php
  • Класс: CBitrixComponent
  • Вызов: CBitrixComponent::includeComponentEpilog
public function includeComponentEpilog($arEpilogInfo)
{
	/** @noinspection PhpUnusedLocalVariableInspection */
	global $APPLICATION, $USER, $DB;

	// available variables in the epilog file:
	// $templateName, $templateFile, $templateFolder, $templateData
	/** @var $epilogFile */
	extract($arEpilogInfo);
	if ($epilogFile <> '' && file_exists($_SERVER["DOCUMENT_ROOT"].$epilogFile))
	{
		//these vars can be used in the epilog file
		$arParams = $this->arParams;
		$arResult = $this->arResult;
		$componentPath = $this->GetPath();
		$component = $this;
		include($_SERVER["DOCUMENT_ROOT"].$epilogFile);
	}
}