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