[xoops-cvslog 1238] CVS update: xoops2jp/html/modules/legacyRender/kernel

Back to archive index

Minahito minah****@users*****
2005年 11月 29日 (火) 16:16:05 JST


Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php
diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.4
--- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.3	Mon Nov 28 22:45:54 2005
+++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php	Tue Nov 29 16:16:05 2005
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.3 2005/11/28 13:45:54 minahito Exp $
+ * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.4 2005/11/29 07:16:05 minahito Exp $
  */
 
 require_once XOOPS_ROOT_PATH."/modules/legacyRender/kernel/Legacy_RenderTarget.class.php";
@@ -50,6 +50,9 @@
 		// XoopsTpl default setup
 		$this->mXoopsTpl=new XoopsTpl();
 		
+		$this->mXoopsTpl->register_modifier("xcstring","legacy_render_system_xcstring");
+		$this->mXoopsTpl->register_modifier("xctext","legacy_render_system_xctext");
+
 		// compatible
 		$GLOBALS['xoopsTpl']=&$this->mXoopsTpl;
 		
@@ -174,6 +177,16 @@
 	function renderWithTarget(&$target)
 	{
 		//
+		// TEST
+		//
+		$target->callPreFilter();
+		
+		//
+		// TEST render->Begin();
+		//
+		$GLOBALS['currentRenderTarget']=&$target;
+		
+		//
 		// The following lines are temporary until we will finish changing the style!
 		//
 		switch($target->getType()) {
@@ -193,6 +206,11 @@
 			default:
 				break;
 		}
+
+		//
+		// TEST render->End();
+		//
+		unset($GLOBALS['currentRenderTarget']);
 	}
 
 	function renderMain(&$target)
@@ -425,5 +443,26 @@
 	}
 }
 
+function legacy_render_system_xcstring($string,$modifierName=null)
+{
+	if(is_object($GLOBALS['currentRenderTarget'])) {
+		$modifier=&$GLOBALS['currentRenderTarget']->searchModifier($modifierName);
+		if(is_object($modifier))
+			$modifier->convertString($string);
+	}
+
+	return $string;
+}
+
+function legacy_render_system_xctext($string,$modifierName=null)
+{
+	if(is_object($GLOBALS['currentRenderTarget'])) {
+		$modifier=&$GLOBALS['currentRenderTarget']->searchModifier($modifierName);
+		if(is_object($modifier))
+			$modifier->convertText($string);
+	}
+
+	return $string;
+}
 
 ?>
\ No newline at end of file


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