[ Index ]

PHP Cross Reference of Moodle 310

title

Body

[close]

/question/type/gapselect/tests/ -> helper.php (summary)

Contains the helper class for the select missing words question type tests.

Copyright: 2011 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 307 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

qtype_gapselect_test_helper:: (11 methods):
  get_test_questions()
  get_gapselect_question_data_fox()
  get_gapselect_question_form_data_missingchoiceno()
  make_gapselect_question_fox()
  make_gapselect_question_maths()
  make_gapselect_question_multilang()
  make_gapselect_question_currency()
  make_a_gapselect_question()
  make_a_maths_gapselect_question()
  make_a_currency_gapselect_question()
  make_a_multilang_gapselect_question()


Class: qtype_gapselect_test_helper  - X-Ref

Test helper class for the select missing words question type.

get_test_questions()   X-Ref
No description

get_gapselect_question_data_fox()   X-Ref
Get data you would get by loading a typical select missing words question.

return: stdClass as returned by question_bank::load_question_data for this qtype.

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

return: stdClass data to create a gapselect question.

make_gapselect_question_fox()   X-Ref
Get an example gapselect question to use for testing. This examples has one of each item.

return: qtype_gapselect_question

make_gapselect_question_maths()   X-Ref
Get an example gapselect question to use for testing. This exmples had unlimited items.

return: qtype_gapselect_question

make_gapselect_question_multilang()   X-Ref
Get an example gapselect question with multilang entries to use for testing.

return: qtype_gapselect_question

make_gapselect_question_currency()   X-Ref
This examples includes choices with currency like options.

return: qtype_gapselect_question

make_a_gapselect_question()   X-Ref
Just for backwards compatibility.

return: qtype_gapselect_question

make_a_maths_gapselect_question()   X-Ref
Just for backwards compatibility.

return: qtype_gapselect_question

make_a_currency_gapselect_question()   X-Ref
Just for backwards compatibility.

return: qtype_gapselect_question

make_a_multilang_gapselect_question()   X-Ref
Just for backwards compatibility.

return: qtype_gapselect_question



Generated: Wed Jan 22 11:59:49 2025 Cross-referenced by PHPXref 0.7.1