Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
qtype_description_test_helper Class Reference

Test helper class for the description question type. More...

Inheritance diagram for qtype_description_test_helper:
question_test_helper

Public Member Functions

 get_test_questions ()
 

Static Public Member Functions

static get_description_question_data_info ()
 Get the question data, as it would be loaded by get_question_options.
 
static get_description_question_form_data_info ()
 Get the question form data.
 
static get_question_editing_form ($cat, $questiondata)
 Set up a form to create a question in $cat.
 
static make_description_question_info ()
 

Detailed Description

Test helper class for the description question type.

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

Member Function Documentation

◆ get_description_question_data_info()

static qtype_description_test_helper::get_description_question_data_info ( )
static

Get the question data, as it would be loaded by get_question_options.

Return values
object

◆ get_description_question_form_data_info()

static qtype_description_test_helper::get_description_question_form_data_info ( )
static

Get the question form data.

Return values
object

◆ 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_description_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_description_question_info()

static qtype_description_test_helper::make_description_question_info ( )
static

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