ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjComponentSettings.php
Go to the documentation of this file.
1<?php
2
28{
29 public function __construct(int $a_id = 0, bool $a_call_by_reference = true)
30 {
31 $this->type = "cmps";
32 parent::__construct($a_id, $a_call_by_reference);
33 }
34
35 public function update(): bool
36 {
37 global $DIC;
38 $ilDB = $DIC->database();
39
40 if (!parent::update()) {
41 return false;
42 }
43
44 return true;
45 }
46
47 public function read(): void
48 {
49 global $DIC;
50 $ilDB = $DIC->database();
51
52 parent::read();
53 }
54
55 public function delete(): bool
56 {
57 // always call parent delete function first!!
58 if (!parent::delete()) {
59 return false;
60 }
61
62 //put here your module specific stuff
63
64 return true;
65 }
66}
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