ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCourseMeritBadge.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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 }
getConfigGUIInstance()
Get GUI config instance.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
getId()
Get typ id (unique for component)
isSingleton()
Can only be created once?
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...