ILIAS  release_8 Revision v8.24
class.ilObjComponentSettings.php
Go to the documentation of this file.
1<?php
19require_once "./Services/Object/classes/class.ilObject.php";
20
30{
31 public function __construct(int $a_id = 0, bool $a_call_by_reference = true)
32 {
33 $this->type = "cmps";
34 parent::__construct($a_id, $a_call_by_reference);
35 }
36
37 public function update(): bool
38 {
39 global $DIC;
40 $ilDB = $DIC->database();
41
42 if (!parent::update()) {
43 return false;
44 }
45
46 return true;
47 }
48
49 public function read(): void
50 {
51 global $DIC;
52 $ilDB = $DIC->database();
53
54 parent::read();
55 }
56
57 public function delete(): bool
58 {
59 // always call parent delete function first!!
60 if (!parent::delete()) {
61 return false;
62 }
63
64 //put here your module specific stuff
65
66 return true;
67 }
68}
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc