[xoops-cvslog 6097] CVS update: xoops2jp/html/modules/legacy/kernel

Back to archive index

Minahito minah****@users*****
2007年 1月 17日 (水) 14:52:37 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.11 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.11	Sat Nov 11 18:34:44 2006
+++ xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php	Wed Jan 17 14:52:37 2007
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package Legacy
- * @version $Id: Legacy_Module.class.php,v 1.1.2.11 2006/11/11 09:34:44 minahito Exp $
+ * @version $Id: Legacy_Module.class.php,v 1.1.2.12 2007/01/17 05:52:37 minahito Exp $
  */
 
  /**
@@ -191,8 +191,7 @@
 	 */	
 	function _createRenderTarget()
 	{
-		$root =& XCube_Root::getSingleton();
-		$renderSystem =& $root->getRenderSystem($this->getRenderSystemName());
+		$renderSystem =& $this->getRenderSystem();
 		
 		$this->mRender =& $renderSystem->createRenderTarget('main');
 		if ($this->mXoopsModule != null) {
@@ -202,6 +201,9 @@
 	
 	/**
 	 * Gets a name of the dependency render system.
+	 * @remark If this module depends on other systems than the main render
+	 *         system  by Legacy, override this.
+	 * @see getRenderSystem()
 	 * @return string
 	 */
 	function getRenderSystemName()
@@ -211,6 +213,20 @@
 	}
 	
 	/**
+	 * Gets the dependency render system.
+	 * @remark If this module uses the unregistered render system is used,
+	 *         override this.
+	 * @return XCube_RenderSystem
+	 */
+	function &getRenderSystem()
+	{
+		$root =& XCube_Root::getSingleton();
+		$renderSystem =& $root->getRenderSystem($this->getRenderSystemName());
+		
+		return $renderSystem;
+	}
+	
+	/**
 	 * Gets a value indicating whether this modules is an active.
 	 * @return bool
 	 */
@@ -247,7 +263,7 @@
 	{
 		$this->mCacheInfo =& new Legacy_ModuleCacheInformation();
 		$this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI');
-		$this->mCacheInfo->setModule($xoopsModule);
+		$this->mCacheInfo->setModule($this->mXoopsModule);
 		
 		return $this->mCacheInfo;
 	}


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