? .QuickForm.php.swp
? QuickForm.diff
Index: QuickForm.php
===================================================================
RCS file: /repository/pear/HTML_QuickForm/QuickForm.php,v
retrieving revision 1.145
diff -u -r1.145 QuickForm.php
--- QuickForm.php	10 Oct 2004 11:03:52 -0000	1.145
+++ QuickForm.php	13 Oct 2004 12:54:59 -0000
@@ -679,6 +679,20 @@
         }
         return $value;
     } // end func getElementValue
+    
+    // }}}
+    // {{{ getElementNames()
+
+    /**
+     * Returns the elements names as an array
+     *
+     * @access   public
+     * @return   array
+     */
+    function getElementNames()
+    {
+        return array_keys($this->_elementIndex);
+    }
 
     // }}}
     // {{{ getSubmitValue()
@@ -1057,6 +1071,20 @@
         }
         $this->_formRules[] = $rule;
     }
+
+    // }}}
+    // {{{ getElementRules()
+
+    /**
+     * Returns the rule paramters for each element as an array
+     *
+     * @access  public
+     * @return  array
+     */
+    function getElementRules()
+    {
+        return $this->_rules;
+    }
     
     // }}}
     // {{{ applyFilter()
@@ -1834,4 +1862,4 @@
 
     // }}}
 } // end class HTML_QuickForm_Error
-?>
\ No newline at end of file
+?>
