26 $oModule =
oxNew(
'oxModule');
29 if ($oModule->load($sModuleId)) {
32 $this->_aViewData[
"oModule"] = $oModule;
33 $this->_aViewData[
"sModuleName"] = basename($oModule->getInfo(
"title", $iLang));
34 $this->_aViewData[
"sModuleId"] = str_replace(
"/",
"_", $oModule->getModulePath());
42 return 'module_main.tpl';
53 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'MODULE_ACTIVATION_NOT_POSSIBLE_IN_DEMOMODE');
60 $oModule =
oxNew(
'oxModule');
61 if (!$oModule->load($sModule)) {
68 $oModuleCache =
oxNew(
'oxModuleCache', $oModule);
70 $oModuleInstaller =
oxNew(
'oxModuleInstaller', $oModuleCache);
72 if ($oModuleInstaller->activate($oModule)) {
73 $this->_aViewData[
"updatenav"] =
"1";
89 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'MODULE_ACTIVATION_NOT_POSSIBLE_IN_DEMOMODE');
96 $oModule =
oxNew(
'oxModule');
97 if (!$oModule->load($sModule)) {
104 $oModuleCache =
oxNew(
'oxModuleCache', $oModule);
106 $oModuleInstaller =
oxNew(
'oxModuleInstaller', $oModuleCache);
108 if ($oModuleInstaller->deactivate($oModule)) {
109 $this->_aViewData[
"updatenav"] =
"1";