function Legacy_ModuleUpdateAction($flag)
 {
     parent::Legacy_Action($flag);
     $this->mUpdateSuccess = new XCube_Delegate();
     $this->mUpdateSuccess->register('Legacy_ModuleUpdateAction.UpdateSuccess');
     $this->mUpdateFail = new XCube_Delegate();
     $this->mUpdateFail->register('Legacy_ModuleUpdateAction.UpdateFail');
 }
Esempio n. 2
0
 function prepare(&$controller, &$xoopsUser)
 {
     parent::prepare($controller, $xoopsUser);
     $db =& $controller->getDB();
     $mod = $db->prefix("modules");
     $perm = $db->prefix("group_permission");
     $groups = implode(",", $xoopsUser->getGroups());
     $sql = "SELECT DISTINCT {$mod}.mid FROM {$mod},{$perm} " . "WHERE {$mod}.isactive=1 AND {$mod}.mid={$perm}.gperm_itemid AND {$perm}.gperm_name='module_admin' AND {$perm}.gperm_groupid IN ({$groups}) " . "ORDER BY {$mod}.weight, {$mod}.mid";
     $result = $db->query($sql);
     $handler =& xoops_gethandler('module');
     while ($row = $db->fetchArray($result)) {
         $module =& $handler->get($row['mid']);
         $adapter = new Legacy_ModuleAdapter($module);
         // FIXMED
         $this->mModules[] =& $adapter;
         unset($module);
         unset($adapter);
     }
 }
Esempio n. 3
0
 function prepare(&$controller, &$xoopsUser)
 {
     parent::prepare($controller, $xoopsUser);
     $this->_mDirname = xoops_getrequest('dirname');
 }
Esempio n. 4
0
 function Legacy_ModuleInstallAction($flag)
 {
     parent::Legacy_Action($flag);
     $this->mInstallSuccess = new XCube_Delegate();
     $this->mInstallSuccess->register('Legacy_ModuleInstallAction.InstallSuccess');
     $this->mInstallFail = new XCube_Delegate();
     $this->mInstallFail->register('Legacy_ModuleInstallAction.InstallFail');
 }
Esempio n. 5
0
 function Legacy_BackendAction($flag)
 {
     parent::Legacy_Action($flag);
     $this->mGetRSSItems = new XCube_Delegate();
     $this->mGetRSSItems->register('Legacy_BackendAction.GetRSSItems');
 }