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

Public Member Functions

 __construct (protected cm_info cm_info $cminfo, protected cm_completion_details cm_completion_details $cmcompletion, protected bool bool $smallbutton=true,)
 Constructor.
 
 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\activity_completion::__construct ( protected cm_info cm_info $cminfo,
protected cm_completion_details cm_completion_details $cmcompletion,
protected bool bool $smallbutton = true )

Constructor.

Parameters
cm_info$cminfoThe course module information.
cm_completion_details$cmcompletionThe course module information.
Parameters
$cminfo$cminfo the activity cm_info.
$cmcompletion$cmcompletion the activity completion details.
$smallbutton$smallbutton if the button is rendered small (like in course page).

Member Function Documentation

◆ export_for_template()

core_course\output\activity_completion::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 core\output\templatable.


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