38 if (!self::$instance) {
39 self::$instance =
new self();
41 return self::$instance;
68 if (!$this->enabled) {
71 if (count($this->domains)) {
72 if (in_array(trim($a_domain), $this->
getDomains())) {
83 $this->enabled = $stat;
86 public function save(): void
95 protected function read(): void
97 $this->enabled = (bool) $this->
settings->get(
'pub_section', (
string) $this->enabled);
98 $domains = $this->
settings->get(
'pub_section_domains', serialize($this->domains));
99 $this->domains = (array) unserialize($domains);
__construct()
read settings
Description of class class.
isEnabledForDomain(string $a_domain)
setDomains(array $domains)