Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core_badges\output\badge_related Class Reference

Collection of all related badges. More...

Inheritance diagram for core_badges\output\badge_related:
renderable

Public Member Functions

 __construct ($badges, $currentbadgeid)
 Initializes the list of badges to display.
 

Public Attributes

array $badges = array()
 list of badges.
 
int $currentbadgeid = 0
 the current badge.
 
string $dir = 'ASC'
 how are the data sorted.
 
int $page = 0
 page number to display.
 
int $perpage = BADGE_PERPAGE
 number of badges to display per page.
 
string $sort = 'name'
 how are the data sorted.
 
int $totalcount = null
 the total number of badges to display.
 

Detailed Description

Collection of all related badges.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Author
Tung Thai Tung..nosp@m.Thai.nosp@m.Duc@n.nosp@m.asht.nosp@m.echgl.nosp@m.obal.nosp@m..com

Constructor & Destructor Documentation

◆ __construct()

core_badges\output\badge_related::__construct ( $badges,
$currentbadgeid )

Initializes the list of badges to display.

Parameters
array$badgesrelated badges to render.
int$currentbadgeidID current badge.

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