Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
core_badges\output\external_badge Class Reference

An external badges for external.php page. More...

Inheritance diagram for core_badges\output\external_badge:
renderable

Public Member Functions

 __construct ($badge, $recipient)
 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

stdClass $issued
 Issued badge.
 
int $recipient
 User ID.
 
bool $valid = true
 Validation of external badge.
 

Detailed Description

An external badges for external.php page.

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

Constructor & Destructor Documentation

◆ __construct()

core_badges\output\external_badge::__construct ( $badge,
$recipient )

Initializes the badge to display.

Parameters
stdClass$badgeExternal badge information.
int$recipientUser id.

Member Function Documentation

◆ export_for_template()

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