[xoops-cvslog 2724] CVS update: xoops2jp/html/class

Back to archive index

Minahito minah****@users*****
2006年 4月 11日 (火) 14:28:48 JST


Index: xoops2jp/html/class/criteria.php
diff -u xoops2jp/html/class/criteria.php:1.2.8.4 xoops2jp/html/class/criteria.php:1.2.8.5
--- xoops2jp/html/class/criteria.php:1.2.8.4	Wed Jan 11 19:17:29 2006
+++ xoops2jp/html/class/criteria.php	Tue Apr 11 14:28:48 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: criteria.php,v 1.2.8.4 2006/01/11 10:17:29 minahito Exp $
+// $Id: criteria.php,v 1.2.8.5 2006/04/11 05:28:48 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -103,11 +103,56 @@
 
     /**
      * Render the criteria element
+     * @deprecated
      */
     function render()
     {
 
     }
+    
+    /**
+     * Return true if this object has child elements.
+     */
+    function hasChildElements()
+    {
+		return false;
+	}
+    
+    function getCountChildElements()
+    {
+		return 0;
+	}
+    
+    /**
+     * Return child element.
+     */
+	function getChildElement($idx)
+	{
+		return null;
+	}
+	
+    /**
+     * Return condition string.
+     */
+	function getCondition($idx)
+	{
+		return null;
+	}
+
+	function getName()
+	{
+		return null;
+	}
+	
+	function getValue()
+	{
+		return null;
+	}
+	
+	function getOperator()
+	{
+		return null;
+	}
 
     /**#@+
      * Accessor
@@ -235,6 +280,26 @@
             $this->add($ele, $condition);
         }
     }
+    
+	function hasChildElements()
+	{
+		return count($this->criteriaElements) > 0;
+	}
+	
+    function getCountChildElements()
+    {
+		return count($this->criteriaElements);
+	}
+	
+	function getChildElement($idx)
+	{
+		return $this->criteriaElements[$idx];
+	}
+	
+	function getCondition($idx)
+	{
+		return $this->conditions[$idx];
+	}
 
     /**
      * Add an element
@@ -359,6 +424,21 @@
 			$this->value = $value;
 		}
     }
+    
+    function getName()
+    {
+		return $this->column;
+	}
+	
+	function getValue()
+	{
+		return $this->value;
+	}
+	
+	function getOperator()
+	{
+		return $this->operator;
+	}
 
     /**
      * Make a sql condition string


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