Email digest renderable.
More...
|
| | __construct (\stdClass $userto) |
| | The email_digest constructor.
|
| |
| | add_conversation (\stdClass $conversation) |
| | Adds another conversation to this digest.
|
| |
| | add_message (\stdClass $message) |
| | Adds another message to this digest, using the conversation id it belongs to as a key.
|
| |
| | export_for_template (\renderer_base $renderer) |
| | Export this data so it can be used as the context for a mustache template.
|
| |
|
|
array | $conversations = array() |
| | The conversations.
|
| |
|
array | $messages = array() |
| | The messages.
|
| |
|
stdClass | $userto |
| | The user we want to send the digest email to.
|
| |
Email digest renderable.
- Copyright
- 2019 Mark Nelson markn.nosp@m.@moo.nosp@m.dle.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
| message_email\output\email_digest::__construct |
( |
\stdClass | $userto | ) |
|
The email_digest constructor.
- Parameters
-
◆ add_conversation()
| message_email\output\email_digest::add_conversation |
( |
\stdClass | $conversation | ) |
|
Adds another conversation to this digest.
- Parameters
-
| stdClass | $conversation | The conversation from the 'message_conversations' table. |
◆ add_message()
| message_email\output\email_digest::add_message |
( |
\stdClass | $message | ) |
|
Adds another message to this digest, using the conversation id it belongs to as a key.
- Parameters
-
| stdClass | $message | The message from the 'messages' table. |
◆ export_for_template()
| message_email\output\email_digest::export_for_template |
( |
\renderer_base | $renderer | ) |
|
Export this data so it can be used as the context for a mustache template.
- Parameters
-
| renderer_base | $renderer | The render to be used for formatting the email |
- Return values
-
| stdClass | The data ready for use in a mustache template |
The documentation for this class was generated from the following file:
- message/output/email/classes/output/email_digest.php