ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilLogComponentLevel.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11
class
ilLogComponentLevel
12
{
13
private
$compontent_id
=
''
;
14
private
$component_level
= null;
15
16
public
function
__construct
($a_component_id)
17
{
18
$this->compontent_id = $a_component_id;
19
$this->
read
();
20
}
21
22
public
function
getComponentId
()
23
{
24
return
$this->compontent_id
;
25
}
26
27
public
function
setLevel
($a_level)
28
{
29
$this->component_level = $a_level;
30
}
31
32
public
function
getLevel
()
33
{
34
return
$this->component_level
;
35
}
36
37
public
function
update
()
38
{
39
global
$ilDB
;
40
41
ilLoggerFactory::getLogger
(
'log'
)->debug(
'update called'
);
42
43
$ilDB->replace(
44
'log_components'
,
45
array
(
'component_id'
=>
array
(
'text'
,$this->
getComponentId
())),
46
array
(
'log_level'
=>
array
(
'integer'
,$this->
getLevel
()))
47
);
48
}
49
54
public
function
read
()
55
{
56
global
$ilDB
;
57
58
$query
=
'SELECT * FROM log_components '
.
59
'WHERE component_id = '
.$ilDB->quote($this->
getComponentId
(),
'text'
);
60
61
$res
= $ilDB->query(
$query
);
62
while
(
$row
=
$res
->fetchRow(
ilDBConstants::FETCHMODE_OBJECT
))
63
{
64
$this->component_level =
$row
->log_level;
65
}
66
67
}
68
}
69
?>
ilLogComponentLevel\setLevel
setLevel($a_level)
Definition:
class.ilLogComponentLevel.php:27
$res
$res
Definition:
examplelayouts.sql.php:25
ilLogComponentLevel\$compontent_id
$compontent_id
Definition:
class.ilLogComponentLevel.php:13
$query
$query
Definition:
examplelayouts.sql.php:24
ilLogComponentLevel\__construct
__construct($a_component_id)
Definition:
class.ilLogComponentLevel.php:16
ilLogComponentLevel\$component_level
$component_level
Definition:
class.ilLogComponentLevel.php:14
ilLogComponentLevel\getLevel
getLevel()
Definition:
class.ilLogComponentLevel.php:32
ilLogComponentLevel\update
update()
Definition:
class.ilLogComponentLevel.php:37
ilLogComponentLevel
individual log levels for components
Definition:
class.ilLogComponentLevel.php:11
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilLogComponentLevel\read
read()
Read entry type $ilDB.
Definition:
class.ilLogComponentLevel.php:54
$ilDB
global $ilDB
Definition:
storeScorm2004.php:16
php
ilLoggerFactory\getLogger
static getLogger($a_component_id)
Get component logger.
Definition:
class.ilLoggerFactory.php:82
ilDBConstants\FETCHMODE_OBJECT
const FETCHMODE_OBJECT
Definition:
class.ilDBConstants.php:13
$row
$row
Definition:
10autofilter-selection-1.php:74
ilLogComponentLevel\getComponentId
getComponentId()
Definition:
class.ilLogComponentLevel.php:22
Services
Logging
classes
class.ilLogComponentLevel.php
Generated on Fri Jan 17 2025 19:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)