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

Public Member Functions

 menu_name ()
 is_usable_by_random ()
 can_analyse_responses ()
 make_question ($questiondata)
 make_deleted_instance ($questionid, $maxmark)
 get_random_guess_score ($questiondata)
 display_question_editing_page ($mform, $question, $wizardnow)

Detailed Description

Missing question type class

When we encounter a question of a type that is not currently installed, then we use this question type class instead so that some of the information about this question can be seen, and the rest of the system keeps working.

Definition at line 40 of file questiontype.php.


Member Function Documentation

Whether this question type can perform a frequency analysis of student responses.

If this method returns true, you must implement the get_possible_responses method, and the question_definition class must implement the classify_response method.

Returns:
bool whether this report can analyse all the student reponses for things like the quiz statistics report.

Reimplemented from question_type.

Definition at line 49 of file questiontype.php.

display_question_editing_page ( mform,
question,
wizardnow 
)

This method should be overriden if you want to include a special heading or some other html on a question editing page besides the question editing form.

Parameters:
question_edit_form$mforma child of question_edit_form
object$question
string$wizardnowis '' for first page.

Reimplemented from question_type.

Definition at line 90 of file questiontype.php.

get_random_guess_score ( questiondata)
Parameters:
object$question
Returns:
number|null either a fraction estimating what the student would score by guessing, or null, if it is not possible to estimate.

Reimplemented from question_type.

Definition at line 86 of file questiontype.php.

Returns:
bool true if this question type can be used by the random question type.

Reimplemented from question_type.

Definition at line 45 of file questiontype.php.

make_deleted_instance ( questionid,
maxmark 
)

Definition at line 62 of file questiontype.php.

Here is the call graph for this function:

make_question ( questiondata)

Create an appropriate question_definition for the question of this type using data loaded from the database.

Parameters:
object$questiondatathe question data loaded from the database.
Returns:
question_definition the corresponding question_definition.

Reimplemented from question_type.

Definition at line 53 of file questiontype.php.

Here is the call graph for this function:

menu_name ( )

The name this question should appear as in the create new question dropdown. Override this method to return false if you don't want your question type to be createable, for example if it is an abstract base type, otherwise, you should not need to override this method.

Returns:
mixed the desired string, or false to hide this question type in the menu.

Reimplemented from question_type.

Definition at line 41 of file questiontype.php.


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