[xoops-cvslog 4783] CVS update: xoops2jp/html/modules/base/kernel

Back to archive index

Minahito minah****@users*****
2006年 10月 5日 (木) 18:09:32 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.13.2.1 xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13.2.2
--- xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13.2.1	Tue Oct  3 18:30:38 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php	Thu Oct  5 18:09:32 2006
@@ -1,15 +1,11 @@
 <?php
 /**
  * @package legacy
- * @version $Id: Legacy_ModuleController.class.php,v 1.1.2.13.2.1 2006/10/03 09:30:38 minahito Exp $
+ * @version $Id: Legacy_ModuleController.class.php,v 1.1.2.13.2.2 2006/10/05 09:09:32 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
-require_once XOOPS_ROOT_PATH . "/modules/base/kernel/Legacy_CacheInformation.class.php";
-
-define("LEGACY_XOOPS_MODULE_MANIFESTO_FILENAME", "./xoops_version.php");
-
 /**
  * This class is the part of Legacy_Controller. Because that controller class
  * is too large, this class has been separated. And, this class is the strategy
@@ -179,7 +175,7 @@
 	 */
 	function _loadRole()
 	{
-		$xoopsUser =& $this->mController->mXoopsUser;
+		$xoopsUser =& $this->mController->mRoot->mContext->mXoopsUser;
 		$module =& $this->mModuleObject;
 		
 		$groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
@@ -267,31 +263,5 @@
 		return "Legacy_RenderSystem";
 	}
 	
-	/**
-	 * Initializes a cache information object, and returns it.
-	 * @return Legacy_ModuleCacheInformation
-	 */
-	function &createCacheInfo()
-	{
-		$this->mCacheInfo =& new Legacy_ModuleCacheInformation();
-		$this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI');
-		$this->mCacheInfo->setModule($xoopsModule);
-		
-		return $this->mCacheInfo;
-	}
-
-	/**
-	 * Gets a value indicating whether the current module has a option of
-	 * configurations to use the cache system.
-	 * @return bool
-	 */
-	function hasCacheConfig()
-	{
-		if (xoops_getenv('REQUEST_METHOD') == 'POST') {
-			return false;
-		}
-		
-		return is_object($this->mModuleObject) && !empty($this->mController->mConfig['module_cache'][$this->mModuleObject->get('mid')]);
-	}
 }
 ?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index