Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Create new question button. More...
Public Member Functions | |
__construct (int $categoryid, array $params, bool $canadd) | |
Store data for building the template context. | |
export_for_template (renderer_base $output) | |
Function to export the renderer data in a format that is suitable for a mustache template. | |
Protected Attributes | |
bool bool | $canadd |
$canadd True if the add question button should be displayed. | |
int int | $categoryid |
$categoryid The ID of the category the quesiton will be added to. | |
array array | $params |
$params URL parameters to pass to the add question form. | |
Create new question button.
qbank_editquestion\output\add_new_question::__construct | ( | int | $categoryid, |
array | $params, | ||
bool | $canadd ) |
Store data for building the template context.
int | $categoryid | |
array | $params | |
bool | $canadd |
qbank_editquestion\output\add_new_question::export_for_template | ( | renderer_base | $output | ) |
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
stdClass|array |
Implements templatable.
|
protected |
$canadd True if the add question button should be displayed.
If false, a placeholder will be shown.