◆ __construct()
core_course\output\activitychooserbutton::__construct |
( |
protected section_info section_info | $section, |
|
|
protected cm_info|null ?cm_info | $mod = null, |
|
|
protected int|null ?int | $sectionreturn = null, |
|
|
protected array|null ?array | $actionlinks = [] ) |
Constructor.
- Parameters
-
section_info | $section | the section info |
cm_info | null | $mod | the course module ionfo |
int | null | $sectionreturn | the section to return to |
array | null | $actionlinks | the action links |
- Parameters
-
$section | the section object |
$mod | the course module instance |
$sectionreturn | the section to return to |
$actionlinks | action_link[] the action links |
◆ add_action_link()
core_course\output\activitychooserbutton::add_action_link |
( |
action_link | $action | ) |
|
Add an action link.
- Parameters
-
action_link | $action | the action link to add |
◆ export_for_template()
core_course\output\activitychooserbutton::export_for_template |
( |
renderer_base | $output | ) |
|
Export this data so it can be used as the context for a mustache template.
- Parameters
-
renderer_base | $output | typically, the renderer that's calling this function |
- Return values
-
stdClass | data context for a mustache template |
Implements core\output\templatable.
The documentation for this class was generated from the following file:
- course/classes/output/activitychooserbutton.php