19declare(strict_types=1);
36 $this->db =
$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 ' .
102 $res = $this->db->query($query);
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();
@classDescription Date and time handling
Defines a system check group including different tasks of a component.
setLastUpdate(ilDateTime $a_update)
setComponentId(string $a_comp)
static lookupComponent(int $a_id)