NobuNobu
nobun****@users*****
2006年 7月 8日 (土) 11:22:22 JST
Index: xoops2jp/html/admin.php diff -u xoops2jp/html/admin.php:1.2.8.4 xoops2jp/html/admin.php:1.2.8.5 --- xoops2jp/html/admin.php:1.2.8.4 Sat May 27 23:06:23 2006 +++ xoops2jp/html/admin.php Sat Jul 8 11:22:22 2006 @@ -1,21 +1,6 @@ <?php -// $Id: admin.php,v 1.2.8.4 2006/05/27 14:06:23 nobunobu Exp $ +// $Id: admin.php,v 1.2.8.5 2006/07/08 02:22:22 nobunobu Exp $ include "mainfile.php"; -require_once XOOPS_ROOT_PATH."/class/XCube_EventManager.class.php"; -class DefaultSystemCheckProxyRegister extends XCube_EventProxyRegister -{ - var $_mList=array("Legacypage.Admin.SystemCheck"); - function getEventNameList() - { - return $this->_mList; - } - function &createLegacypage_Admin_SystemCheckDelegate() - { - $delegate=new XCube_Delegate("DefaultSystemCheckFunction","DefaultCheck"); - return $delegate; - } - -} class DefaultSystemCheckFunction { function DefaultCheck() @@ -34,8 +19,7 @@ require_once XOOPS_ROOT_PATH . "/header.php"; $root=&XCube_Root::getSingleton(); -$root->mEventManager->addProxyRegister(new DefaultSystemCheckProxyRegister()); -$eventArgs=array(); -$root->mEventManager->raiseEvent("Legacypage.Admin.SystemCheck",$root->mController,$eventArgs); +$root->mDelegateManager->add("Legacypage.Admin.SystemCheck", "DefaultSystemCheckFunction::DefaultCheck"); +XCube_DelegateUtils::call("Legacypage.Admin.SystemCheck"); require_once XOOPS_ROOT_PATH . "/footer.php"; ?> \ No newline at end of file