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

Public Member Functions

 get_test_questions ()
 make_shortanswer_question_frogtoad ()
 get_shortanswer_question_data_frogtoad ()
 make_shortanswer_question_frogonly ()
 get_shortanswer_question_data_frogonly ()

Detailed Description

Test helper class for the shortanswer question type.

Definition at line 35 of file helper.php.


Member Function Documentation

Gets the question data for a shortanswer questionwith just the correct ansewer 'frog', and no other answer matching.

Returns:
stdClass

Definition at line 116 of file helper.php.

Here is the call graph for this function:

Gets the question data for a shortanswer question with with correct ansewer 'frog', partially correct answer 'toad' and defaultmark 1. This question also has a '*' match anything answer.

Returns:
stdClass

Definition at line 70 of file helper.php.

Here is the call graph for this function:

Returns:
array of example question names that can be passed as the $which argument of test_question_maker::make_question when $qtype is this question type.

Reimplemented from question_test_helper.

Definition at line 36 of file helper.php.

Makes a shortanswer question with just the correct ansewer 'frog', and no other answer matching.

Returns:
qtype_shortanswer_question

Definition at line 95 of file helper.php.

Here is the call graph for this function:

Makes a shortanswer question with correct ansewer 'frog', partially correct answer 'toad' and defaultmark 1. This question also has a '*' match anything answer.

Returns:
qtype_shortanswer_question

Definition at line 46 of file helper.php.

Here is the call graph for this function:


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