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

Back to archive index

Minahito minah****@users*****
2006年 7月 5日 (水) 11:37:54 JST


Index: xoops2jp/html/kernel/object.php
diff -u xoops2jp/html/kernel/object.php:1.2.8.10 xoops2jp/html/kernel/object.php:1.2.8.11
--- xoops2jp/html/kernel/object.php:1.2.8.10	Tue May 16 22:25:07 2006
+++ xoops2jp/html/kernel/object.php	Wed Jul  5 11:37:54 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: object.php,v 1.2.8.10 2006/05/16 13:25:07 nobunobu Exp $
+// $Id: object.php,v 1.2.8.11 2006/07/05 02:37:54 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -58,7 +58,7 @@
 /**
  * Interface for all objects in the Xoops kernel.
  */
-class XoopsObjectInterface
+class AbstractXoopsObject
 {
 	function setNew()
 	{
@@ -101,18 +101,10 @@
 	}
 	
 	/**
-	 * Alias for set().
-	 * @see set()
-	 */
-	function setVar($key, $value)
-	{
-	}
-	
-	/**
 	 * Return html string for template.
 	 * You can call get() method to get pure value.
 	 */
-	function getVar($key)
+	function getShow($key)
 	{
 	}
 }
@@ -125,7 +117,7 @@
  * @copyright copyright &copy; 2000 XOOPS.org
  * @package kernel
  **/
-class XoopsObject extends XoopsObjectInterface
+class XoopsObject extends AbstractXoopsObject
 {
 
     /**
@@ -461,6 +453,11 @@
         return $ret;
     }
 
+	function getShow($key)
+	{
+		return $this->getVar($key, 's');
+	}
+	
 	function set($key, $value)
 	{
 		$this->setVar($key, $value);


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