Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Static Public Member Functions | List of all members
qtype_gapselect_test_helper Class Reference

Test helper class for the select missing words question type. More...

Inheritance diagram for qtype_gapselect_test_helper:
question_test_helper

Public Member Functions

 get_gapselect_question_form_data_missingchoiceno ()
 Get data required to save a select missing words question where the author missed out one of the group numbers. More...
 
 get_test_questions ()
 

Static Public Member Functions

static get_gapselect_question_data_fox ()
 Get data you would get by loading a typical select missing words question. More...
 
static get_question_editing_form ($cat, $questiondata)
 Set up a form to create a question in $cat. More...
 
static make_a_currency_gapselect_question ()
 Just for backwards compatibility. More...
 
static make_a_gapselect_question ()
 Just for backwards compatibility. More...
 
static make_a_maths_gapselect_question ()
 Just for backwards compatibility. More...
 
static make_a_multilang_gapselect_question ()
 Just for backwards compatibility. More...
 
static make_gapselect_question_currency ()
 This examples includes choices with currency like options. More...
 
static make_gapselect_question_fox ()
 Get an example gapselect question to use for testing. More...
 
static make_gapselect_question_maths ()
 Get an example gapselect question to use for testing. More...
 
static make_gapselect_question_multilang ()
 Get an example gapselect question with multilang entries to use for testing. More...
 

Detailed Description

Test helper class for the select missing words question type.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_gapselect_question_data_fox()

static qtype_gapselect_test_helper::get_gapselect_question_data_fox ( )
static

Get data you would get by loading a typical select missing words question.

Return values
stdClassas returned by question_bank::load_question_data for this qtype.

◆ get_gapselect_question_form_data_missingchoiceno()

qtype_gapselect_test_helper::get_gapselect_question_form_data_missingchoiceno ( )

Get data required to save a select missing words question where the author missed out one of the group numbers.

Return values
stdClassdata to create a gapselect question.

◆ get_question_editing_form()

static question_test_helper::get_question_editing_form (   $cat,
  $questiondata 
)
staticinherited

Set up a form to create a question in $cat.

This method also sets cat and contextid on $questiondata object.

Parameters
object$catthe category
object$questiondataform initialisation requires question data.
Return values
moodleform

◆ get_test_questions()

qtype_gapselect_test_helper::get_test_questions ( )
Return values
arrayof 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.

◆ make_a_currency_gapselect_question()

static qtype_gapselect_test_helper::make_a_currency_gapselect_question ( )
static

Just for backwards compatibility.

Return values
qtype_gapselect_question

◆ make_a_gapselect_question()

static qtype_gapselect_test_helper::make_a_gapselect_question ( )
static

Just for backwards compatibility.

Return values
qtype_gapselect_question

◆ make_a_maths_gapselect_question()

static qtype_gapselect_test_helper::make_a_maths_gapselect_question ( )
static

Just for backwards compatibility.

Return values
qtype_gapselect_question

◆ make_a_multilang_gapselect_question()

static qtype_gapselect_test_helper::make_a_multilang_gapselect_question ( )
static

Just for backwards compatibility.

Return values
qtype_gapselect_question

◆ make_gapselect_question_currency()

static qtype_gapselect_test_helper::make_gapselect_question_currency ( )
static

This examples includes choices with currency like options.

Return values
qtype_gapselect_question

◆ make_gapselect_question_fox()

static qtype_gapselect_test_helper::make_gapselect_question_fox ( )
static

Get an example gapselect question to use for testing.

This examples has one of each item.

Return values
qtype_gapselect_question

◆ make_gapselect_question_maths()

static qtype_gapselect_test_helper::make_gapselect_question_maths ( )
static

Get an example gapselect question to use for testing.

This exmples had unlimited items.

Return values
qtype_gapselect_question

◆ make_gapselect_question_multilang()

static qtype_gapselect_test_helper::make_gapselect_question_multilang ( )
static

Get an example gapselect question with multilang entries to use for testing.

Return values
qtype_gapselect_question

The documentation for this class was generated from the following file: