PhoneValidator
class PhoneValidator extends RegexValidator (View source)
The PhoneValidator class.
Methods
setError(string $error = null)
Method to set property error
from AbstractValidator
Details
in AbstractValidator at line line 46
boolean
validate(mixed $value)
Validate this value and set error message.
.
in AbstractValidator at line line 72
string
getError()
Get error message.
in AbstractValidator at line line 84
AbstractValidator
setError(string $error = null)
Method to set property error
in AbstractValidator at line line 98
AbstractValidator
setMessage(string $message)
Set error message.
in RegexValidator at line line 40
__construct(string $regex = null, string $modifiers = '')
Class init.
in RegexValidator at line line 51
string
getRegex()
Method to get property Regex
in RegexValidator at line line 63
RegexValidator
setRegex(string $regex)
Method to set property regex
in RegexValidator at line line 75
string
getModifiers()
Method to get property Modifiers
in RegexValidator at line line 87
RegexValidator
setModifiers(string $modifiers)
Method to set property modifiers