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

Public Member Functions

 __construct (protected stdClass readonly stdClass $course, protected array readonly array $bankplugins)
 Instantiate the output class.
 
 export_for_template (renderer_base $output)
 Dynamically create an 'add' link for each module type that supports FEATURE_PUBLISHES_QUESTIONS.
 

Constructor & Destructor Documentation

◆ __construct()

core_question\output\add_bank_list::__construct ( protected stdClass readonly stdClass $course,
protected array readonly array $bankplugins )

Instantiate the output class.

Parameters
stdClass$coursethe course currently being viewed.
array$bankplugins{
See also
question_bank_helper::get_activity_types_with_shareable_questions()}
Parameters
$course$course the viewing course
$bankplugins$bankplugins shareable bank type plugins

Member Function Documentation

◆ export_for_template()

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

Dynamically create an 'add' link for each module type that supports FEATURE_PUBLISHES_QUESTIONS.

Parameters
renderer_base$output
Return values
array

Implements core\output\templatable.


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