public function __construct() { if (!is_array(self::$pushServices)) { self::$pushServices = array(); foreach (GetModuleEvents("pull", "OnPushServicesBuildList", true) as $arEvent) { $res = ExecuteModuleEventEx($arEvent); if (is_array($res)) { if (!is_array($res[0])) { $res = array($res); } foreach ($res as $serv) { self::$pushServices[$serv["ID"]] = $serv; } } } } }