コード例 #1
0
ファイル: forms.class.php プロジェクト: OptimalInternet/uCore
 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));
 }