PHP Class Horde_Form_Type_email, horde

Inheritance: extends Horde_Form_Type
Afficher le fichier Open project: horde/horde

Méthodes publiques

Свойство 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?

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
_isRfc3696ValidEmailAddress ( $email ) RFC3696 Email Parser
_rfc3696StripComments ( $comment, $email, $replace = '' ) RFC3696 Email Parser

Method Details

_isRfc3696ValidEmailAddress() protected méthode

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 méthode

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 méthode

Return info about field type.
public about ( )

allowMulti() public méthode

public allowMulti ( )

getSize() public méthode

public getSize ( )

init() public méthode

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 méthode

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

splitEmailAddresses() public méthode

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.
Résultat array The exploded string in an array.

validateEmailAddress() public méthode

public validateEmailAddress ( string $email ) : boolean
$email string An individual email address to validate.
Résultat boolean

validateEmailAddressSmtp() public méthode

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

Property Details

$_allow_multi public_oe property

Allow multiple addresses?
public bool $_allow_multi
Résultat boolean

$_check_smtp public_oe property

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

$_delimiters public_oe property

A string containing valid delimiters (default is just comma).
public string $_delimiters
Résultat string

$_size public_oe property

The size of the input field.
public int $_size
Résultat integer

$_strip_domain public_oe property

Protect address from spammers?
public bool $_strip_domain
Résultat boolean