ILIAS  release_7 Revision v7.30-3-g800a261c036
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
4require_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}
An exception for terminatinating execution or to throw for unit testing.
getId()
Get typ id (unique for component)
isSingleton()
Can only be created once?
getValidObjectTypes()
Get valid (repository) "parent" object types.
getConfigGUIInstance()
Get GUI config instance.
global $DIC
Definition: goto.php:24
Badge type interface.
$lng