Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
core_question\output\view_banks Class Reference
Inheritance diagram for core_question\output\view_banks:
core\output\templatable core\output\renderable

Public Member Functions

 __construct (protected array readonly array $sharedbanks, protected array readonly array $privatebanks, protected stdClass readonly stdClass $course,)
 Create a new view_banks instance.
 
 export_for_template (renderer_base $output)
 Create a list of shared and non-shared banks for the template.
 

Constructor & Destructor Documentation

◆ __construct()

core_question\output\view_banks::__construct ( protected array readonly array $sharedbanks,
protected array readonly array $privatebanks,
protected stdClass readonly stdClass $course )

Create a new view_banks instance.

Parameters
array$sharedbanks{
See also
question_bank_helper::get_activity_instances_with_shareable_questions()}
Parameters
array$privatebanks{
See also
question_bank_helper::get_activity_instances_with_private_questions()}
Parameters
stdClass$coursethe viewing course.
Parameters
$sharedbanksBanks that can be shared
$privatebanksBanks that cannot be shared
$coursecurrent course object

Member Function Documentation

◆ export_for_template()

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

Create a list of shared and non-shared banks 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: