ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 }
__construct(int $a_id=0, bool $a_call_by_reference=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)