Forum post renderable for use in e-mail.
More...
|
object | $author = null |
| The user that wrote the post.
|
|
boolean | $canreply = false |
| Whether the user can reply to this post.
|
|
object | $cm = null |
| The course module for the forum.
|
|
object | $course = null |
| The course that the forum post is in.
|
|
object | $discussion = null |
| The discussion that the forum post is in.
|
|
object | $forum = null |
| The forum that the post is in.
|
|
object | $post = null |
| The forum post being displayed.
|
|
stdClass | $userfrom |
| user record.
|
|
object | $userto = null |
| The user that is reading the post.
|
|
boolean | $viewfullnames = false |
| Whether to override forum display when displaying usernames.
|
|
array | $writablekeys |
| An associative array indicating which keys on this object should be writeable.
|
|
Forum post renderable for use in e-mail.
- Copyright
- 2015 Andrew Nicols andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __set()
mod_forum\output\forum_post::__set |
( |
| $key, |
|
|
| $value ) |
|
inherited |
Magically sets a property against this object.
- Parameters
-
◆ _get_discussionlink()
mod_forum\output\forum_post::_get_discussionlink |
( |
| ) |
|
|
protectedinherited |
Get the link to the current discussion.
- Return values
-
◆ export_for_template()
mod_forum\output\forum_post::export_for_template |
( |
\renderer_base | $renderer, |
|
|
| $plaintext = false ) |
|
inherited |
Export this data so it can be used as the context for a mustache template.
- Parameters
-
mod_forum_renderer | $renderer | The render to be used for formatting the message and attachments |
bool | $plaintext | Whethe the target is a plaintext target |
- Return values
-
array | Data ready for use in a mustache template |
◆ export_for_template_html()
Export this data so it can be used as the context for a mustache template.
- Parameters
-
mod_forum_renderer | $renderer | The render to be used for formatting the message and attachments |
- Return values
-
array | Data ready for use in a mustache template |
◆ export_for_template_shared()
Export this data so it can be used as the context for a mustache template.
- Parameters
-
mod_forum_renderer | $renderer | The render to be used for formatting the message and attachments |
- Return values
-
stdClass | Data ready for use in a mustache template |
◆ export_for_template_text()
Export this data so it can be used as the context for a mustache template.
- Parameters
-
mod_forum_renderer | $renderer | The render to be used for formatting the message and attachments |
- Return values
-
array | Data ready for use in a mustache template |
◆ get_author_fullname()
mod_forum\output\forum_post::get_author_fullname |
( |
| ) |
|
|
inherited |
The fullname of the post author.
- Return values
-
◆ get_author_picture()
mod_forum\output\forum_post::get_author_picture |
( |
\renderer_base | $renderer | ) |
|
|
inherited |
The HTML for the author's user picture.
- Parameters
-
- Return values
-
◆ get_authorlink()
mod_forum\output\forum_post::get_authorlink |
( |
| ) |
|
|
inherited |
Get the link to the author's profile page.
- Return values
-
◆ get_coursefullname()
mod_forum\output\forum_post::get_coursefullname |
( |
| ) |
|
|
inherited |
The full name of the course that the forum is in.
- Return values
-
◆ get_courseidnumber()
mod_forum\output\forum_post::get_courseidnumber |
( |
| ) |
|
|
inherited |
ID number of the course that the forum is in.
- Return values
-
◆ get_courselink()
mod_forum\output\forum_post::get_courselink |
( |
| ) |
|
|
inherited |
Get the link to the course.
- Return values
-
◆ get_coursename()
mod_forum\output\forum_post::get_coursename |
( |
| ) |
|
|
inherited |
The name of the course that the forum is in.
- Return values
-
◆ get_discussionlink()
mod_forum\output\forum_post::get_discussionlink |
( |
| ) |
|
|
inherited |
Get the link to the current discussion.
- Return values
-
◆ get_discussionname()
mod_forum\output\forum_post::get_discussionname |
( |
| ) |
|
|
inherited |
The name of the current discussion.
- Return values
-
◆ get_forumindexlink()
mod_forum\output\forum_post::get_forumindexlink |
( |
| ) |
|
|
inherited |
Get the link to the forum index for this course.
- Return values
-
◆ get_forumname()
mod_forum\output\forum_post::get_forumname |
( |
| ) |
|
|
inherited |
The name of the forum.
- Return values
-
◆ get_forumviewlink()
mod_forum\output\forum_post::get_forumviewlink |
( |
| ) |
|
|
inherited |
Get the link to the view page for this forum.
- Return values
-
◆ get_group_picture()
mod_forum\output\forum_post::get_group_picture |
( |
\renderer_base | $renderer | ) |
|
|
inherited |
The HTML for a group picture.
- Parameters
-
- Return values
-
◆ get_is_firstpost()
mod_forum\output\forum_post::get_is_firstpost |
( |
| ) |
|
|
inherited |
Whether this is the first post.
- Return values
-
◆ get_parentpostlink()
mod_forum\output\forum_post::get_parentpostlink |
( |
| ) |
|
|
inherited |
Get the link to the parent post.
- Return values
-
◆ get_permalink()
mod_forum\output\forum_post::get_permalink |
( |
| ) |
|
|
inherited |
Get the link to the current post, including post anchor.
- Return values
-
◆ get_postanchor()
mod_forum\output\forum_post::get_postanchor |
( |
| ) |
|
|
inherited |
The plaintext anchor id for the current post.
- Return values
-
◆ get_postdate()
mod_forum\output\forum_post::get_postdate |
( |
| ) |
|
|
inherited |
The date of the post, formatted according to the postto user's preferences.
- Return values
-
◆ get_postto()
mod_forum\output\forum_post::get_postto |
( |
| ) |
|
|
protectedinherited |
The recipient of the post.
- Return values
-
◆ get_replylink()
mod_forum\output\forum_post::get_replylink |
( |
| ) |
|
|
inherited |
Get the link to reply to the current post.
- Return values
-
◆ get_showdiscussionname()
mod_forum\output\forum_post::get_showdiscussionname |
( |
| ) |
|
|
inherited |
Whether to show the discussion name.
If the forum name matches the discussion name, the discussion name is not typically displayed.
- Return values
-
◆ get_subject()
mod_forum\output\forum_post::get_subject |
( |
| ) |
|
|
inherited |
The formatted subject for the current post.
- Return values
-
◆ get_unsubscribediscussionlink()
mod_forum\output\forum_post::get_unsubscribediscussionlink |
( |
| ) |
|
|
inherited |
Get the link to unsubscribe from the discussion.
- Return values
-
◆ get_unsubscribeforumlink()
mod_forum\output\forum_post::get_unsubscribeforumlink |
( |
| ) |
|
|
inherited |
Get the link to unsubscribe from the forum.
- Return values
-
◆ $author
object mod_forum\output\forum_post::$author = null |
|
protectedinherited |
The user that wrote the post.
$author
◆ $canreply
boolean mod_forum\output\forum_post::$canreply = false |
|
protectedinherited |
Whether the user can reply to this post.
$canreply
◆ $cm
object mod_forum\output\forum_post::$cm = null |
|
protectedinherited |
The course module for the forum.
$cm
◆ $course
object mod_forum\output\forum_post::$course = null |
|
protectedinherited |
The course that the forum post is in.
$course
◆ $discussion
object mod_forum\output\forum_post::$discussion = null |
|
protectedinherited |
The discussion that the forum post is in.
$discussion
◆ $forum
object mod_forum\output\forum_post::$forum = null |
|
protectedinherited |
The forum that the post is in.
$forum
◆ $post
object mod_forum\output\forum_post::$post = null |
|
protectedinherited |
The forum post being displayed.
$post
◆ $userto
object mod_forum\output\forum_post::$userto = null |
|
protectedinherited |
The user that is reading the post.
$userto
◆ $viewfullnames
boolean mod_forum\output\forum_post::$viewfullnames = false |
|
protectedinherited |
Whether to override forum display when displaying usernames.
$viewfullnames
◆ $writablekeys
array mod_forum\output\forum_post::$writablekeys |
|
protectedinherited |
Initial value:= array(
'viewfullnames' => true,
)
An associative array indicating which keys on this object should be writeable.
$writablekeys
The documentation for this class was generated from the following file:
- mod/forum/classes/output/forum_post_email.php