[xoops-cvslog 1914] CVS update: xoops2jp/html/class

Back to archive index

Minahito minah****@users*****
2006年 1月 25日 (水) 12:45:36 JST


Index: xoops2jp/html/class/XCube_RenderSystem.class.php
diff -u xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.12 xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.13
--- xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.12	Wed Jan 11 12:31:10 2006
+++ xoops2jp/html/class/XCube_RenderSystem.class.php	Wed Jan 25 12:45:36 2006
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version $Id: XCube_RenderSystem.class.php,v 1.1.2.12 2006/01/11 03:31:10 minahito Exp $
+ * @version $Id: XCube_RenderSystem.class.php,v 1.1.2.13 2006/01/25 03:45:36 minahito Exp $
  * @package Cube
  */
 
@@ -34,41 +34,43 @@
 
 	var $mRenderBuffer=null;
 	
+	var $mModuleName = null;
+	
 	var $mTemplateName=null;
 
-	var $mAttributes=array();
+	var $mAttributes = array();
 	
-	var $mParameters=array();
-
-	var $mType=XCUBE_RENDER_TARGET_TYPE_BUFFER;
+	var $mType = XCUBE_RENDER_TARGET_TYPE_BUFFER;
 	
 	var $mCacheTime = null;
 		
-	/**
-	 * TEST : Effect Frame Work
-	 */
-	var $mRenderFilter=null;
-	
-	var $ModifierManager=null;
-
 	function XCube_RenderTarget()
 	{
-		$this->ModifierManager=new XCube_TextModifierManager();
 	}
 
 	function setName($name)
 	{
-		$this->mName=$name;
+		$this->mName = $name;
 	}
 
 	function getName()
 	{
 		return $this->mName;
 	}
+	
+	function setModuleName($name)
+	{
+		$this->mModuleName = $name;
+	}
+	
+	function getModuleName()
+	{
+		return $this->mModuleName;
+	}
 
 	function setTemplateName($name)
 	{
-		$this->mTemplateName=$name;
+		$this->mTemplateName = $name;
 	}
 
 	function getTemplateName()
@@ -78,12 +80,12 @@
 	
 	function setAttribute($key,$value)
 	{
-		$this->mAttributes[$key]=$value;
+		$this->mAttributes[$key] = $value;
 	}
 	
 	function setAttributes($attr)
 	{
-		$this->mAttributes=$attr;
+		$this->mAttributes = $attr;
 	}
 	
 	function getAttribute($key)
@@ -98,7 +100,7 @@
 	
 	function setRenderBuffer($buf)
 	{
-		$this->mRenderBuffer=$buf;
+		$this->mRenderBuffer = $buf;
 	}
 	
 	function getRenderBuffer($buf)
@@ -108,10 +110,7 @@
 	
 	function setResult(&$result)
 	{
-		if(is_object($this->mRenderFilter)) {
-			$this->mRenderFilter->resultFilter($result);
-		}
-		$this->mRenderBuffer=$result;
+		$this->mRenderBuffer = $result;
 	}
 	
 	function getResult()
@@ -125,7 +124,7 @@
 	 */
 	function setType($type)
 	{
-		$this->mType=$type;
+		$this->mType = $type;
 	}
 	
 	/**
@@ -143,72 +142,10 @@
 	function reset()
 	{
 		$this->setTemplateName(null);
+		$this->setModuleName(null);
 		unset($this->mAttributes);
-		$this->mAttributes=array();
-		$this->mRenderBuffer=null;
-	}
-
-	/**
-	 * TEST
-	 */
-	function setRenderFilter(&$filter)
-	{
-		$this->mRenderFilter=&$filter;
-	}
-	
-	/**
-	 * TEST
-	 */
-	function callPreFilter()
-	{
-		if(is_object($this->mRenderFilter)) {
-			$this->mRenderFilter->preFilter($this);
-		}
-	}
-
-	/**
-	 * TEST
-	 */
-	function addModifier(&$modifier)
-	{
-		$this->ModifierManager->addModifier($modifier);
-	}
-
-	/**
-	 * TEST
-	 */
-	function hasModifier($modifierName)
-	{
-		return $this->ModifierManager->hasModifier($modifierName);
-	}
-	
-	function countModifier()
-	{
-		return $this->ModifierManager->countModifier();
-	}
-
-	/**
-	 * TEST
-	 */
-	function &searchModifier($modifierName=null)
-	{
-		$root=&XCube_Root::getSingleton();
-
-		if($this->ModifierManager->countModifier()==0) {
-			$modifier=&$root->ModifierManager->searchModifier($modifierName,true);
-			return $modifier;
-		}
-
-		$modifier=&$this->ModifierManager->searchModifier($modifierName,false);
-		if(is_object($modifier))
-			return $modifier;
-
-		$modifier=&$root->ModifierManager->searchModifier($modifierName,false);
-		if(is_object($modifier))
-			return $modifier;
-
-		$modifier=&$this->ModifierManager->searchModifier(null,false);
-		return $modifier;
+		$this->mAttributes = array();
+		$this->mRenderBuffer = null;
 	}
 }
 


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