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

Base class for question type test helpers. More...

Inheritance diagram for question_test_helper:
qtype_calculated_test_helper qtype_calculatedmulti_test_helper qtype_calculatedsimple_test_helper qtype_ddimageortext_test_helper qtype_ddmarker_test_helper qtype_ddwtos_test_helper qtype_description_test_helper qtype_essay_test_helper qtype_gapselect_test_helper qtype_match_test_helper qtype_multianswer_test_helper qtype_multichoice_test_helper qtype_numerical_test_helper qtype_random_test_helper qtype_randomsamatch_test_helper qtype_shortanswer_test_helper qtype_truefalse_test_helper

Public Member Functions

 get_test_questions ()
 

Static Public Member Functions

static get_question_editing_form ($cat, $questiondata)
 Set up a form to create a question in $cat. More...
 

Detailed Description

Base class for question type test helpers.

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

Member Function Documentation

◆ get_question_editing_form()

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

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()

question_test_helper::get_test_questions ( )
abstract

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