Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
core_course\output\activitychooserbutton Class Reference
Inheritance diagram for core_course\output\activitychooserbutton:
core\output\templatable core\output\renderable

Public Member Functions

 __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.
 
 add_action_link (action_link $action)
 Add an action link.
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template.
 

Constructor & Destructor Documentation

◆ __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$sectionthe section info
cm_info | null$modthe course module ionfo
int | null$sectionreturnthe section to return to
array | null$actionlinksthe action links
Parameters
$sectionthe section object
$modthe course module instance
$sectionreturnthe section to return to
$actionlinksaction_link[] the action links

Member Function Documentation

◆ add_action_link()

core_course\output\activitychooserbutton::add_action_link ( action_link $action)

Add an action link.

Parameters
action_link$actionthe 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$outputtypically, the renderer that's calling this function
Return values
stdClassdata context for a mustache template

Implements core\output\templatable.


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