ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilCourseMeritBadge.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once "./Services/Badge/interfaces/interface.ilBadgeType.php";
5 
15 {
16  public function getId()
17  {
18  return "merit";
19  }
20 
21  public function getCaption()
22  {
23  global $DIC;
24 
25  $lng = $DIC['lng'];
26  return $lng->txt("badge_crs_merit");
27  }
28 
29  public function isSingleton()
30  {
31  return true;
32  }
33 
34  public function getValidObjectTypes()
35  {
36  return array("crs", "grp");
37  }
38 
39  public function getConfigGUIInstance()
40  {
41  // no config
42  }
43 }
getConfigGUIInstance()
Get GUI config instance.
global $DIC
Definition: saml.php:7
Badge type interface.
getId()
Get typ id (unique for component)
$lng
isSingleton()
Can only be created once?
getValidObjectTypes()
Get valid (repository) "parent" object types.