Minahito
minah****@users*****
2007年 1月 17日 (水) 16:43:29 JST
Index: xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.12 xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.13 --- xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.12 Wed Jan 17 14:52:37 2007 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php Wed Jan 17 16:43:29 2007 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_Module.class.php,v 1.1.2.12 2007/01/17 05:52:37 minahito Exp $ + * @version $Id: Legacy_Module.class.php,v 1.1.2.13 2007/01/17 07:43:29 minahito Exp $ */ /** @@ -303,7 +303,8 @@ * * @return bool * @note Side menu blocks may not display the admin menu if this member - * function returns false. + * function returns false. + * @remark Controller fetches the list of modules from DB before. So, 'override' may not be able to change the process. */ function hasAdminIndex() { @@ -313,6 +314,7 @@ /** * Gets an absolute URL indicating the top page of this module for the * control panel side. + * @remark Controller fetches the list of modules from DB before. So, 'override' may not be able to change the process. * @return string */ function getAdminIndex() @@ -502,12 +504,18 @@ return $ret; } + /** + * @final + */ function hasAdminIndex() { $dmy =& $this->mXoopsModule->getInfo(); return isset($this->mXoopsModule->modinfo['adminindex']) && $this->mXoopsModule->modinfo['adminindex'] != null; } + /** + * @final + */ function getAdminIndex() { $dmy =& $this->mXoopsModule->getInfo();