]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/HTML/QuickForm.php
Se sobreescribe addRule() y addGroupRule() para que validen en el cliente tambien...
[mecon/meconlib.git] / lib / MECON / HTML / QuickForm.php
index 407e5c967206b1b288ccaa9e1c12cba8c69e0e68..560ad607edbcaa77cd017a4f2b2f212dbe110abe 100644 (file)
@@ -40,6 +40,14 @@ class MECON_HTML_QuickForm extends HTML_QuickForm {
         $this->registerRule('fecha', 'function', 'validate', 'HTML_QuickForm_mdate');
         $this->setRequiredNote('<FONT color="red">*</FONT> indica un campo obligatorio');
     }
+    function addRule($element, $message, $type, $format='', $validation='client', $reset = false, $force = false)
+    {
+        parent::addRule($element, $message, $type, $format, $validation, $reset, $force);
+    }
+    function addGroupRule($group, $arg1, $type='', $format='', $howmany=0, $validation = 'client')
+    {
+        parent::addGroupRule($group, $arg1, $type, $format, $howmany, $validation);
+    }
 }
 
 ?>