33 self::SERV_LEARNING_HISTORY,
34 self::SERV_COMPETENCES,
35 self::SERV_LEARNING_PROGRESS,
37 self::SERV_CERTIFICATES
52 $this->setting = $DIC[
"ilSetting"];
53 $this->learing_history = $DIC->learningHistory();
54 $this->skmg_setting =
new ilSetting(
"skmg");
67 case self::SERV_LEARNING_HISTORY:
68 return (
bool) $this->learing_history->isActive();
70 case self::SERV_COMPETENCES:
71 return (
bool) $this->skmg_setting->get(
"enable_skmg");
73 case self::SERV_LEARNING_PROGRESS:
78 case self::SERV_BADGES:
81 case self::SERV_CERTIFICATES:
82 return $this->validator->validate();
95 foreach ($this->services as $s) {
110 return array_filter($this->services,
function ($s) {
static _hasLearningProgressLearner()
static _hasLearningProgressOtherUsers()
__construct()
Constructor.
getActiveServices()
Get active services.
isActive($service)
Is subservice active?
static _enabledLearningProgress()
check wether learing progress is enabled or not
Maybe a separate service in the future.
const SERV_LEARNING_HISTORY
const SERV_LEARNING_PROGRESS
isAnyActive()
Is any subservice active?
static getInstance()
Constructor.