ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjAccessibilitySettings.php
Go to the documentation of this file.
1<?php
2
23{
24 public function __construct(
25 int $a_id = 0,
26 bool $a_call_by_reference = true
27 ) {
28 global $DIC;
29
30 $this->db = $DIC->database();
31 $this->type = "accs";
32 parent::__construct($a_id, $a_call_by_reference);
33 }
34
35 public static function getControlConceptStatus(): bool
36 {
37 global $DIC;
38
39 $settings = $DIC->settings();
40
41 return (bool) $settings->get('acc_ctrl_cpt_status', '1');
42 }
43
44 public static function saveControlConceptStatus(bool $status): void
45 {
46 global $DIC;
47
48 $settings = $DIC->settings();
49 $settings->set('acc_ctrl_cpt_status', (int) $status);
50 }
51}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(int $a_id=0, bool $a_call_by_reference=true)
Class ilObject Basic functions for all objects.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26