Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.

Deprecated
since Moodle 4.3 MDL-78744
Todo
MDL-78926 This class will be deleted in Moodle 4.7
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.

Deprecated
since Moodle 4.3
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.

Deprecated
since Moodle 4.3
Parameters
renderer_base$outputRenderer base.
Return values
stdClass

Implements templatable.


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