• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/router.php
  • Класс: BitrixMainEngineRouter
  • Вызов: Router::includeComponentAjaxClass
private function includeComponentAjaxClass($name)
{
	$path2Comp = CComponentEngine::makeComponentPath($name);
	if ($path2Comp === '')
	{
		throw new SystemException("{$name} is not a valid component name", self::EXCEPTION_INVALID_COMPONENT_NAME);
	}

	$componentPath = getLocalPath("components" . $path2Comp);
	if ($componentPath === false)
	{
		throw new SystemException("Could not find component by name {$name}", self::EXCEPTION_NO_COMPONENT);
	}

	$ajaxClass = $this->getAjaxClassForPath($componentPath);
	if (!$ajaxClass)
	{
		throw new SystemException("Could not find ajax class {$componentPath}", self::EXCEPTION_NO_COMPONENT_AJAX_CLASS);
	}

	return $ajaxClass;
}