Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
templatable Interface Reference

Interface marking other classes having the ability to export their data for use by templates. More...

Inheritance diagram for templatable:
MoodleQuickForm_advcheckbox MoodleQuickForm_button MoodleQuickForm_checkbox MoodleQuickForm_editor MoodleQuickForm_filemanager MoodleQuickForm_filepicker MoodleQuickForm_grading MoodleQuickForm_group MoodleQuickForm_password MoodleQuickForm_radio MoodleQuickForm_recaptcha MoodleQuickForm_select MoodleQuickForm_selectgroups MoodleQuickForm_selectwithlink MoodleQuickForm_static MoodleQuickForm_submit MoodleQuickForm_text MoodleQuickForm_textarea MoodleQuickForm_url MoodleQuickForm_warning action_menu assign_attempt_history_chooser 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_rss_client\output\block block_rss_client\output\channel_image block_rss_client\output\feed block_rss_client\output\footer block_rss_client\output\item block_search_forums\output\search_form block_starredcourses\output\main block_timeline\output\main booktool_print\output\print_book_chapter_page booktool_print\output\print_book_page component_action core\navigation\output\more_menu core\navigation\output\primary core\output\activity_header core\output\checkbox_toggleall core\output\chooser core\output\chooser_item core\output\chooser_section core\output\datafilter core\output\dynamic_tabs core\output\dynamic_tabs\base core\output\inplace_editable core\output\language_menu core\output\named_templatable core\output\notification core\output\select_menu core_auth\output\digital_minor_page core_auth\output\login core_auth\output\verify_age_location_page core_availability\output\availability_info core_badges\output\base_action_bar core_contentbank\output\bankcontent core_contentbank\output\viewcontent core_course\output\activity_information core_course\output\activity_navigation core_course\output\completion_action_bar core_course\output\recommendations\activity_list core_customfield\output\field_data core_customfield\output\management core_grades\output\action_bar core_grades\output\gradebook_dropdown core_group\output\group_details core_group\output\index_page core_h5p\output\h5peditor core_h5p\output\libraries core_message\output\preferences\notification_list core_message\output\preferences\notification_list_component core_message\output\preferences\notification_list_processor core_message\output\preferences\processor core_message\output\processor core_privacy\output\exported_html_page core_privacy\output\exported_navigation_page core_question\output\qbank_action_menu core_question\output\question_version_selection core_reportbuilder\output\custom_report core_reportbuilder\output\system_report core_search\document core_tag\output\tag core_tag\output\tagcloud core_tag\output\tagfeed core_tag\output\tagindex core_tag\output\taglist core_user\output\status_field custom_menu_item enrol_lti\output\registration forumreport_summary\output\filters help_icon initials_bar login_signup_form message_email\output\email_digest message_popup\output\popup_notification mod_assign\output\actionmenu mod_assign\output\grading_actionmenu mod_assign\output\grading_app mod_assign\output\override_actionmenu mod_assign\output\timelimit_panel mod_assign\output\user_submission_actionmenu mod_bigbluebuttonbn\output\import_view mod_bigbluebuttonbn\output\instance_updated_message mod_bigbluebuttonbn\output\recording_row_actionbar mod_bigbluebuttonbn\output\recording_row_playback mod_bigbluebuttonbn\output\recording_row_preview mod_bigbluebuttonbn\output\recordings_session mod_bigbluebuttonbn\output\view_page mod_book\output\main_action_menu mod_data\output\add_entries_action mod_data\output\defaulttemplate mod_data\output\empty_database_action_bar mod_data\output\fields_action_bar mod_data\output\fields_mappings_action_bar mod_data\output\preset_preview mod_data\output\presets mod_data\output\presets_action_bar mod_data\output\template_editor mod_data\output\template_editor_tools mod_data\output\templates_action_bar mod_data\output\view_action_bar mod_data\output\zero_state_action_bar mod_feedback\output\base_action_bar mod_feedback\output\summary mod_forum\output\big_search_form mod_forum\output\forum_actionbar mod_forum\output\forum_post mod_forum\output\quick_search_form mod_forum\output\subscription_actionbar mod_glossary\output\standard_action_bar mod_h5pactivity\output\attempt mod_h5pactivity\output\reportattempts mod_h5pactivity\output\reportlink mod_h5pactivity\output\reportresults mod_h5pactivity\output\result mod_lesson\output\edit_action_area mod_lesson\output\edit_action_buttons mod_lesson\output\override_action_menu mod_lesson\output\report_action_menu mod_lti\output\external_registration_return_page mod_lti\output\registration_upgrade_choice_page mod_lti\output\repost_crosssite_page mod_lti\output\tool_configure_page mod_quiz\output\overrides_actions mod_scorm\output\actionbar mod_scorm\output\userreportsactionbar mod_survey\output\actionbar mod_wiki\output\action_bar mod_workshop\output\actionbar paging_bar pix_icon pix_icon_font progress_bar report_competency\output\report report_competency\output\user_course_navigation report_insights\output\insight report_insights\output\insights_list single_select tabobject tool_admin_presets\output\export_import tool_admin_presets\output\presets_list tool_analytics\output\insights_report tool_analytics\output\invalid_analysables tool_analytics\output\models_list tool_analytics\output\restorable_models 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\plan_page 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_competency_summary_in_plan tool_lp\output\user_evidence_list_page tool_lp\output\user_evidence_page tool_lpmigrate\output\migrate_framework_results tool_mobile\output\subscription tool_moodlenet\output\select_page tool_policy\output\acceptances tool_policy\output\acceptances_filter 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_policy\output\user_agreement tool_templatelibrary\output\list_templates_page url_select

Public Member Functions

 export_for_template (renderer_base $output)
 Function to export the renderer data in a format that is suitable for a mustache template.
 

Detailed Description

Interface marking other classes having the ability to export their data for use by templates.

Since
2.9

Member Function Documentation

◆ export_for_template()

templatable::export_for_template ( renderer_base $output)

Function to export the renderer data in a format that is suitable for a mustache template.

This means:

  1. No complex types - only stdClass, array, int, string, float, bool
  2. Any additional info that is required for the template is pre-calculated (e.g. capability checks).
Parameters
renderer_base$outputUsed to do a final render of any components that need to be rendered for export.
Return values
stdClass|array

Implemented in action_menu, assign_attempt_history_chooser, 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, booktool_print\output\print_book_chapter_page, booktool_print\output\print_book_page, component_action, core\navigation\output\more_menu, core\output\activity_header, core\output\checkbox_toggleall, core\output\chooser, core\output\chooser_item, core\output\chooser_section, core\output\dynamic_tabs, core\output\select_menu, core_auth\output\digital_minor_page, core_auth\output\login, core_auth\output\verify_age_location_page, core_badges\output\manage_badge_action_bar, core_badges\output\recipients_action_bar, core_badges\output\standard_action_bar, core_contentbank\output\bankcontent, core_contentbank\output\viewcontent, core_course\output\activity_information, core_course\output\completion_action_bar, core_courseformat\output\local\content\cm, core_courseformat\output\local\content\section, core_grades\output\gradebook_dropdown, core_group\output\group_details, core_group\output\index_page, core_h5p\output\libraries, core_privacy\output\exported_html_page, core_privacy\output\exported_navigation_page, core_question\output\qbank_action_menu, core_question\output\question_version_selection, core_reportbuilder\output\custom_report, core_reportbuilder\output\dynamictabs\access, core_reportbuilder\output\dynamictabs\audience, core_reportbuilder\output\dynamictabs\editor, core_reportbuilder\output\dynamictabs\schedules, core_reportbuilder\output\system_report, 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, custom_menu_item, enrol_lti\output\registration, format_topics\output\courseformat\content, forumreport_summary\output\filters, gradereport_singleview\output\action_bar, help_icon, initials_bar, login_signup_form, mod_assign\output\grading_app, mod_assign\output\timelimit_panel, mod_bigbluebuttonbn\output\import_view, mod_bigbluebuttonbn\output\instance_updated_message, mod_bigbluebuttonbn\output\recording_row_actionbar, mod_bigbluebuttonbn\output\recording_row_playback, mod_bigbluebuttonbn\output\recording_row_preview, mod_bigbluebuttonbn\output\recordings_session, mod_bigbluebuttonbn\output\view_page, mod_data\output\presets, mod_data\output\view_footer, mod_feedback\output\base_action_bar, mod_feedback\output\summary, mod_forum\output\big_search_form, mod_forum\output\forum_actionbar, mod_forum\output\quick_search_form, mod_forum\output\subscription_actionbar, mod_glossary\output\standard_action_bar, 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\registration_upgrade_choice_page, mod_lti\output\repost_crosssite_page, mod_lti\output\tool_configure_page, mod_quiz\output\overrides_actions, mod_scorm\output\actionbar, mod_scorm\output\userreportsactionbar, mod_survey\output\actionbar, mod_workshop\output\actionbar, 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, MoodleQuickForm_wikieditor, paging_bar, pix_icon, pix_icon_font, progress_bar, report_competency\output\report, report_competency\output\user_course_navigation, single_select, tabobject, tabtree, tool_admin_presets\output\export_import, tool_admin_presets\output\presets_list, tool_componentlibrary\local\examples\dynamictabs\tab1, tool_componentlibrary\local\examples\dynamictabs\tab2, 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, and url_select.


The documentation for this interface was generated from the following file: