3 declare(strict_types=1);
    32         $this->db = $DIC->database();
    38         if (!self::$instance) {
    39             self::$instance = 
new self();
    41         return self::$instance;
    51         $ilDB = $DIC->database();
    52         if (!$a_component_id) {
    56         $query = 
'SELECT * FROM log_components ' .
    57                 'WHERE component_id = ' . 
$ilDB->quote($a_component_id, 
'text');
    59         if (!
$res->numRows()) {
    60             $query = 
'INSERT INTO log_components (component_id) ' .
    62                     $ilDB->quote($a_component_id, 
'text') .
    64             $ilDB->manipulate($query);
    78     public function read(): void
    80         $query = 
'SELECT * FROM log_components ';
    81         $res = $this->db->query($query);
    83         $this->components = array();
    85             $this->components[] = 
new ilLogComponentLevel((
string) $row->component_id, (
int) $row->log_level);
 
static updateFromXML($a_component_id)
 
individual log levels for components 
 
individual log levels for components 
 
getLogComponents()
Get component levels. 
 
static ilLogComponentLevels $instance