Go to the documentation of this file.00001 <?php
00002
00007 class Module_SortList extends oxAdminDetails
00008 {
00009
00016 public function render()
00017 {
00018 parent::render();
00019
00020 $oModuleList = oxNew("oxModuleList");
00021
00022 $this->_aViewData["aExtClasses"] = $this->getConfig()->getModulesWithExtendedClass();
00023 $this->_aViewData["aDisabledModules"] = $oModuleList->getDisabledModuleClasses();
00024
00025
00026 if (oxRegistry::getSession()->getVariable("blSkipDeletedExtChecking") == false) {
00027 $aDeletedExt = $oModuleList->getDeletedExtensions();
00028 }
00029
00030 if (!empty($aDeletedExt)) {
00031 $this->_aViewData["aDeletedExt"] = $aDeletedExt;
00032 }
00033
00034 return 'module_sortlist.tpl';
00035 }
00036
00040 public function save()
00041 {
00042 $aModule = oxRegistry::getConfig()->getRequestParameter("aModules");
00043
00044 $aModules = json_decode($aModule, true);
00045
00046 $oModuleInstaller = oxNew('oxModuleInstaller');
00047 $aModules = $oModuleInstaller->buildModuleChains($aModules);
00048
00049 $this->getConfig()->saveShopConfVar("aarr", "aModules", $aModules);
00050
00051 }
00052
00058 public function remove()
00059 {
00060
00061 if (oxRegistry::getConfig()->getRequestParameter("noButton")) {
00062 oxRegistry::getSession()->setVariable("blSkipDeletedExtChecking", true);
00063
00064 return;
00065 }
00066
00067 $oModuleList = oxNew("oxModuleList");
00068 $oModuleList->cleanup();
00069 }
00070
00071 }