MailAddress Class Reference

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. More...

List of all members.

Public Member Functions

 __construct ($address, $name=null, $realName=null)
 toString ()
 Return formatted and quoted address to insert into SMTP headers.
 __toString ()


Detailed Description

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Author:
<brion@pobox.com>

<mail@tgries.de>

Tim Starling Stores a single person's name and email address. These are passed in via the constructor, and will be returned in SMTP header format when requested.

Definition at line 30 of file UserMailer.php.


Constructor & Destructor Documentation

MailAddress::__construct ( address,
name = null,
realName = null 
)

Parameters:
$address Mixed: string with an email address, or a User object
$name String: human-readable name if a string address is given

Definition at line 35 of file UserMailer.php.

References $name.


Member Function Documentation

MailAddress::__toString (  ) 

Definition at line 68 of file UserMailer.php.

References toString().

MailAddress::toString (  ) 

Return formatted and quoted address to insert into SMTP headers.

Returns:
string

Definition at line 51 of file UserMailer.php.

References $name, $wgEnotifUseRealName, wfIsWindows(), and wfQuotedPrintable().

Referenced by __toString().


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:42 2009 for MediaWiki by  doxygen 1.5.9