Moodle  2.2.1
http://www.collinsharper.com
quiz_question_bank_view Class Reference
Inheritance diagram for quiz_question_bank_view:
Collaboration diagram for quiz_question_bank_view:

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

Detailed Description

Subclass to customise the view of the question bank for the quiz editing screen.

Definition at line 1076 of file editlib.php.


Constructor & Destructor Documentation

__construct ( contexts,
pageurl,
course,
cm,
quiz 
)

Constructor

Parameters:
question_edit_contexts$contexts
moodle_url$pageurl
object$coursecourse settings
object$cmactivity settings.
object$quizquiz settings.

Definition at line 1089 of file editlib.php.


Member Function Documentation

add_to_quiz_url ( questionid)

Definition at line 1127 of file editlib.php.

Here is the call graph for this function:

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.

Here is the call graph for this function:

display_options ( recurse,
showhidden,
showquestiontext 
) [protected]

Reimplemented from question_bank_view.

Definition at line 1189 of file editlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

print_category_info ( category) [protected]

Reimplemented from question_bank_view.

Definition at line 1174 of file editlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

print_choose_category_message ( categoryandcontext) [protected]

Reimplemented from question_bank_view.

Definition at line 1163 of file editlib.php.

Here is the call graph for this function:

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.

Parameters:
bool$quizhasattemptswhether 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.


Field Documentation

$quiz = false [protected]

Definition at line 1079 of file editlib.php.

$quizhasattempts = false [protected]

Definition at line 1077 of file editlib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations