1<?
php declare(strict_types=1);
30 $this->
user = $DIC[
'ilUser'];
38 if (!(self::$instance instanceof
self)) {
39 self::$instance =
new self();
49 public function setSetting(
string $keyword, $value) : void
51 $this->
settings->set($keyword, $value);
59 public function getSetting(
string $keyword,
bool $default =
false)
61 return $this->
settings->get($keyword, $default);
69 if (self::$isEnabled !==
null) {
73 if ($this->
user->isAnonymous()) {
74 self::$isEnabled =
false;
78 self::$isEnabled = (bool) $this->
settings->get(
'enabled',
false);
An exception for terminatinating execution or to throw for unit testing.
getSetting(string $keyword, bool $default=false)
setSetting(string $keyword, $value)
__construct()
ilBuddySystem constructor.