ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilLogComponentLevels.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
include_once
'./Services/Logging/classes/class.ilLogComponentLevel.php'
;
6
7
15
class
ilLogComponentLevels
16
{
17
protected
static
$instance
= null;
18
protected
$components
=
array
();
19
23
protected
function
__construct
()
24
{
25
$this->
read
();
26
}
27
32
public
static
function
getInstance
()
33
{
34
if
(!self::$instance) {
35
self::$instance =
new
self
();
36
}
37
return
self::$instance;
38
}
39
45
public
static
function
updateFromXML
($a_component_id)
46
{
47
global
$ilDB
;
48
49
if
(!$a_component_id) {
50
return
false
;
51
}
52
53
$query
=
'SELECT * FROM log_components '
.
54
'WHERE component_id = '
. $ilDB->quote($a_component_id,
'text'
);
55
$res
= $ilDB->query(
$query
);
56
if
(!
$res
->numRows()) {
57
$query
=
'INSERT INTO log_components (component_id) '
.
58
'VALUES ('
.
59
$ilDB->quote($a_component_id,
'text'
) .
60
')'
;
61
$ilDB->manipulate(
$query
);
62
}
63
return
true
;
64
}
65
70
public
function
getLogComponents
()
71
{
72
return
$this->components
;
73
}
74
75
public
function
read
()
76
{
77
global
$ilDB
;
78
79
$query
=
'SELECT * FROM log_components '
;
80
$res
= $ilDB->query(
$query
);
81
82
$this->components =
array
();
83
while
(
$row
=
$res
->fetchRow(
ilDBConstants::FETCHMODE_OBJECT
)) {
84
$this->components[] =
new
ilLogComponentLevel
(
$row
->component_id,
$row
->log_level);
85
}
86
}
87
}
ilLogComponentLevels\__construct
__construct()
constructor
Definition:
class.ilLogComponentLevels.php:23
ilLogComponentLevels\$components
$components
Definition:
class.ilLogComponentLevels.php:18
ilLogComponentLevels\updateFromXML
static updateFromXML($a_component_id)
type $ilDB
Definition:
class.ilLogComponentLevels.php:45
$res
foreach($_POST as $key=> $value) $res
Definition:
save_question_post_data.php:15
ilLogComponentLevels
individual log levels for components
Definition:
class.ilLogComponentLevels.php:15
ilLogComponentLevels\$instance
static $instance
Definition:
class.ilLogComponentLevels.php:17
ilLogComponentLevel
individual log levels for components
Definition:
class.ilLogComponentLevel.php:11
$query
$query
Definition:
proxy_ylocal.php:13
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
$ilDB
global $ilDB
Definition:
storeScorm2004.php:16
ilLogComponentLevels\getInstance
static getInstance()
Definition:
class.ilLogComponentLevels.php:32
ilLogComponentLevels\read
read()
Definition:
class.ilLogComponentLevels.php:75
ilDBConstants\FETCHMODE_OBJECT
const FETCHMODE_OBJECT
Definition:
class.ilDBConstants.php:13
$row
$row
Definition:
10autofilter-selection-1.php:74
ilLogComponentLevels\getLogComponents
getLogComponents()
Get compponent level.
Definition:
class.ilLogComponentLevels.php:70
Services
Logging
classes
class.ilLogComponentLevels.php
Generated on Sat Jan 18 2025 19:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)