MediaWiki
1.30.0
|
Stores a single person's name and email address. More...
Public Member Functions | |
__construct ( $address, $name=null, $realName=null) | |
__toString () | |
toString () | |
Return formatted and quoted address to insert into SMTP headers. More... | |
Static Public Member Functions | |
static | newFromUser (User $user) |
Create a new MailAddress object for the given user. More... | |
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.
Definition at line 32 of file MailAddress.php.
MailAddress::__construct | ( | $address, | |
$name = null , |
|||
$realName = null |
|||
) |
string | $address | String with an email address, or a User object |
string | $name | Human-readable name if a string address is given |
string | $realName | Human-readable real name if a string address is given |
Definition at line 54 of file MailAddress.php.
References $address, $name, $realName, name, and wfDeprecated().
MailAddress::__toString | ( | ) |
Definition at line 104 of file MailAddress.php.
References toString().
|
static |
Create a new MailAddress object for the given user.
User | $user |
Definition at line 75 of file MailAddress.php.
References $user.
Referenced by EmailNotification\compose(), EmailNotification\composeCommonMailtext(), User\sendMail(), EmailNotification\sendPersonalised(), SpecialEmailUser\submit(), and MailAddressTest\testNewFromUser().
MailAddress::toString | ( | ) |
Return formatted and quoted address to insert into SMTP headers.
Definition at line 83 of file MailAddress.php.
References $address, $name, $wgEnotifUseRealName, global, name, UserMailer\quotedPrintable(), and wfIsWindows().
Referenced by __toString(), and UserMailer\sendInternal().
string MailAddress::$address |
Definition at line 47 of file MailAddress.php.
Referenced by __construct(), and toString().
string MailAddress::$name |
Definition at line 37 of file MailAddress.php.
Referenced by __construct(), and toString().
string MailAddress::$realName |
Definition at line 42 of file MailAddress.php.
Referenced by __construct().