Minahito
minah****@users*****
2006年 2月 3日 (金) 12:04:50 JST
Index: xoops2jp/html/modules/base/actions/SmiliesAction.class.php diff -u /dev/null xoops2jp/html/modules/base/actions/SmiliesAction.class.php:1.1.2.1 --- /dev/null Fri Feb 3 12:04:50 2006 +++ xoops2jp/html/modules/base/actions/SmiliesAction.class.php Fri Feb 3 12:04:50 2006 @@ -0,0 +1,40 @@ +<?php + +require_once XOOPS_MODULE_PATH . "/base/class/PageNavigator.class.php"; +require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/base/forms/SmilesFilterForm.class.php"; + +class Legacy_SmiliesAction extends Legacy_AbstractListAction +{ + function &_getHandler() + { + $handler =& xoops_getmodulehandler('smiles', 'base'); + return $handler; + } + + function &_getFilterForm(&$navi) + { + $filter =& new Legacy_SmilesFilterForm($navi); + return $filter; + } + + function _getBaseUrl() + { + return "./misc.php?type=Smilies"; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + // + // Because this action's template uses BASE message catalog, load it. + // + $root =& $controller->mRoot; + $root->mLanguageManager->loadModuleLanguage('base'); + + $render->setTemplateName("legacy_misc_smilies.html"); + $render->setAttribute("objects", $this->mObjects); + $render->setAttribute("pageNavi", $this->mNavi); + } +} + +?>