Browse Source

Rename FormValidator functions - refs BT#10139

Angel Fernando Quiroz Campos 9 years ago
parent
commit
f3724f5371

+ 4 - 4
main/inc/lib/extra_field.lib.php

@@ -1455,7 +1455,7 @@ EOF;
                         );
                         break;
                     case ExtraField::FIELD_TYPE_LETTERS_ONLY:
-                        $form->addLettersOnly(
+                        $form->addTextLettersOnly(
                             "extra_{$field_details['variable']}",
                             $field_details['display_text']
                         );
@@ -1470,7 +1470,7 @@ EOF;
                         }
                         break;
                     case ExtraField::FIELD_TYPE_ALPHANUMERIC:
-                        $form->addAlphanumeric(
+                        $form->addTextAlphanumeric(
                             "extra_{$field_details['variable']}",
                             $field_details['display_text']
                         );
@@ -1487,7 +1487,7 @@ EOF;
                         }
                         break;
                     case ExtraField::FIELD_TYPE_LETTERS_SPACE:
-                        $form->addLettersAndSpaces(
+                        $form->addTextLettersAndSpaces(
                             "extra_{$field_details['variable']}",
                             $field_details['display_text']
                         );
@@ -1502,7 +1502,7 @@ EOF;
                         }
                         break;
                     case ExtraField::FIELD_TYPE_ALPHANUMERIC_SPACE:
-                        $form->addAlphanumericAndSpaces(
+                        $form->addTextAlphanumericAndSpaces(
                             "extra_{$field_details['variable']}",
                             $field_details['display_text']
                         );

+ 4 - 4
main/inc/lib/formvalidator/FormValidator.class.php

@@ -1040,7 +1040,7 @@ EOT;
      * @param bool $required	Optional. Is the form-element required (default=true)
      * @param array $attributes Optional. List of attributes for the form-element
      */
-    public function addLettersOnly(
+    public function addTextLettersOnly(
         $name,
         $label,
         $required = false,
@@ -1087,7 +1087,7 @@ EOT;
      * @param bool $required	Optional. Is the form-element required (default=true)
      * @param array $attributes Optional. List of attributes for the form-element
      */
-    public function addAlphanumeric(
+    public function addTextAlphanumeric(
         $name,
         $label,
         $required = false,
@@ -1134,7 +1134,7 @@ EOT;
      * @param bool $required	Optional. Is the form-element required (default=true)
      * @param array $attributes Optional. List of attributes for the form-element
      */
-    public function addLettersAndSpaces(
+    public function addTextLettersAndSpaces(
         $name,
         $label,
         $required = false,
@@ -1181,7 +1181,7 @@ EOT;
      * @param bool $required	Optional. Is the form-element required (default=true)
      * @param array $attributes Optional. List of attributes for the form-element
      */
-    public function addAlphanumericAndSpaces(
+    public function addTextAlphanumericAndSpaces(
         $name,
         $label,
         $required = false,