Test helper class for the select missing words question type.  
 More...
Test helper class for the select missing words question type. 
- Copyright
- 2011 The Open University 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ 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
- 
  
    | stdClass | as 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
- 
  
    | stdClass | data 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 | $cat | the category |  | object | $questiondata | form initialisation requires question data. |  
 
- Return values
- 
  
  
 
 
◆ get_test_questions()
      
        
          | qtype_gapselect_test_helper::get_test_questions | ( |  | ) |  | 
      
 
 
◆ make_a_currency_gapselect_question()
  
  | 
        
          | static qtype_gapselect_test_helper::make_a_currency_gapselect_question | ( |  | ) |  |  | static | 
 
Just for backwards compatibility. 
- Return values
- 
  
  
 
 
◆ make_a_gapselect_question()
  
  | 
        
          | static qtype_gapselect_test_helper::make_a_gapselect_question | ( |  | ) |  |  | static | 
 
Just for backwards compatibility. 
- Return values
- 
  
  
 
 
◆ make_a_maths_gapselect_question()
  
  | 
        
          | static qtype_gapselect_test_helper::make_a_maths_gapselect_question | ( |  | ) |  |  | static | 
 
Just for backwards compatibility. 
- Return values
- 
  
  
 
 
◆ make_a_multilang_gapselect_question()
  
  | 
        
          | static qtype_gapselect_test_helper::make_a_multilang_gapselect_question | ( |  | ) |  |  | static | 
 
Just for backwards compatibility. 
- Return values
- 
  
  
 
 
◆ make_gapselect_question_currency()
  
  | 
        
          | static qtype_gapselect_test_helper::make_gapselect_question_currency | ( |  | ) |  |  | static | 
 
This examples includes choices with currency like options. 
- Return values
- 
  
  
 
 
◆ 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
- 
  
  
 
 
◆ 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
- 
  
  
 
 
◆ 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
- 
  
  
 
 
The documentation for this class was generated from the following file: