Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
core_question\output\switch_question_bank Class Reference

Get the switch question bank rendered content. More...

Inheritance diagram for core_question\output\switch_question_bank:
core\output\renderable core\output\templatable

Public Member Functions

 __construct (private int readonly int $quizcmid, private int readonly int $courseid, private int readonly int $userid)
 Instantiate the output class.
 
 export_for_template (renderer_base $output)
 Create a list of question banks the user has access to for the template.
 

Detailed Description

Get the switch question bank rendered content.

Displays lists of shared banks the viewing user has access to.

Constructor & Destructor Documentation

◆ __construct()

core_question\output\switch_question_bank::__construct ( private int readonly int $quizcmid,
private int readonly int $courseid,
private int readonly int $userid )

Instantiate the output class.

Parameters
int$quizcmidquiz course module id.
int$courseidof the current course.
int$useridof the user viewing the page.
Parameters
$quizcmidquiz course module id
$courseidid of the current course
$useridid of the user viewing the page

Member Function Documentation

◆ export_for_template()

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

Create a list of question banks the user has access to for the template.

Parameters
renderer_base$output
Return values
array

Implements core\output\templatable.


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