[xoops-cvslog 3282] CVS update: xoops2jp/html/kernel

Back to archive index

Minahito minah****@users*****
2006年 6月 6日 (火) 11:50:56 JST


Index: xoops2jp/html/kernel/XCube_TextModifier.class.php
diff -u xoops2jp/html/kernel/XCube_TextModifier.class.php:1.1.2.1 xoops2jp/html/kernel/XCube_TextModifier.class.php:removed
--- xoops2jp/html/kernel/XCube_TextModifier.class.php:1.1.2.1	Tue Nov 29 16:14:32 2005
+++ xoops2jp/html/kernel/XCube_TextModifier.class.php	Tue Jun  6 11:50:56 2006
@@ -1,65 +0,0 @@
-<?php
-
-class XCube_TextModifier
-{
-	function getName()
-	{
-	}
-
-	function convertString(&$string)
-	{
-	}
-
-	function convertText(&$text)
-	{
-	}
-}
-
-/**
- * Collect TextModifiers. When a logic wants to call a convert function, this
- * class does substitution.
- */
-class XCube_TextModifierManager
-{
-	var $mDefaultKey=null;
-	var $mModifiers=array();
-
-	function addModifier(&$modifier)
-	{
-		$this->mModifiers[$modifier->getName()]=&$modifier;
-		if($this->mDefaultKey==null) {
-			$this->mDefaultKey=$modifier->getName();
-		}
-	}
-
-	function hasModifier($modifierName)
-	{
-		return array_key_exists($modifierName,$this->mModifiers);
-	}
-	
-	function countModifier()
-	{
-		return count($this->mModifiers);
-	}
-	
-	function &searchModifier($modifierName=null,$fallback=true)
-	{
-		$dmy=false;
-		if($modifierName!=null) {
-			if($this->hasModifier($modifierName)) {
-				return $this->mModifiers[$modifierName];
-			}
-			elseif($fallback) {
-				return $this->mModifiers[$this->mDefaultKey];
-			}
-			else {
-				return $dmy;
-			}
-		}
-		else {
-			return $this->mModifiers[$this->mDefaultKey];
-		}
-	}
-}
-
-?>
\ No newline at end of file


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