[xoops-cvslog 1236] CVS update: xoops2jp/html/modules/base/class

アーカイブの一覧に戻る

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


Index: xoops2jp/html/modules/base/class/BBCode_Modifier.class.php
diff -u /dev/null xoops2jp/html/modules/base/class/BBCode_Modifier.class.php:1.1.2.1
--- /dev/null	Tue Nov 29 16:15:01 2005
+++ xoops2jp/html/modules/base/class/BBCode_Modifier.class.php	Tue Nov 29 16:15:01 2005
@@ -0,0 +1,31 @@
+<?php
+
+require_once XOOPS_ROOT_PATH."/kernel/XCube_TextModifier.class.php";
+
+class BBCode_Modifier extends XCube_TextModifier
+{
+	var $myts;
+	
+	function BBCode_Modifier()
+	{
+		$this->myts=&MyTextSanitizer::getInstance();
+
+	}
+	
+	function getName()
+	{
+		return "bbcode";
+	}
+	
+	function convertString(&$string)
+	{
+		$string=$this->myts->htmlSpecialChars($string,0,1,1,0,1);
+	}
+
+	function convertText(&$text)
+	{
+		$text=$this->myts->displayTarea($text,0,1,1,0,1);
+	}
+}
+
+?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る