Class Tel
Responsibility: Validate phone number only by removing all other characters than digits and plus. To validate phone number really deeply by local conventions, use Zend validator instead.
- MvcCore\Ext\Forms\Validator implements MvcCore\Ext\Forms\IValidator
-
MvcCore\Ext\Forms\Validators\Tel
Namespace: MvcCore\Ext\Forms\Validators
See: https://github.com/zendframework/zend-i18n
See: https://github.com/zendframework/zend-i18n/blob/master/src/Validator/PhoneNumber.php
See: https://olegkrivtsov.github.io/using-zend-framework-3-book/html/en/Checking_Input_Data_with_Validators/Validator_Usage_Examples.html#Example
Located at ext-form-field-text/src/MvcCore/Ext/Forms/Validators/Tel.php
See: https://github.com/zendframework/zend-i18n
See: https://github.com/zendframework/zend-i18n/blob/master/src/Validator/PhoneNumber.php
See: https://olegkrivtsov.github.io/using-zend-framework-3-book/html/en/Checking_Input_Data_with_Validators/Validator_Usage_Examples.html#Example
Located at ext-form-field-text/src/MvcCore/Ext/Forms/Validators/Tel.php
public
string|array|null
|
CreateInstance(),
GetErrorMessage(),
SetField(),
SetForm(),
__construct(),
setUpFieldProps(),
throwNewInvalidArgumentException()
|
integer |
ERROR_PHONE
Error message index(es). |
#
0
|
protected static
array
|
$errorMessages
Validation failure message template definitions. |
#
[
self::ERROR_PHONE => "Field '{0}' requires a valid phone number.",
]
|
$field,
$fieldSpecificProperties,
$form,
$toolClass
|