Пример #1
0
 public function IsInstalled()
 {
     return utopia::ModuleExists(get_class($this));
 }
Пример #2
0
 static function Launcher($module = NULL)
 {
     if ($module == NULL) {
         $module = self::GetCurrentModule();
     }
     if (!utopia::ModuleExists($module)) {
         utopia::PageNotFound();
     }
     utopia::SetVar('current_module', $module);
     self::QueueLauncher($module);
     $currentModule = reset(self::$launchers);
     do {
         $obj = utopia::GetInstance($currentModule);
         utopia::SetVar('title', $obj->GetTitle());
         // run module
         timer_start('Run Module: ' . $currentModule);
         $obj->_RunModule();
         timer_end('Run Module: ' . $currentModule);
     } while ($currentModule = next(self::$launchers));
 }