Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
question_test_helper Class Reference

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

Inheritance diagram for question_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.
 

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


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