Minahito
minah****@users*****
2006年 8月 3日 (木) 18:33:27 JST
Index: xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php diff -u xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.4 --- xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.3 Tue Mar 28 22:28:48 2006 +++ xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php Thu Aug 3 18:33:27 2006 @@ -12,6 +12,11 @@ */ class Legacy_AdminActionSearch extends XCube_BlockProcedure { + function getName() + { + return "action_search"; + } + function getTitle() { return "TEST: AdminActionSearch"; @@ -27,8 +32,9 @@ return false; } - function execute(&$controller,&$user) + function execute(&$controller, &$user, &$render) { + $render->setTemplateName('legacy_admin_block_actionsearch.html'); } function hasResult() @@ -38,13 +44,13 @@ function &getResult() { - $dmy="dummy"; + $dmy = "dummy"; return $dmy; } - function getTemplateName() + function getRenderSystemName() { - return "legacy_admin_block_actionsearch.html"; + return 'Legacy_AdminRenderSystem'; } } Index: xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php diff -u xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.9 xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10 --- xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.9 Fri May 26 18:02:46 2006 +++ xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php Thu Aug 3 18:33:27 2006 @@ -14,7 +14,7 @@ */ class Legacy_AdminSideMenu extends XCube_BlockProcedure { - var $mModules=array(); + var $mModules = array(); /** * protected, but read OK. @@ -23,6 +23,11 @@ */ var $mCurrentModule = null; + function getName() + { + return "sidemenu"; + } + function getTitle() { return "TEST: AdminSideMenu"; @@ -38,7 +43,7 @@ return false; } - function execute(&$controller, &$user) + function execute(&$controller, &$user, &$render) { $this->mCurrentModule =& $controller->mModuleController->mModuleObject; if ($this->mCurrentModule->get('dirname') == 'base') { @@ -96,6 +101,10 @@ $this->mModules[]=&$module; unset($module); } + + $render->setTemplateName('legacy_admin_block_sidemenu.html'); + $render->setAttribute('modules', $this->mModules); + $render->setAttribute('currentModule', $this->mCurrentModule); } function hasResult() @@ -103,19 +112,9 @@ return true; } - function &getResult() - { - $t_arr = array(); - - $t_arr['modules'] =& $this->mModules; - $t_arr['currentModule'] =& $this->mCurrentModule; - - return $t_arr; - } - - function getTemplateName() + function getRenderSystemName() { - return "legacy_admin_block_sidemenu.html"; + return 'Legacy_AdminRenderSystem'; } }