52 if (!self::$instance) {
53 self::$instance =
new self();
55 return self::$instance;
82 if (!$this->enabled) {
85 if (count($this->domains)) {
86 if (in_array(trim($a_domain), $this->
getDomains())) {
97 $this->enabled = $stat;
109 protected function read(): void
111 $this->enabled = (bool) $this->
settings->get(
'pub_section', (
string) $this->enabled);
112 $domains = $this->
settings->get(
'pub_section_domains', serialize($this->domains));
113 $this->domains = (array) unserialize($domains);
__construct()
read settings
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isEnabledForDomain(string $a_domain)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setDomains(array $domains)