ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCourseMeritBadge.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=0);
26{
27 protected ilLanguage $lng;
28
29 public function __construct()
30 {
31 global $DIC;
32
33 $this->lng = $DIC->language();
34 }
35
36 public function getId(): string
37 {
38 return "merit";
39 }
40
41 public function getCaption(): string
42 {
43 return $this->lng->txt("badge_crs_merit");
44 }
45
46 public function isSingleton(): bool
47 {
48 return true;
49 }
50
54 public function getValidObjectTypes(): array
55 {
56 return ["crs", "grp"];
57 }
58
60 {
61 return null;
62 }
63}
getId()
Get typ id (unique for component)
isSingleton()
Can only be created once?
getConfigGUIInstance()
Get GUI config instance.
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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