Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_badges\output\badgeclass Class Reference
Inheritance diagram for core_badges\output\badgeclass:
renderable

Public Member Functions

 __construct (int $id)
 Initializes the badge to display.
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template.
 

Public Attributes

badge $badge
 class
 
badge $badgeid = 0
 class
 
context $context
 The badge context.
 

Constructor & Destructor Documentation

◆ __construct()

core_badges\output\badgeclass::__construct ( int $id)

Initializes the badge to display.

Parameters
int$idId of the badge to display.

Member Function Documentation

◆ export_for_template()

core_badges\output\badgeclass::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: