Email address.
More...
Email address.
- Since
- 3.0
Definition at line 15 of file Address.php.
Elgg\Email\Address::__construct |
( |
|
$email, |
|
|
|
$name = null , |
|
|
|
$comment = null |
|
) |
| |
static Elgg\Email\Address::fromEntity |
( |
\ElggEntity |
$entity | ) |
|
|
static |
Create an Address based on a Entity.
- Parameters
-
\ElggEntity | $entity | the entity to create the address for |
- Returns
- Exceptions
-
Definition at line 152 of file Address.php.
static Elgg\Email\Address::fromString |
( |
|
$address, |
|
|
|
$comment = 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 | $address | e.g. "Evan <evan@elgg.org>" |
string | $comment | Ignored (required for Laminas) |
- Returns
- Exceptions
-
Definition at line 133 of file Address.php.
Elgg\Email\Address::getEntity |
( |
| ) |
|
Returns the saved entity.
- Returns
- |null
- Since
- 4.0
Definition at line 117 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 170 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 46 of file Address.php.
Elgg\Email\Address::setEntity |
( |
\ElggEntity |
$entity | ) |
|
Elgg\Email\Address::setName |
( |
|
$name | ) |
|
Set the name.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 74 of file Address.php.
Elgg\Email\Address::unsetName |
( |
| ) |
|
Clear the name from the email address.
- Returns
- void
- Since
- 3.0
Definition at line 93 of file Address.php.
Elgg\Email\Address::$entity = null |
|
protected |
The documentation for this class was generated from the following file: