Update of /cvsroot/phphtmllib/phphtmllib/form/form_elements
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9989
Modified Files:
FEText.inc
Log Message:
After looking at other form elements I realized that moving the required and
max length arguments was out of keeping with other elements. I moved them
back to where they were and put regex and error_message at the end of the list.
Index: FEText.inc
===================================================================
RCS file: /cvsroot/phphtmllib/phphtmllib/form/form_elements/FEText.inc,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- FEText.inc 3 Mar 2004 23:22:12 -0000 1.19
+++ FEText.inc 8 Mar 2004 15:37:53 -0000 1.20
@@ -513,13 +513,13 @@
* The constructor
*
* @param label string - text label for the element
- * @param regex string - a valid regular expression i.e. '/[a-z]+$/i'
- * @param error_message string - error message for failure to match the regex
* @param required bool- is this a required element
* @param width int - element width in characters, pixels (px), percentage (%) or elements (em)
* @param maxlength int- maximum number of chars allowed to type in
+ * @param regex string - a valid regular expression i.e. '/[a-z]+$/i'
+ * @param error_message string - error message for failure to match the regex
*/
- function FERegEx($label, $regex, $error_message, $required=false, $width = NULL, $maxlength = NULL) {
+ function FERegEx($label, $required=false, $width = NULL, $maxlength = NULL, $regex, $error_message) {
$this->FEText($label, $required, $width, $maxlength);
$this->_regex = $regex;
$this->_error_message = $error_message;
|