Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_badges\output\badge_collection Class Reference

Collection of all badges for view.php page. More...

Inheritance diagram for core_badges\output\badge_collection:
renderable core_badges\output\badge_management core_badges\output\badge_user_collection

Public Member Functions

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

Public Attributes

array $badges = array()
 list of badges
 
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 badges for view.php page.

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

Constructor & Destructor Documentation

◆ __construct()

core_badges\output\badge_collection::__construct ( $badges)

Initializes the list of badges to display.

Parameters
array$badgesBadges to render

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