| [ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
| Copyright: | Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
| License: | http://framework.zend.com/license/new-bsd New BSD License |
| Version: | $Id$ |
| File Size: | 560 lines (17 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Zend_Validate_EmailAddress:: (19 methods):
__construct()
getOptions()
setOptions()
setMessage()
getHostnameValidator()
setHostnameValidator()
validateMxSupported()
getValidateMx()
setValidateMx()
getDeepMxCheck()
setDeepMxCheck()
getDomainCheck()
setDomainCheck()
_isReserved()
_toIp()
_validateLocalPart()
_validateMXRecords()
_validateHostnamePart()
isValid()
Class: Zend_Validate_EmailAddress - X-Ref
| __construct($options = array() X-Ref |
| Instantiates 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 param: array|Zend_Config $options OPTIONAL return: void |
| getOptions() X-Ref |
| Returns all set Options return: array |
| setOptions(array $options = array() X-Ref |
| Set options for the email validator param: array $options return: Zend_Validate_EmailAddress fluid interface |
| setMessage($messageString, $messageKey = null) X-Ref |
| Sets the validation failure message template for a particular key Adds the ability to set messages to the attached hostname validator param: string $messageString param: string $messageKey OPTIONAL return: Zend_Validate_Abstract Provides a fluent interface |
| getHostnameValidator() X-Ref |
| Returns the set hostname validator return: Zend_Validate_Hostname |
| setHostnameValidator(Zend_Validate_Hostname $hostnameValidator = null, $allow = Zend_Validate_Hostname::ALLOW_DNS) X-Ref |
param: Zend_Validate_Hostname $hostnameValidator OPTIONAL param: int $allow OPTIONAL return: void |
| validateMxSupported() X-Ref |
| Whether MX checking via getmxrr is supported or not This currently only works on UNIX systems return: boolean |
| getValidateMx() X-Ref |
| Returns the set validateMx option return: boolean |
| setValidateMx($mx) X-Ref |
| Set whether we check for a valid MX record via DNS This only applies when DNS hostnames are validated param: boolean $mx Set allowed to true to validate for MX records, and false to not validate them return: Zend_Validate_EmailAddress Fluid Interface |
| getDeepMxCheck() X-Ref |
| Returns the set deepMxCheck option return: boolean |
| setDeepMxCheck($deep) X-Ref |
| Set whether we check MX record should be a deep validation param: boolean $deep Set deep to true to perform a deep validation process for MX records return: Zend_Validate_EmailAddress Fluid Interface |
| getDomainCheck() X-Ref |
| Returns the set domainCheck option return: unknown |
| setDomainCheck($domain = true) X-Ref |
| Sets if the domain should also be checked or only the local part of the email address param: boolean $domain return: Zend_Validate_EmailAddress Fluid Interface |
| _isReserved($host) X-Ref |
| Returns if the given host is reserved param: string $host return: boolean |
| _toIp($binary) X-Ref |
| Converts a binary string to an IP address param: string $binary return: mixed |
| _validateLocalPart() X-Ref |
| Internal method to validate the local part of the email address return: boolean |
| _validateMXRecords() X-Ref |
| Internal method to validate the servers MX records return: boolean |
| _validateHostnamePart() X-Ref |
| Internal method to validate the hostname part of the email address return: boolean |
| isValid($value) X-Ref |
| Defined by Zend_Validate_Interface Returns true if and only if $value is a valid email address according to RFC2822 param: string $value return: boolean |
| Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |