Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
core_question\output\question_version_selection Class Reference
Inheritance diagram for core_question\output\question_version_selection:
core\output\templatable core\output\renderable

Public Member Functions

 export_for_template (renderer_base $output)
 Export the data for version selection mustache.
 

Static Public Member Functions

static make_for_question (string $uniqueidentifier, int $currentlyselectedquestionid)
 Set the selected question id for the currently selected question.
 

Protected Member Functions

 __construct (string $uniqueidentifier, int $currentlyselectedquestionid)
 Constructor.
 

Constructor & Destructor Documentation

◆ __construct()

core_question\output\question_version_selection::__construct ( string $uniqueidentifier,
int $currentlyselectedquestionid )
protected

Constructor.

Parameters
string$uniqueidentifierunique identifier for the api usage.
int$currentlyselectedquestionidselected question id in dropdown.

Member Function Documentation

◆ export_for_template()

core_question\output\question_version_selection::export_for_template ( renderer_base $output)

Export the data for version selection mustache.

Parameters
renderer_base$outputrenderer of the output
Return values
array

Implements core\output\templatable.

◆ make_for_question()

static core_question\output\question_version_selection::make_for_question ( string $uniqueidentifier,
int $currentlyselectedquestionid )
static

Set the selected question id for the currently selected question.

Parameters
string$uniqueidentifierunique identifier for the api usage.
int$currentlyselectedquestionidselected question id in dropdown.
Return values
selfan instance of this UI widget for the given question.

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