|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($contexts, $pageurl, $course, $cm, $quiz) | |
| set_quiz_has_attempts ($quizhasattempts) | |
| preview_question_url ($question) | |
| add_to_quiz_url ($questionid) | |
| display ($tabname, $page, $perpage, $cat, $recurse, $showhidden, $showquestiontext) | |
Protected Member Functions | |
| known_field_types () | |
| wanted_columns () | |
| default_sort () | |
| print_choose_category_message ($categoryandcontext) | |
| print_category_info ($category) | |
| display_options ($recurse, $showhidden, $showquestiontext) | |
Protected Attributes | |
| $quizhasattempts = false | |
| $quiz = false | |
Subclass to customise the view of the question bank for the quiz editing screen.
Definition at line 1076 of file editlib.php.
| __construct | ( | $ | contexts, |
| $ | pageurl, | ||
| $ | course, | ||
| $ | cm, | ||
| $ | quiz | ||
| ) |
Constructor
| question_edit_contexts | $contexts | |
| moodle_url | $pageurl | |
| object | $course | course settings |
| object | $cm | activity settings. |
| object | $quiz | quiz settings. |
Definition at line 1089 of file editlib.php.
| add_to_quiz_url | ( | $ | questionid | ) |
| default_sort | ( | ) | [protected] |
Reimplemented from question_bank_view.
Definition at line 1106 of file editlib.php.
| display | ( | $ | tabname, |
| $ | page, | ||
| $ | perpage, | ||
| $ | cat, | ||
| $ | recurse, | ||
| $ | showhidden, | ||
| $ | showquestiontext | ||
| ) |
Shows the question bank editing interface.
The function also processes a number of actions:
Actions affecting the question pool: move Moves a question to a different category deleteselected Deletes the selected questions from the category Other actions: category Chooses the category displayoptions Sets display options
Reimplemented from question_bank_view.
Definition at line 1135 of file editlib.php.

| display_options | ( | $ | recurse, |
| $ | showhidden, | ||
| $ | showquestiontext | ||
| ) | [protected] |
Reimplemented from question_bank_view.
Definition at line 1189 of file editlib.php.


| known_field_types | ( | ) | [protected] |
Reimplemented from question_bank_view.
Definition at line 1094 of file editlib.php.
| preview_question_url | ( | $ | question | ) |
Reimplemented from question_bank_view.
Definition at line 1123 of file editlib.php.

| print_category_info | ( | $ | category | ) | [protected] |
Reimplemented from question_bank_view.
Definition at line 1174 of file editlib.php.


| print_choose_category_message | ( | $ | categoryandcontext | ) | [protected] |
Reimplemented from question_bank_view.
Definition at line 1163 of file editlib.php.

| set_quiz_has_attempts | ( | $ | quizhasattempts | ) |
Let the question bank display know whether the quiz has been attempted, hence whether some bits of UI, like the add this question to the quiz icon, should be displayed.
| bool | $quizhasattempts | whether the quiz has attempts. |
Definition at line 1116 of file editlib.php.
| wanted_columns | ( | ) | [protected] |
Reimplemented from question_bank_view.
Definition at line 1101 of file editlib.php.
$quiz = false [protected] |
Definition at line 1079 of file editlib.php.
$quizhasattempts = false [protected] |
Definition at line 1077 of file editlib.php.