Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
INVALID = 'emailAddressInvalid'
Details INVALID_FORMAT = 'emailAddressInvalidFormat'
Details INVALID_HOSTNAME = 'emailAddressInvalidHostname'
Details INVALID_MX_RECORD = 'emailAddressInvalidMxRecord'
Details INVALID_SEGMENT = 'emailAddressInvalidSegment'
Details DOT_ATOM = 'emailAddressDotAtom'
Details QUOTED_STRING = 'emailAddressQuotedString'
Details INVALID_LOCAL_PART = 'emailAddressInvalidLocalPart'
Details LENGTH_EXCEEDED = 'emailAddressLengthExceeded'
Detailsstring $_hostname = ''
Detailsarray $_invalidIp = 'array'
Detailsstring $_localPart = ''
Detailsarray $_messageTemplates = 'array'
Detailsarray $_messageVariables = 'array'
Details $_options = 'array'Internal options array
Details__construct(
array|Zend_Config $options
=
array
)
:
voidInstantiates hostname validator for local use
The following option keys are supported: 'hostname' => A hostname validator, see Zend_Validate_Hostname 'allow' => Options for the hostname validator, see Zend_Validate_Hostname::ALLOW_* 'mx' => If MX check should be enabled, boolean 'deep' => If a deep MX check should be done, boolean
Details_isReserved(
string $host
)
:
booleanReturns if the given host is reserved
Details_toIp(
string $binary
)
:
mixedConverts a binary string to an IP address
Details_validateHostnamePart(
)
:
booleanInternal method to validate the hostname part of the email address
Details_validateLocalPart(
)
:
booleanInternal method to validate the local part of the email address
Details_validateMXRecords(
)
:
booleanInternal method to validate the servers MX records
DetailsgetDeepMxCheck(
)
:
booleanReturns the set deepMxCheck option
DetailsgetDomainCheck(
)
:
unknownReturns the set domainCheck option
DetailsgetHostnameValidator(
)
:
Zend_Validate_HostnameReturns the set hostname validator
DetailsgetOptions(
)
:
arrayReturns all set Options
DetailsgetValidateMx(
)
:
booleanReturns the set validateMx option
DetailsisValid(
string $value
)
:
booleanDefined by Zend_Validate_Interface
Returns true if and only if $value is a valid email address according to RFC2822
DetailssetDeepMxCheck(
boolean $deep
)
:
Zend_Validate_EmailAddressSet whether we check MX record should be a deep validation
DetailssetDomainCheck(
boolean $domain
=
true
)
:
Zend_Validate_EmailAddressSets if the domain should also be checked or only the local part of the email address
DetailssetHostnameValidator(
Zend_Validate_Hostname $hostnameValidator
=
null, int $allow
=
Zend_Validate_Hostname
)
:
void
DetailssetMessage(
string $messageString, string $messageKey
=
null
)
:
Zend_Validate_AbstractSets the validation failure message template for a particular key Adds the ability to set messages to the attached hostname validator
DetailssetOptions(
array $options
=
array
)
:
Zend_Validate_EmailAddressSet options for the email validator
DetailssetValidateMx(
boolean $mx
)
:
Zend_Validate_EmailAddressSet whether we check for a valid MX record via DNS
This only applies when DNS hostnames are validated
DetailsvalidateMxSupported(
)
:
booleanWhether MX checking via getmxrr is supported or not
This currently only works on UNIX systems
Details