ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilObjAccessibilitySettings.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once "./Services/Object/classes/class.ilObject.php";
5
15{
19 protected $db;
20
21
28 public function __construct($a_id = 0, $a_call_by_reference = true)
29 {
30 global $DIC;
31
32 $this->db = $DIC->database();
33 $this->type = "accs";
34 parent::__construct($a_id, $a_call_by_reference);
35 }
36
43 public function update()
44 {
46
47 if (!parent::update()) {
48 return false;
49 }
50
51 return true;
52 }
53
57 public function read()
58 {
60
61 parent::read();
62 }
63
64
65
66
67
74 public function delete()
75 {
76 // always call parent delete function first!!
77 if (!parent::delete()) {
78 return false;
79 }
80
81 //put here your module specific stuff
82
83 return true;
84 }
85
89 public static function getControlConceptStatus() : bool
90 {
91 global $DIC;
92
93 $settings = $DIC->settings();
94
95 return (bool) $settings->get('acc_ctrl_cpt_status', true);
96 }
97
101 public static function saveControlConceptStatus(bool $status)
102 {
103 global $DIC;
104
105 $settings = $DIC->settings();
106
107 $settings->set('acc_ctrl_cpt_status', (int) $status);
108 }
109}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjAccessibilitySettings.
__construct($a_id=0, $a_call_by_reference=true)
Constructor @access public.
Class ilObject Basic functions for all objects.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $ilDB
$DIC
Definition: xapitoken.php:46