Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_badges\output\badge_user_collection Class Reference

Collection of user badges used at the mybadges.php page. More...

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

Public Member Functions

 __construct ($badges, $userid)
 Initializes user badge collection.
 

Public Attributes

array $backpack = null
 backpack settings
 
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 $search = ''
 search
 
string $sort = 'name'
 how are the data sorted
 
int $totalcount = null
 the total number of badges to display
 

Detailed Description

Collection of user badges used at the mybadges.php page.

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

Constructor & Destructor Documentation

◆ __construct()

core_badges\output\badge_user_collection::__construct ( $badges,
$userid )

Initializes user badge collection.

Parameters
array$badgesBadges to render
int$useridBadges owner

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