Class EmailValidator
Email validator
- Phramework\Validate\BaseValidator
- Phramework\Validate\StringValidator
- Phramework\Validate\EmailValidator
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 0.0.0
See:
http://json-schema.org/latest/json-schema-validation.html#anchor13 5.1. Validation keywords for numeric instances (number and integer)
Uses:
\Phramework\Validate\String As base implementation's rules to validate that the value is a number and then applies additional rules
Todo: Set global email minLength and maxLength
Located at EmailValidator.php
Methods summary
public
|
#
__construct( integer $minLength = 0, integer|null $maxLength = null , string|null $pattern,…, boolean $raw,… )
|
public
|
Methods inherited from Phramework\Validate\BaseValidator
__get()
,
__set()
,
createFromArray()
,
createFromJSON()
,
createFromObject()
,
createFromObjectForAdditional()
,
getType()
,
getTypeAttributes()
,
parse()
,
parseStatic()
,
registerValidator()
,
runValidateCallback()
,
setDefault()
,
setDescription()
,
setEnum()
,
setNot()
,
setTitle()
,
setValidateCallback()
,
toArray()
,
toJSON()
,
toObject()
,
validateCommon()
,
validateEnum()
,
validateNot()
Properties summary
protected static
string
|
$type
Overwrite base class type |
#
'email'
|
Properties inherited from Phramework\Validate\StringValidator
Properties inherited from Phramework\Validate\BaseValidator
Magic properties
public
integer
|
$minLength
Minimum number of its characters, default is 0 |
public
integer|null
|
$maxLength
Maximum number of its characters |