• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/authentication/applicationmanager.php
  • Класс: BitrixMainAuthenticationApplicationManager
  • Вызов: ApplicationManager::__construct
protected function __construct()
{
	$event = new MainEvent("main", "OnApplicationsBuildList");
	$event->send();

	foreach($event->getResults() as $eventResult)
	{
		$result = $eventResult->getParameters();
		if(is_array($result))
		{
			if(!isset($result[0]) || !is_array($result[0]))
			{
				$result = array($result);
			}
			foreach($result as $app)
			{
				$this->applications[$app["ID"]] = $app;
			}
		}
	}
	MainTypeCollection::sortByColumn($this->applications, "SORT");
}