|
@@ -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,
|
|
@@ -1145,7 +1145,7 @@ EOT;
|
|
|
$attributes,
|
|
|
[
|
|
|
'pattern' => '[a-zA-ZñÑ\s]+',
|
|
|
- 'title' => get_lang('OnlyLettersAndSpace')
|
|
|
+ 'title' => get_lang('OnlyLettersAndSpaces')
|
|
|
]
|
|
|
);
|
|
|
|
|
@@ -1154,7 +1154,7 @@ EOT;
|
|
|
$name,
|
|
|
[
|
|
|
$label,
|
|
|
- get_lang('OnlyLettersAndSpace')
|
|
|
+ get_lang('OnlyLettersAndSpaces')
|
|
|
],
|
|
|
$attributes
|
|
|
);
|
|
@@ -1167,7 +1167,7 @@ EOT;
|
|
|
|
|
|
$this->addRule(
|
|
|
$name,
|
|
|
- get_lang('OnlyLettersAndSpace'),
|
|
|
+ get_lang('OnlyLettersAndSpaces'),
|
|
|
'regex',
|
|
|
'/^[a-zA-ZñÑ\s]+$/'
|
|
|
);
|
|
@@ -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,
|