22 $event =
new Main\Event(
"main",
"OnApplicationsBuildList");
25 foreach($event->getResults() as $eventResult)
27 $result = $eventResult->getParameters();
30 if(!isset($result[0]) || !is_array($result[0]))
32 $result = array($result);
34 foreach($result as $app)
36 $this->applications[$app[
"ID"]] = $app;
40 Main\Type\Collection::sortByColumn($this->applications,
"SORT");
77 if(isset($this->applications[$applicationId]))
79 $className = $this->applications[$applicationId][
"CLASS"];
80 $class =
new $className;
81 if(is_callable(array($class,
"checkScope")))
83 return call_user_func_array(array($class,
"checkScope"), array());