Email address.
More...
Email address.
- Since
- 3.0
Definition at line 15 of file Address.php.
static Elgg\Email\Address::fromString |
( |
|
$contact, |
|
|
|
$ignored = null |
|
) |
| |
|
static |
Parses strings like "Evan <evan@elgg.org>" into name/email objects.
This is not very sophisticated and only used to provide a light BC effort.
- Parameters
-
string | $contact | e.g. "Evan <evan@elgg.org>" |
string | $ignored | Ignored |
- Returns
- Exceptions
-
Definition at line 89 of file Address.php.
static Elgg\Email\Address::getFormattedEmailAddress |
( |
|
$email, |
|
|
|
$name = null |
|
) |
| |
|
static |
Format an email address and name into a formatted email address.
eg "Some name <someone@example.com>"
- Parameters
-
string | $email | the email address |
string | $name | the name |
- Returns
- string
- Exceptions
-
Definition at line 111 of file Address.php.
Elgg\Email\Address::setEmail |
( |
|
$email | ) |
|
Set the email address.
- Parameters
-
string | $email | the new email address |
- Returns
- void
- Exceptions
-
Definition at line 26 of file Address.php.
Elgg\Email\Address::setName |
( |
|
$name | ) |
|
Set the name.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 54 of file Address.php.
Elgg\Email\Address::unsetName |
( |
| ) |
|
Clear the name from the email address.
- Returns
- void
- Since
- 3.0
Definition at line 73 of file Address.php.
The documentation for this class was generated from the following file: