Class Horde_Form_Type_email

Description

Horde_Form_Type Class

Located in /Form/Form.php (line 2170)

Horde_Form_Type
   |
   --Horde_Form_Type_email
Variable Summary
 boolean $_allow_multi
 boolean $_check_smtp
 string $_delimiters
 boolean $_link_compose
 boolean $_link_name
 boolean $_strip_domain
Method Summary
 void about ()
 void init ([boolean $allow_multi = false], [boolean $strip_domain = false], [boolean $link_compose = false], [string $link_name = null], [string $delimiters = ','])
 void isValid ( &$var,  &$vars,  $value,  &$message)
 array splitEmailAddresses (string $string)
 boolean validateEmailAddress (string $email)
 boolean validateEmailAddressSmtp (string $email)
 void _defineValidationRegexps (string &$comment, string &$addr_spec)
Variables
boolean $_allow_multi = false (line 2177)

Allow multiple addresses?

boolean $_check_smtp = false (line 2198)

Whether to check the domain's SMTP server whether the address exists.

string $_delimiters = ',' (line 2212)

A string containing valid delimiters (default is just comma).

boolean $_link_compose = false (line 2191)

Link the email address to the compose page when displaying?

boolean $_link_name (line 2205)

The name to use when linking to the compose page

boolean $_strip_domain = false (line 2184)

Protect address from spammers?

Methods
about (line 2436)

Return info about field type.

void about ()
init (line 2223)
void init ([boolean $allow_multi = false], [boolean $strip_domain = false], [boolean $link_compose = false], [string $link_name = null], [string $delimiters = ','])
  • boolean $allow_multi: Allow multiple addresses?
  • boolean $strip_domain: Protect address from spammers?
  • boolean $link_compose: Link the email address to the compose page when displaying?
  • string $link_name: The name to use when linking to the
  • string $delimiters: Character to split multiple addresses with.

Redefinition of:
Horde_Form_Type::init()
isValid (line 2236)
void isValid ( &$var,  &$vars,  $value,  &$message)
  • &$var
  • &$vars
  • $value
  • &$message

Redefinition of:
Horde_Form_Type::isValid()
splitEmailAddresses (line 2281)

Explodes an RFC 2822 string, ignoring a delimiter if preceded by a "\" character, or if the delimiter is inside single or double quotes.

  • return: The exploded string in an array.
array splitEmailAddresses (string $string)
  • string $string: The RFC 822 string.
validateEmailAddress (line 2356)

RFC(2)822 Email Parser.

By Cal Henderson <cal@iamcal.com> This code is licensed under a Creative Commons Attribution-ShareAlike 2.5 License http://creativecommons.org/licenses/by-sa/2.5/

http://code.iamcal.com/php/rfc822/

http://iamcal.com/publish/articles/php/parsing_email

Revision 4

boolean validateEmailAddress (string $email)
  • string $email: An individual email address to validate.
validateEmailAddressSmtp (line 2389)

Attempt partial delivery of mail to an address to validate it.

boolean validateEmailAddressSmtp (string $email)
  • string $email: An individual email address to validate.
_defineValidationRegexps (line 2476)

RFC(2)822 Email Parser.

By Cal Henderson <cal@iamcal.com> This code is licensed under a Creative Commons Attribution-ShareAlike 2.5 License http://creativecommons.org/licenses/by-sa/2.5/

http://code.iamcal.com/php/rfc822/

http://iamcal.com/publish/articles/php/parsing_email

Revision 4

void _defineValidationRegexps (string &$comment, string &$addr_spec)
  • string &$comment: The regexp for comments.
  • string &$addr_spec: The regexp for email addresses.

Inherited Methods

Inherited From Horde_Form_Type

 Horde_Form_Type::Horde_Form_Type()
 Horde_Form_Type::getInfo()
 Horde_Form_Type::getProperty()
 Horde_Form_Type::getTypeName()
 Horde_Form_Type::getValues()
 Horde_Form_Type::init()
 Horde_Form_Type::isValid()
 Horde_Form_Type::onSubmit()
 Horde_Form_Type::setProperty()
 Horde_Form_Type::__get()
 Horde_Form_Type::__set()

Documentation generated on Sun, 30 Jan 2011 05:17:29 +0000 by phpDocumentor 1.4.3