3 declare(strict_types=1);
36 $this->db = $DIC->database();
45 $ilDB = $DIC->database();
47 $query =
'SELECT component FROM sysc_groups ' .
51 return (
string) $row->component;
63 $this->component_id = $a_comp;
73 $this->last_update = $a_update;
78 if (!$this->last_update) {
86 $this->status = $a_status;
94 public function read(): bool
96 if (!$this->
getId()) {
100 $query =
'SELECT * FROM sysc_groups ' .
113 $this->
id = $this->db->nextId(
'sysc_groups');
115 $query =
'INSERT INTO sysc_groups (id,component,status) ' .
121 $this->db->manipulate(
$query);
122 return $this->
getId();
static lookupComponent(int $a_id)
setLastUpdate(ilDateTime $a_update)
setComponentId(string $a_comp)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...