PHP Class Horde_Form_Type_email, horde

Inheritance: extends Horde_Form_Type
显示文件 Open project: horde/horde

Public Properties

Property Type Description
$_allow_multi boolean Allow multiple addresses?
$_check_smtp boolean Whether to check the domain's SMTP server whether the address exists.
$_delimiters string A string containing valid delimiters (default is just comma).
$_link_compose boolean Link the email address to the compose page when displaying?
$_link_name boolean The name to use when linking to the compose page
$_size integer The size of the input field.
$_strip_domain boolean Protect address from spammers?

Public Methods

Method Description
about ( ) Return info about field type.
allowMulti ( )
getSize ( )
init ( boolean $allow_multi = false, boolean $strip_domain = false, boolean $link_compose = false, string $link_name = null, string $delimiters = ',', integer $size = null )
isValid ( &$var, &$vars, $value, &$message )
splitEmailAddresses ( string $string ) : array Explodes an RFC 2822 string, ignoring a delimiter if preceded by a "\" character, or if the delimiter is inside single or double quotes.
validateEmailAddress ( string $email ) : boolean
validateEmailAddressSmtp ( string $email ) : boolean Attempt partial delivery of mail to an address to validate it.

Protected Methods

Method Description
_isRfc3696ValidEmailAddress ( $email ) RFC3696 Email Parser
_rfc3696StripComments ( $comment, $email, $replace = '' ) RFC3696 Email Parser

Method Details

_isRfc3696ValidEmailAddress() protected method

By Cal Henderson This code is dual licensed: CC Attribution-ShareAlike 2.5 - http://creativecommons.org/licenses/by-sa/2.5/ GPLv3 - http://www.gnu.org/copyleft/gpl.html
protected _isRfc3696ValidEmailAddress ( $email )

_rfc3696StripComments() protected method

By Cal Henderson This code is dual licensed: CC Attribution-ShareAlike 2.5 - http://creativecommons.org/licenses/by-sa/2.5/ GPLv3 - http://www.gnu.org/copyleft/gpl.html $Revision: 5039 $
protected _rfc3696StripComments ( $comment, $email, $replace = '' )

about() public method

Return info about field type.
public about ( )

allowMulti() public method

public allowMulti ( )

getSize() public method

public getSize ( )

init() public method

public init ( boolean $allow_multi = false, boolean $strip_domain = false, boolean $link_compose = false, string $link_name = null, string $delimiters = ',', integer $size = null )
$allow_multi boolean Allow multiple addresses?
$strip_domain boolean Protect address from spammers?
$link_compose boolean Link the email address to the compose page when displaying?
$link_name string The name to use when linking to the compose page.
$delimiters string Character to split multiple addresses with.
$size integer The size of the input field.

isValid() public method

public isValid ( &$var, &$vars, $value, &$message )

splitEmailAddresses() public method

Explodes an RFC 2822 string, ignoring a delimiter if preceded by a "\" character, or if the delimiter is inside single or double quotes.
public splitEmailAddresses ( string $string ) : array
$string string The RFC 822 string.
return array The exploded string in an array.

validateEmailAddress() public method

public validateEmailAddress ( string $email ) : boolean
$email string An individual email address to validate.
return boolean

validateEmailAddressSmtp() public method

Attempt partial delivery of mail to an address to validate it.
public validateEmailAddressSmtp ( string $email ) : boolean
$email string An individual email address to validate.
return boolean

Property Details

$_allow_multi public_oe property

Allow multiple addresses?
public bool $_allow_multi
return boolean

$_check_smtp public_oe property

Whether to check the domain's SMTP server whether the address exists.
public bool $_check_smtp
return boolean

$_delimiters public_oe property

A string containing valid delimiters (default is just comma).
public string $_delimiters
return string

$_size public_oe property

The size of the input field.
public int $_size
return integer

$_strip_domain public_oe property

Protect address from spammers?
public bool $_strip_domain
return boolean