Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: