Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
The renderer for the quiz_grading module. More...
Public Member Functions | |
__call ($method, $arguments) | |
Magic method used to pass calls otherwise meant for the standard renderer to it to ensure we don't go causing unnecessary grief. | |
add_action_handler (component_action $action, $id=null) | |
Adds a JS action for the element with the provided id. | |
get_compact_logo_url ($maxwidth=300, $maxheight=300) | |
Return the site's compact logo URL, if any. | |
get_logo_url ($maxwidth=null, $maxheight=200) | |
Return the site's logo URL, if any. | |
get_page () | |
Returns the moodle page object. | |
has_started () | |
Returns true is output has already started, and false if not. | |
image_url ($imagename, $component='moodle') | |
Return the moodle_url for an image. | |
pix_url ($imagename, $component='moodle') | |
Return the direct URL for an image from the pix folder. | |
render (renderable $widget) | |
Renders the provided widget and returns the HTML to display it. | |
render_display_index_heading ($linktext, $listquestionurl) | |
Render index display. | |
render_from_template ($templatename, $context) | |
Renders a template by name with the given context. | |
render_grade_link ($counts, $type, $string, $component, $gradequestionurl) | |
Render grade link for question. | |
render_grade_question ($questionusage, $slot, $displayoptions, $questionnumber, $heading) | |
Render grade question content. | |
render_grading_interface ($questioninfo, $listquestionsurl, $filterform, $paginginfo, $pagingbar, $formaction, $hiddeninputs, $gradequestioncontent) | |
Render grading page. | |
render_paging_bar (object $pagingbar) | |
Render paging bar. | |
render_questions_table ($includeauto, $data, $header) | |
Render questions list table. | |
render_quiz_no_grade_question_notification () | |
Render no question need to grade notification. | |
render_quiz_no_question_notification ($quiz, $cm, $context) | |
Render no question notification. | |
should_display_main_logo () | |
should_display_navbar_logo () | |
Whether we should display the logo in the navbar. | |
Static Public Member Functions | |
static | prepare_classes ($classes) |
Given an array or space-separated list of classes, prepares and returns the HTML class attribute value. | |
Protected Member Functions | |
get_mustache () | |
Return an instance of the mustache class. | |
Protected Attributes | |
xhtml_container_stack | $opencontainers |
The xhtml_container_stack to use. | |
renderer_base core_renderer | $output |
A reference to the current renderer. | |
moodle_page | $page |
The Moodle page the renderer has been created to assist with. | |
string | $target |
The requested rendering target. | |
array | $templatecache = [] |
$templatecache The mustache template cache. | |
The renderer for the quiz_grading module.
quiz_grading_renderer::render_display_index_heading | ( | $linktext, | |
$listquestionurl ) |
Render index display.
string | $linktext | The text of the link. |
moodle_url | $listquestionurl | Url of the page that list all questions. |
string | The HTML for the display heading. |
coding_exception |
quiz_grading_renderer::render_grade_link | ( | $counts, | |
$type, | |||
$string, | |||
$component, | |||
$gradequestionurl ) |
Render grade link for question.
stdClass | $counts | |
string | $type | Type of grade. |
string | $string | Lang string. |
string | $component | Lang string component. |
moodle_url | $gradequestionurl | Url to grade question. |
string | The HTML for the question grade link. |
coding_exception |
quiz_grading_renderer::render_grade_question | ( | $questionusage, | |
$slot, | |||
$displayoptions, | |||
$questionnumber, | |||
$heading ) |
Render grade question content.
question_usage_by_activity | $questionusage | The question usage that need to grade. |
int | $slot | the number used to identify this question within this usage. |
question_display_options | $displayoptions | the display options to use. |
int | $questionnumber | the number of the question to check. |
string | $heading | the question heading text. |
string | The HTML for the question display. |
quiz_grading_renderer::render_grading_interface | ( | $questioninfo, | |
$listquestionsurl, | |||
$filterform, | |||
$paginginfo, | |||
$pagingbar, | |||
$formaction, | |||
$hiddeninputs, | |||
$gradequestioncontent ) |
Render grading page.
stdClass | $questioninfo | Information of a question. |
moodle_url | $listquestionsurl | Url of the page that list all questions. |
quiz_grading_settings_form | $filterform | Question filter form. |
stdClass | $paginginfo | Pagination information. |
stdClass | $pagingbar | Pagination bar information. |
moodle_url | $formaction | Form submit url. |
array | $hiddeninputs | List of hidden input fields. |
string | $gradequestioncontent | HTML string of question content. |
string | The HTML for the grading interface. |
coding_exception | |
moodle_exception |
quiz_grading_renderer::render_paging_bar | ( | object | $pagingbar | ) |
Render paging bar.
object | $pagingbar | Pagination bar information. |
string | The HTML for the question display. |
quiz_grading_renderer::render_questions_table | ( | $includeauto, | |
$data, | |||
$header ) |
Render questions list table.
bool | $includeauto | True to show automatically graded questions. |
array | $data | List of questions. |
array | $header | List of table headers. |
string | The HTML for the question table. |
coding_exception |
quiz_grading_renderer::render_quiz_no_grade_question_notification | ( | ) |
Render no question need to grade notification.
coding_exception |
quiz_grading_renderer::render_quiz_no_question_notification | ( | $quiz, | |
$cm, | |||
$context ) |
Render no question notification.
stdClass | $quiz | The quiz settings. |
stdClass | $cm | The course-module for this quiz. |
stdClass | $context | The quiz context. |
string | The HTML for the no questions message. |