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

Public Member Functions

 save_question_options ($question)
 finished_edit_wizard ($form)
 wizard_pages_number ()
 custom_generator_tools_part ($mform, $idx, $j)
 comment_header ($answers)
 tolerance_types ()
 dataset_options ($form, $name, $mandatory=true, $renameabledatasets=false)

Data Fields

 $wizard_pages_number = 1

Detailed Description

The simple calculated question type.

Definition at line 38 of file questiontype.php.


Member Function Documentation

comment_header ( answers)

Reimplemented from qtype_calculated.

Definition at line 265 of file questiontype.php.

custom_generator_tools_part ( mform,
idx,
j 
)

Reimplemented from qtype_calculated.

Definition at line 243 of file questiontype.php.

dataset_options ( form,
name,
mandatory = true,
renameabledatasets = false 
)

Reimplemented from qtype_calculated.

Definition at line 283 of file questiontype.php.

Here is the call graph for this function:

finished_edit_wizard ( form)

Returns true if the editing wizard is finished, false otherwise.

The default implementation returns true, which is suitable for all question- types that only use one editing form. This function is used in question.php to decide whether we can regrade any states of the edited question and redirect to edit.php.

The dataset dependent question-type, which is extended by the calculated question-type, overwrites this method because it uses multiple pages (i.e. a wizard) to set up the question and associated datasets.

Parameters:
object$formThe data submitted by the previous page.
Returns:
bool Whether the wizard's last page was submitted or not.

Reimplemented from qtype_calculated.

Definition at line 235 of file questiontype.php.

save_question_options ( question)

Saves question-type specific options

This is called by save_question() to save the question-type specific data

Returns:
object $result->error or $result->noticeyesno or $result->notice
Parameters:
object$questionThis holds the information from the editing form, it is not a standard question object.

Reimplemented from qtype_calculated.

Definition at line 43 of file questiontype.php.

Here is the call graph for this function:

Reimplemented from qtype_calculated.

Definition at line 276 of file questiontype.php.

Definition at line 239 of file questiontype.php.


Field Documentation

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