Minahito
minah****@users*****
2005年 12月 16日 (金) 18:50:52 JST
Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleDeactiveListAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleDeactiveListAction.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:50:52 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleDeactiveListAction.class.php Fri Dec 16 18:50:52 2005 @@ -0,0 +1,34 @@ +<?php + +require_once XOOPS_BASE_PATH."/admin/class/DeactiveModuleHandler.class.php"; + +/** + * List up modules that are not installed yet. + */ +class LegacyModuleDeactiveListAction extends LegacyAdminAction +{ + var $mModuleObjects = null; + + function prepare(&$controller, &$xoopsUser) + { + } + + function getDefaultView(&$controller, &$xoopsUser) + { + + $db =& $controller->getDB(); + $handler = new Legacy_DeactiveModuleHandler($db); + + $this->mModuleObjects =& $handler->getObjects(); + + return LEGACY_ADMIN_FRAME_VIEW_INDEX; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$renderer) + { + $renderer->setTemplateName("deactive_module_list.html"); + $renderer->setAttribute('moduleObjects',$this->mModuleObjects); + } +} + +?> \ No newline at end of file