Beispiel #1
0
 public function Index()
 {
     $this->data['user'] = $this->checkLogin(OpenSms::OPEN_ROLE_ADMIN);
     $this->data['modules'] = OpenSms_Model_System_Module::getModules();
     $this->data['pageTitle'] = 'Modules | ' . OpenSms::getSystemSetting(OpenSms::SITE_NAME);
     $this->renderTemplate();
 }
Beispiel #2
0
 public static function getAll()
 {
     if (count(self::$actions) > 0) {
         return selft::$actions;
     }
     $modules = OpenSms_Model_System_Module::getModules();
     foreach ($modules as $module) {
         foreach ($module->actions as $action) {
             $actions[] = $action;
         }
     }
     return $actions;
 }