Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
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. More...
 

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: