MediaWiki fundraising/REL1_35
|
Stores a single person's name and email address. More...
Public Member Functions | |
__construct ( $address, $name=null, $realName=null) | |
Stable to call. | |
__toString () | |
toString () | |
Return formatted and quoted address to insert into SMTP headers. | |
Static Public Member Functions | |
static | newFromUser (User $user) |
Create a new MailAddress object for the given user. | |
Public Attributes | |
string | $address |
string | $name |
string | $realName |
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.
@newable
Definition at line 34 of file MailAddress.php.
MailAddress::__construct | ( | $address, | |
$name = null, | |||
$realName = null ) |
Stable to call.
string | $address | String with an email address |
string | null | $name | Human-readable name if a string address is given |
string | null | $realName | Human-readable real name if a string address is given |
Definition at line 57 of file MailAddress.php.
MailAddress::__toString | ( | ) |
Definition at line 101 of file MailAddress.php.
References toString().
|
static |
Create a new MailAddress object for the given user.
User | $user |
Definition at line 70 of file MailAddress.php.
References User\getEmail(), User\getName(), and User\getRealName().
MailAddress::toString | ( | ) |
Return formatted and quoted address to insert into SMTP headers.
Definition at line 78 of file MailAddress.php.
References $wgEnotifUseRealName, and wfIsWindows().
Referenced by __toString(), and UserMailer\sendInternal().
string MailAddress::$address |
Definition at line 48 of file MailAddress.php.
string MailAddress::$name |
Definition at line 38 of file MailAddress.php.
string MailAddress::$realName |
Definition at line 43 of file MailAddress.php.