ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilUserBadgeProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
24use Psr\Http\Message\RequestInterface;
25
31{
32 private readonly Language $lng;
33 private readonly \ilSetting $setting;
34 private readonly RequestInterface $request;
35 private readonly Profile $profile;
36
37 public function __construct()
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 }
48 public function getBadgeTypes(): array
49 {
50 return [
51 new ProfileBadge(
52 $this->lng,
53 $this->setting,
54 $this->request,
55 $this->profile
56 )
57 ];
58 }
59}
Class ilUserBadgeProvider.
readonly RequestInterface $request
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26