The renderer for the quiz_grading module.
More...
|
| render_display_index_heading ($linktext, $listquestionurl) |
| Render index display.
|
|
| 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.
|
|
The renderer for the quiz_grading module.
- Copyright
- 2018 Huong Nguyen huong.nosp@m.nv13.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ render_display_index_heading()
quiz_grading_renderer::render_display_index_heading |
( |
| $linktext, |
|
|
| $listquestionurl ) |
Render index display.
- Parameters
-
string | $linktext | The text of the link. |
moodle_url | $listquestionurl | Url of the page that list all questions. |
- Return values
-
string | The HTML for the display heading. |
- Exceptions
-
◆ render_grade_link()
quiz_grading_renderer::render_grade_link |
( |
| $counts, |
|
|
| $type, |
|
|
| $string, |
|
|
| $component, |
|
|
| $gradequestionurl ) |
Render grade link for question.
- Parameters
-
stdClass | $counts | |
string | $type | Type of grade. |
string | $string | Lang string. |
string | $component | Lang string component. |
moodle_url | $gradequestionurl | Url to grade question. |
- Return values
-
string | The HTML for the question grade link. |
- Exceptions
-
◆ render_grade_question()
quiz_grading_renderer::render_grade_question |
( |
| $questionusage, |
|
|
| $slot, |
|
|
| $displayoptions, |
|
|
| $questionnumber, |
|
|
| $heading ) |
Render grade question content.
- Parameters
-
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. |
- Return values
-
string | The HTML for the question display. |
◆ render_grading_interface()
quiz_grading_renderer::render_grading_interface |
( |
| $questioninfo, |
|
|
| $listquestionsurl, |
|
|
| $filterform, |
|
|
| $paginginfo, |
|
|
| $pagingbar, |
|
|
| $formaction, |
|
|
| $hiddeninputs, |
|
|
| $gradequestioncontent ) |
Render grading page.
- Parameters
-
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. |
- Return values
-
string | The HTML for the grading interface. |
- Exceptions
-
coding_exception | |
moodle_exception | |
◆ render_paging_bar()
quiz_grading_renderer::render_paging_bar |
( |
object | $pagingbar | ) |
|
Render paging bar.
- Parameters
-
object | $pagingbar | Pagination bar information. |
- Return values
-
string | The HTML for the question display. |
◆ render_questions_table()
quiz_grading_renderer::render_questions_table |
( |
| $includeauto, |
|
|
| $data, |
|
|
| $header ) |
Render questions list table.
- Parameters
-
bool | $includeauto | True to show automatically graded questions. |
array | $data | List of questions. |
array | $header | List of table headers. |
- Return values
-
string | The HTML for the question table. |
- Exceptions
-
◆ render_quiz_no_grade_question_notification()
quiz_grading_renderer::render_quiz_no_grade_question_notification |
( |
| ) |
|
Render no question need to grade notification.
- Exceptions
-
◆ render_quiz_no_question_notification()
quiz_grading_renderer::render_quiz_no_question_notification |
( |
| $quiz, |
|
|
| $cm, |
|
|
| $context ) |
Render no question notification.
- Parameters
-
stdClass | $quiz | The quiz settings. |
stdClass | $cm | The course-module for this quiz. |
stdClass | $context | The quiz context. |
- Return values
-
string | The HTML for the no questions message. |
The documentation for this class was generated from the following file:
- mod/quiz/report/grading/renderer.php