ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 $lng;
24  return $lng->txt("badge_crs_merit");
25  }
26 
27  public function isSingleton()
28  {
29  return true;
30  }
31 
32  public function getValidObjectTypes()
33  {
34  return array("crs", "grp");
35  }
36 
37  public function getConfigGUIInstance()
38  {
39  // no config
40  }
41 }
getConfigGUIInstance()
Get GUI config instance.
Badge type interface.
getId()
Get typ id (unique for component)
isSingleton()
Can only be created once?
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
getValidObjectTypes()
Get valid (repository) "parent" object types.