Minahito
minah****@users*****
2006年 2月 2日 (木) 21:22:44 JST
Index: xoops2jp/html/modules/base/admin/actions/InstallListAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/InstallListAction.class.php:1.1.2.1 --- /dev/null Thu Feb 2 21:22:44 2006 +++ xoops2jp/html/modules/base/admin/actions/InstallListAction.class.php Thu Feb 2 21:22:44 2006 @@ -0,0 +1,36 @@ +<?php + +// +// TODO We should to delete the original handler style. +// +require_once XOOPS_BASE_PATH."/admin/class/DeactiveModuleHandler.class.php"; + +/** + * List up modules that are not installed yet. + */ +class Legacy_InstallListAction extends Legacy_Action +{ + 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_FRAME_VIEW_INDEX; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$renderer) + { + $renderer->setTemplateName("install_list.html"); + $renderer->setAttribute('moduleObjects',$this->mModuleObjects); + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/base/admin/actions/ModuleDeactiveListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ModuleDeactiveListAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/ModuleDeactiveListAction.class.php:removed --- xoops2jp/html/modules/base/admin/actions/ModuleDeactiveListAction.class.php:1.1.2.1 Thu Jan 26 01:18:51 2006 +++ xoops2jp/html/modules/base/admin/actions/ModuleDeactiveListAction.class.php Thu Feb 2 21:22:44 2006 @@ -1,34 +0,0 @@ -<?php - -require_once XOOPS_BASE_PATH."/admin/class/DeactiveModuleHandler.class.php"; - -/** - * List up modules that are not installed yet. - */ -class Legacy_ModuleDeactiveListAction extends Legacy_Action -{ - 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_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