|
| __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.
|
|
◆ __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
-
- See also
- question_bank_helper::get_activity_instances_with_shareable_questions()}
- Parameters
-
- See also
- question_bank_helper::get_activity_instances_with_private_questions()}
- Parameters
-
stdClass | $course | the viewing course. |
- Parameters
-
$sharedbanks | Banks that can be shared |
$privatebanks | Banks that cannot be shared |
$course | current course object |
◆ 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
-
- Return values
-
Implements core\output\templatable.
The documentation for this class was generated from the following file:
- question/classes/output/view_banks.php