Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
core_course\output\activity_navigation Class Reference

The class activity navigation renderable. More...

Inheritance diagram for core_course\output\activity_navigation:

Public Member Functions

 __construct ($prevmod, $nextmod, $activitylist=array())
 Constructor.
 
 export_for_template (\renderer_base $output)
 Export this data so it can be used as the context for a mustache template.
 

Public Attributes

url_select $activitylist = null
 The url select object for the activity selector menu.
 
action_link $nextlink = null
 The action link object for the next link.
 
action_link $prevlink = null
 The action link object for the prev link.
 

Detailed Description

The class activity navigation renderable.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_course\output\activity_navigation::__construct ( $prevmod,
$nextmod,
$activitylist = array() )

Constructor.

Parameters
cm_info | null$prevmodThe previous module to display, null if none.
cm_info | null$nextmodThe next module to display, null if none.
array$activitylistThe list of activity URLs (as key) and names (as value) for the activity dropdown menu.

Member Function Documentation

◆ export_for_template()

core_course\output\activity_navigation::export_for_template ( \renderer_base $output)

Export this data so it can be used as the context for a mustache template.

Parameters
renderer_base$outputRenderer base.
Return values
stdClass

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