ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $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}
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.
Badge type interface.
global $lng
Definition: privfeed.php:17