Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_courseformat\output\local\state\course Class Reference
Inheritance diagram for core_courseformat\output\local\state\course:
renderable

Public Member Functions

 __construct (course_format $format)
 Constructor.
 
 export_for_template (\renderer_base $output)
 Export this data so it can be used as state object in the course editor.
 

Protected Attributes

course_format $format
 the course format class
 

Constructor & Destructor Documentation

◆ __construct()

core_courseformat\output\local\state\course::__construct ( course_format $format)

Constructor.

Parameters
course_format$formatthe course format

Member Function Documentation

◆ export_for_template()

core_courseformat\output\local\state\course::export_for_template ( \renderer_base $output)

Export this data so it can be used as state object in the course editor.

Parameters
renderer_base$outputtypically, the renderer that's calling this function
Return values
stdClassdata context for a mustache template

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