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

Back to archive index

Minahito minah****@users*****
2006年 1月 11日 (水) 12:29:46 JST


Index: xoops2jp/html/kernel/object.php
diff -u xoops2jp/html/kernel/object.php:1.2.8.5 xoops2jp/html/kernel/object.php:1.2.8.6
--- xoops2jp/html/kernel/object.php:1.2.8.5	Wed Jan 11 00:39:12 2006
+++ xoops2jp/html/kernel/object.php	Wed Jan 11 12:29:45 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: object.php,v 1.2.8.5 2006/01/10 15:39:12 minahito Exp $
+// $Id: object.php,v 1.2.8.6 2006/01/11 03:29:45 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -53,7 +53,80 @@
 define('XOBJ_DTYPE_BOOL', 13);
 /**#@-*/
 
-//include_once "xoopspluginloader.php";
+/**
+ * Interface for all objects in the Xoops kernel.
+ */
+class XoopsObjectInterface
+{
+	function setNew()
+	{
+	}
+	
+	function unsetNew()
+	{
+	}
+
+	/**
+	 * @return bool
+	 */	
+	function isNew()
+	{
+	}
+	
+	function initVar($key, $data_type, $default, $required, $size)
+	{
+	}
+	
+	/**
+	 * You should use this method to initilize object's properties.
+	 * This method will not trigger unsetNew().
+	 */
+	function assignVar($key, $value)
+	{
+	}
+
+	/**
+	 * You should use this method to initilize object's properties.
+	 * This method will not trigger unsetNew().
+	 * @param $values array
+	 */	
+	function assignVars($values)
+	{
+	}
+	
+	/**
+	 * You should use this method to change object's properties.
+	 * This method will trigger unsetNew().
+	 */
+	function set($key, $value)
+	{
+	}
+	
+	function get($key)
+	{
+	}
+	
+	/**
+	 * Alias for set().
+	 * @see set()
+	 */
+	function setVar($key, $value)
+	{
+	}
+	
+	function setVars($key)
+	{
+	}
+	
+	/**
+	 * Return html string for template.
+	 * You can call get() method to get pure value.
+	 */
+	function getVar($key)
+	{
+	}
+}
+
 
 /**
  * Base class for all objects in the Xoops kernel (and beyond)
@@ -62,7 +135,7 @@
  * @copyright copyright &copy; 2000 XOOPS.org
  * @package kernel
  **/
-class XoopsObject
+class XoopsObject extends XoopsObjectInterface
 {
 
     /**


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