ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilUserBadgeProvider Class Reference

Class ilUserBadgeProvider. More...

+ Inheritance diagram for ilUserBadgeProvider:
+ Collaboration diagram for ilUserBadgeProvider:

Public Member Functions

 __construct ()
 
 getBadgeTypes ()
 @inheritcoc More...
 
 getBadgeTypes ()
 Get available badge types from component. More...
 

Private Attributes

readonly Language $lng
 
readonly ilSetting $setting
 
readonly RequestInterface $request
 
readonly Profile $profile
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilUserBadgeProvider::__construct ( )

Definition at line 37 of file class.ilUserBadgeProvider.php.

38 {
39 global $DIC;
40 $this->lng = $DIC['lng'];
41 $this->setting = $DIC['ilSetting'];
42 $this->request = $DIC['http']->request();
43 $this->profile = $DIC['user']->getProfile();
44 }
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\Repository\lng(), and ILIAS\Repository\profile().

+ Here is the call graph for this function:

Member Function Documentation

◆ getBadgeTypes()

ilUserBadgeProvider::getBadgeTypes ( )

@inheritcoc

Implements ilBadgeProvider.

Definition at line 48 of file class.ilUserBadgeProvider.php.

48 : array
49 {
50 return [
51 new ProfileBadge(
52 $this->lng,
53 $this->setting,
54 $this->request,
55 $this->profile
56 )
57 ];
58 }

References ILIAS\Repository\lng(), and ILIAS\Repository\profile().

+ Here is the call graph for this function:

Field Documentation

◆ $lng

readonly Language ilUserBadgeProvider::$lng
private

Definition at line 32 of file class.ilUserBadgeProvider.php.

◆ $profile

readonly Profile ilUserBadgeProvider::$profile
private

Definition at line 35 of file class.ilUserBadgeProvider.php.

◆ $request

readonly RequestInterface ilUserBadgeProvider::$request
private

Definition at line 34 of file class.ilUserBadgeProvider.php.

◆ $setting

readonly ilSetting ilUserBadgeProvider::$setting
private

Definition at line 33 of file class.ilUserBadgeProvider.php.


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