Instantiates hostname validator for local use
The following additional option keys are supported: ‘hostnameValidator’ => A hostname validator, see ZendValidatorHostname ‘allow’ => Options for the hostname validator, see ZendValidatorHostname::ALLOW_* ‘useMxCheck’ => If MX check should be enabled, boolean ‘useDeepMxCheck’ => If a deep MX check should be done, boolean
Parameters: | array|Traversable – OPTIONAL |
---|
Sets the validation failure message template for a particular key Adds the ability to set messages to the attached hostname validator
Parameters: |
|
---|---|
Return type: | AbstractValidator Provides a fluent interface |
Returns the set hostname validator
If was not previously set then lazy load a new one
Return type: | Hostname |
---|
@param Hostname $hostnameValidator OPTIONAL
Return type: | EmailAddress Provides a fluent interface |
---|
Returns the allow option of the attached hostname validator
Return type: | integer |
---|
Sets the allow option of the hostname validator to use
Parameters: | integer – |
---|---|
Return type: | EmailAddress Provides a fluent interface |
Whether MX checking via getmxrr is supported or not
Return type: | bool |
---|
Set whether we check for a valid MX record via DNS
This only applies when DNS hostnames are validated
Parameters: | bool – Set allowed to true to validate for MX records, and false to not validate them |
---|---|
Return type: | EmailAddress Fluid Interface |
Use deep validation for MX records
Parameters: | bool – Set deep to true to perform a deep validation process for MX records |
---|---|
Return type: | EmailAddress Fluid Interface |
Sets if the domain should also be checked or only the local part of the email address
Parameters: | bool – |
---|---|
Return type: | EmailAddress Fluid Interface |
Returns if the given host is reserved
The following addresses are seen as reserved ‘0.0.0.0/8’, ‘10.0.0.0/8’, ‘127.0.0.0/8’ ‘100.64.0.0/10’ ‘172.16.0.0/12’ ‘198.18.0.0/15’ ‘169.254.0.0/16’, ‘192.168.0.0/16’ ‘192.0.2.0/24’, ‘192.88.99.0/24’, ‘198.51.100.0/24’, ‘203.0.113.0/24’ ‘224.0.0.0/4’, ‘240.0.0.0/4’
Parameters: | string – |
---|---|
Return type: | bool Returns false when minimal one of the given addresses is not reserved |
Internal method to validate the local part of the email address
Return type: | bool |
---|
Returns the found MX Record information after validation including weight for further processing
Return type: | array |
---|
Internal method to validate the servers MX records
Return type: | bool |
---|
Internal method to validate the hostname part of the email address
Return type: | bool |
---|