Minahito
minah****@users*****
2006年 9月 25日 (月) 12:26:55 JST
Index: xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.11 xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.12 --- xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.11 Sun Sep 24 23:05:34 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php Mon Sep 25 12:26:55 2006 @@ -1,7 +1,7 @@ <?php /** * @package legacy - * @version $Id: Legacy_ModuleController.class.php,v 1.1.2.11 2006/09/24 14:05:34 minahito Exp $ + * @version $Id: Legacy_ModuleController.class.php,v 1.1.2.12 2006/09/25 03:26:55 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -37,20 +37,12 @@ * The cache information for the current module. * @var Legacy_CacheInformation */ - var $mCacheInformation = null; - - /** - * @var XCube_Delegate - */ - var $_mSetupCacheInformation = null; + var $mCacheInfo = null; function Legacy_ModuleController(&$controller) { $this->mController =& $controller; $this->mCacheInformation =& new Legacy_ModuleCacheInformation(); - - $this->_mSetupCacheInformation =& new XCube_Delegate(); - $this->_mSetupCacheInformation->register('Legacy_ModuleController.SetupCacheInformation'); } function getConfig($key = null) @@ -256,14 +248,16 @@ } /** - * Initialize the cache information object. + * Initializes a cache information object, and returns it. + * @return Legacy_ModuleCacheInformation */ - function setupCacheInformation() + function &createCacheInfo() { - $this->mCacheInformation->mURL = xoops_getenv('REQUEST_URI'); - $this->mCacheInformation->setModule($xoopsModule); + $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); + $this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI'); + $this->mCacheInfo->setModule($xoopsModule); - $this->_mSetupCacheInformation->call(new XCube_Ref($this->mCacheInformation)); + return $this->mCacheInfo; } /** @@ -271,7 +265,7 @@ * configurations to use the cache system. * @return bool */ - function hasModuleCacheConfig() + function hasCacheConfig() { if (xoops_getenv('REQUEST_METHOD') == 'POST') { return false;