3 declare(strict_types=1);
36 $this->db = $DIC->database();
42 return self::$instance ?? (self::$instance =
new self());
48 if ($group->getComponentId() === $a_component_id) {
49 return $group->getId();
54 $component_group->setComponentId($a_component_id);
55 $component_group->create();
57 return $component_group->getId();
62 $query =
'SELECT id FROM sysc_groups ' .
66 return (
int) $row->id;
79 protected function read(): void
81 $query =
'SELECT id FROM sysc_groups ' .
85 $this->groups = array();
87 $this->groups[] =
new ilSCGroup((
int) $row->id);
updateFromComponentDefinition(string $a_component_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static ilSCGroups $instance
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
lookupGroupByComponentId(string $a_component_id)