Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Forum post renderable for use in e-mail. More...
Public Member Functions | |
__set ($key, $value) | |
Magically sets a property against this object. More... | |
export_for_template (\renderer_base $renderer, $plaintext=false) | |
Export this data so it can be used as the context for a mustache template. More... | |
export_for_template (renderer_base $output) | |
Function to export the renderer data in a format that is suitable for a mustache template. More... | |
get_author_fullname () | |
The fullname of the post author. More... | |
get_author_picture (\renderer_base $renderer) | |
The HTML for the author's user picture. More... | |
get_authorlink () | |
Get the link to the author's profile page. More... | |
get_coursefullname () | |
The full name of the course that the forum is in. More... | |
get_courseidnumber () | |
ID number of the course that the forum is in. More... | |
get_courselink () | |
Get the link to the course. More... | |
get_coursename () | |
The name of the course that the forum is in. More... | |
get_discussionlink () | |
Get the link to the current discussion. More... | |
get_discussionname () | |
The name of the current discussion. More... | |
get_forumindexlink () | |
Get the link to the forum index for this course. More... | |
get_forumname () | |
The name of the forum. More... | |
get_forumviewlink () | |
Get the link to the view page for this forum. More... | |
get_group_picture (\renderer_base $renderer) | |
The HTML for a group picture. More... | |
get_is_firstpost () | |
Whether this is the first post. More... | |
get_parentpostlink () | |
Get the link to the parent post. More... | |
get_permalink () | |
Get the link to the current post, including post anchor. More... | |
get_postanchor () | |
The plaintext anchor id for the current post. More... | |
get_postdate () | |
The date of the post, formatted according to the postto user's preferences. More... | |
get_replylink () | |
Get the link to reply to the current post. More... | |
get_showdiscussionname () | |
Whether to show the discussion name. More... | |
get_subject () | |
The formatted subject for the current post. More... | |
get_unsubscribediscussionlink () | |
Get the link to unsubscribe from the discussion. More... | |
get_unsubscribeforumlink () | |
Get the link to unsubscribe from the forum. More... | |
Protected Member Functions | |
_get_discussionlink () | |
Get the link to the current discussion. More... | |
export_for_template_html (\mod_forum_renderer $renderer) | |
Export this data so it can be used as the context for a mustache template. More... | |
export_for_template_shared (\mod_forum_renderer $renderer) | |
Export this data so it can be used as the context for a mustache template. More... | |
export_for_template_text (\mod_forum_renderer $renderer) | |
Export this data so it can be used as the context for a mustache template. More... | |
get_postto () | |
The recipient of the post. More... | |
Protected Attributes | |
object | $author = null |
The user that wrote the post. More... | |
boolean | $canreply = false |
Whether the user can reply to this post. More... | |
object | $cm = null |
The course module for the forum. More... | |
object | $course = null |
The course that the forum post is in. More... | |
object | $discussion = null |
The discussion that the forum post is in. More... | |
object | $forum = null |
The forum that the post is in. More... | |
object | $post = null |
The forum post being displayed. More... | |
object | $userto = null |
The user that is reading the post. More... | |
boolean | $viewfullnames = false |
Whether to override forum display when displaying usernames. More... | |
array | $writablekeys |
An associative array indicating which keys on this object should be writeable. More... | |
Forum post renderable for use in e-mail.
|
inherited |
Magically sets a property against this object.
string | $key | |
mixed | $value |
|
protectedinherited |
Get the link to the current discussion.
string |
|
inherited |
Export this data so it can be used as the context for a mustache template.
mod_forum_renderer | $renderer | The render to be used for formatting the message and attachments |
bool | $plaintext | Whethe the target is a plaintext target |
array | Data ready for use in a mustache template |
|
inherited |
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
stdClass|array |
Implemented in tool_customlang\output\translator, tool_dataprivacy\output\categories, tool_dataprivacy\output\data_deletion_page, tool_dataprivacy\output\data_registry_compliance_page, tool_dataprivacy\output\data_registry_page, tool_dataprivacy\output\data_requests_page, tool_dataprivacy\output\defaults_page, tool_dataprivacy\output\my_data_requests_page, tool_dataprivacy\output\purposes, tool_dataprivacy\output\request_filter, tool_dataprivacy\output\summary_page, tool_langimport\output\langimport_page, tool_lp\output\competency_plan_navigation, tool_lp\output\competency_summary, tool_lp\output\course_competencies_page, tool_lp\output\manage_competencies_page, tool_lp\output\manage_competency_frameworks_page, tool_lp\output\manage_templates_page, tool_lp\output\module_navigation, tool_lp\output\plans_page, tool_lp\output\related_competencies, tool_lp\output\template_competencies_page, tool_lp\output\user_competency_course_navigation, tool_lp\output\user_competency_summary, tool_lp\output\user_competency_summary_in_course, tool_lp\output\user_evidence_list_page, tool_policy\output\acceptances, tool_policy\output\guestconsent, tool_policy\output\page_agreedocs, tool_policy\output\page_managedocs_list, tool_policy\output\page_nopermission, tool_policy\output\page_viewalldoc, tool_policy\output\page_viewdoc, tool_templatelibrary\output\list_templates_page, core_auth\output\digital_minor_page, core_auth\output\login, core_auth\output\verify_age_location_page, block_lp\output\competencies_to_review_page, block_lp\output\plans_to_review_page, block_lp\output\summary, block_myoverview\output\main, block_myprofile\output\myprofile, block_recentlyaccessedcourses\output\main, block_recentlyaccesseditems\output\main, block_search_forums\output\search_form, block_starredcourses\output\main, block_timeline\output\main, core_contentbank\output\bankcontent, core_contentbank\output\viewcontent, enrol_lti\output\registration, core_group\output\group_details, core_group\output\index_page, core_h5p\output\libraries, core\output\checkbox_toggleall, core\output\chooser, core\output\chooser_item, core\output\chooser_section, MoodleQuickForm_advcheckbox, MoodleQuickForm_autocomplete, MoodleQuickForm_checkbox, MoodleQuickForm_date_selector, MoodleQuickForm_date_time_selector, MoodleQuickForm_editor, MoodleQuickForm_filemanager, MoodleQuickForm_filepicker, MoodleQuickForm_grading, MoodleQuickForm_group, MoodleQuickForm_passwordunmask, MoodleQuickForm_recaptcha, MoodleQuickForm_select, MoodleQuickForm_selectgroups, MoodleQuickForm_selectwithlink, MoodleQuickForm_static, MoodleQuickForm_submit, MoodleQuickForm_tags, MoodleQuickForm_textarea, MoodleQuickForm_url, MoodleQuickForm_warning, component_action, help_icon, pix_icon_font, pix_icon, single_select, url_select, paging_bar, initials_bar, custom_menu_item, tabobject, tabtree, action_menu, progress_bar, login_signup_form, mod_assign\output\grading_app, assign_attempt_history_chooser, booktool_print\output\print_book_chapter_page, booktool_print\output\print_book_page, mod_feedback\output\summary, mod_forum\output\big_search_form, mod_forum\output\quick_search_form, mod_h5pactivity\output\attempt, mod_h5pactivity\output\reportattempts, mod_h5pactivity\output\reportlink, mod_h5pactivity\output\reportresults, mod_h5pactivity\output\result, mod_h5pactivity\output\result\longfillin, mod_h5pactivity\output\result\other, mod_lti\output\external_registration_return_page, mod_lti\output\repost_crosssite_page, mod_lti\output\tool_configure_page, MoodleQuickForm_wikieditor, core_privacy\output\exported_html_page, core_privacy\output\exported_navigation_page, report_competency\output\report, report_competency\output\user_course_navigation, core_tag\output\tag, core_tag\output\tagcloud, core_tag\output\tagfeed, core_tag\output\tagindex, core_tag\output\taglist, core_user\output\participants_filter, core_user\output\status_field, core_user\output\unified_filter, and forumreport_summary\output\filters.
|
protectedinherited |
Export this data so it can be used as the context for a mustache template.
mod_forum_renderer | $renderer | The render to be used for formatting the message and attachments |
array | Data ready for use in a mustache template |
|
protectedinherited |
Export this data so it can be used as the context for a mustache template.
mod_forum_renderer | $renderer | The render to be used for formatting the message and attachments |
stdClass | Data ready for use in a mustache template |
|
protectedinherited |
Export this data so it can be used as the context for a mustache template.
mod_forum_renderer | $renderer | The render to be used for formatting the message and attachments |
array | Data ready for use in a mustache template |
|
inherited |
The fullname of the post author.
string |
|
inherited |
|
inherited |
Get the link to the author's profile page.
string |
|
inherited |
The full name of the course that the forum is in.
string |
|
inherited |
ID number of the course that the forum is in.
string |
|
inherited |
Get the link to the course.
string |
|
inherited |
The name of the course that the forum is in.
string |
|
inherited |
Get the link to the current discussion.
string |
|
inherited |
The name of the current discussion.
string |
|
inherited |
Get the link to the forum index for this course.
string |
|
inherited |
The name of the forum.
string |
|
inherited |
Get the link to the view page for this forum.
string |
|
inherited |
|
inherited |
Whether this is the first post.
boolean |
|
inherited |
Get the link to the parent post.
string |
|
inherited |
Get the link to the current post, including post anchor.
string |
|
inherited |
The plaintext anchor id for the current post.
string |
|
inherited |
The date of the post, formatted according to the postto user's preferences.
string. |
|
protectedinherited |
The recipient of the post.
string |
|
inherited |
Get the link to reply to the current post.
string |
|
inherited |
Whether to show the discussion name.
If the forum name matches the discussion name, the discussion name is not typically displayed.
boolean |
|
inherited |
The formatted subject for the current post.
string |
|
inherited |
Get the link to unsubscribe from the discussion.
string |
|
inherited |
Get the link to unsubscribe from the forum.
string |
|
protectedinherited |
The user that wrote the post.
$author
|
protectedinherited |
Whether the user can reply to this post.
$canreply
|
protectedinherited |
The course module for the forum.
$cm
|
protectedinherited |
The course that the forum post is in.
$course
|
protectedinherited |
The discussion that the forum post is in.
$discussion
|
protectedinherited |
The forum that the post is in.
$forum
|
protectedinherited |
The forum post being displayed.
$post
|
protectedinherited |
The user that is reading the post.
$userto
|
protectedinherited |
Whether to override forum display when displaying usernames.
$viewfullnames
|
protectedinherited |
An associative array indicating which keys on this object should be writeable.
$writablekeys