Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_course\output\activity_information Class Reference

The activity information renderable class. More...

Inheritance diagram for core_course\output\activity_information:
renderable templatable

Public Member Functions

 __construct (cm_info $cminfo, cm_completion_details $cmcompletion, array $activitydates)
 Constructor.
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template.
 

Protected Member Functions

 build_completion_data ()
 Builds the completion data for export.
 
 build_dates_data (stdClass $data)
 Builds the dates data for export.
 

Protected Attributes

array $activitydates = []
 The array of relevant dates for this activity.
 
cm_completion_details $cmcompletion = null
 The user's completion details for this activity.
 
cm_info $cminfo = null
 The course module information.
 

Detailed Description

The activity information renderable class.

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

Constructor & Destructor Documentation

◆ __construct()

core_course\output\activity_information::__construct ( cm_info $cminfo,
cm_completion_details $cmcompletion,
array $activitydates )

Constructor.

Parameters
cm_info$cminfoThe course module information.
cm_completion_details$cmcompletionThe course module information.
array$activitydatesThe activity dates.

Member Function Documentation

◆ build_completion_data()

core_course\output\activity_information::build_completion_data ( )
protected

Builds the completion data for export.

Return values
stdClass

◆ build_dates_data()

core_course\output\activity_information::build_dates_data ( stdClass $data)
protected

Builds the dates data for export.

Parameters
stdClass$data

◆ export_for_template()

core_course\output\activity_information::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

Implements templatable.


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