Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
core_question\output\question_version_selection Class Reference
Inheritance diagram for core_question\output\question_version_selection:
templatable 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 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: