Class Zend_Validate_EmailAddress

Description

Implements interfaces:

  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Validate/EmailAddress.php (line 42)


	
			
Variable Summary
Method Summary
 void __construct ([integer $allow = Zend_Validate_Hostname::ALLOW_DNS])
 array getMessages ()
 boolean isValid (string $value)
Variables
Zend_Validate_Hostname $_hostnameValidator (line 56)

Local object for validating the hostname part of an email address

  • access: protected
array $_messages = array() (line 49)

Array of validation failure messages

  • access: protected
Methods
Constructor __construct (line 69)

Instantiates hostname validator for local use

You can pass a bitfield to determine what types of hostnames are allowed. These bitfields are defined by the ALLOW_* constants in Zend_Validate_Hostname The default is to allow DNS hostnames only

void __construct ([integer $allow = Zend_Validate_Hostname::ALLOW_DNS])
  • integer $allow
getMessages (line 164)

Defined by Zend_Validate_Interface

Returns array of validation failure messages

  • access: public
array getMessages ()

Implementation of:
Zend_Validate_Interface::getMessages()
Returns an array of messages that explain why a previous isValid() call returned false
isValid (line 86)

Defined by Zend_Validate_Interface

Returns true if and only if $value is a valid email address according to RFC2822

boolean isValid (string $value)
  • string $value

Implementation of:
Zend_Validate_Interface::isValid()
Returns true if and only if $value meets the validation requirements

Documentation generated on Wed, 21 Feb 2007 11:47:06 -0800 by phpDocumentor 1.3.1