ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilLoggingSetupAgent.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
use
ILIAS\Setup
;
6
use
ILIAS\Refinery
;
7
use
ILIAS\UI
;
8
9
class
ilLoggingSetupAgent
implements
Setup\Agent
10
{
11
use
Setup\Agent\HasNoNamedObjective
;
12
16
protected
$refinery
;
17
18
public
function
__construct
(
19
Refinery
\
Factory
$refinery
20
) {
21
$this->refinery =
$refinery
;
22
}
23
27
public
function
hasConfig
() : bool
28
{
29
return
true
;
30
}
31
35
public
function
getArrayToConfigTransformation
() :
Refinery
\
Transformation
36
{
37
return
$this->refinery->custom()->transformation(
function
(
$data
) {
38
return
new \ilLoggingSetupConfig(
39
$data
[
"enable"
] ??
false
,
40
$data
[
"path_to_logfile"
] ?? null,
41
$data
[
"errorlog_dir"
] ?? null
42
);
43
});
44
}
45
49
public
function
getInstallObjective
(Setup\
Config
$config
= null) : Setup\
Objective
50
{
51
return
new
ilLoggingConfigStoredObjective
(
$config
);
52
}
53
57
public
function
getUpdateObjective
(Setup\
Config
$config
= null) : Setup\
Objective
58
{
59
if
(
$config
!== null) {
60
return
new
ilLoggingConfigStoredObjective
(
$config
);
61
}
62
return
new
Setup\Objective\NullObjective();
63
}
64
68
public
function
getBuildArtifactObjective
() : Setup\
Objective
69
{
70
return
new
Setup\Objective\NullObjective();
71
}
72
76
public
function
getStatusObjective
(Setup\Metrics\Storage $storage) : Setup\
Objective
77
{
78
return
new
ilLoggingMetricsCollectedObjective
($storage);
79
}
80
84
public
function
getMigrations
() : array
85
{
86
return
[];
87
}
88
}
ilLoggingConfigStoredObjective
Definition:
class.ilLoggingConfigStoredObjective.php:8
$data
$data
Definition:
storeScorm.php:23
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup...
Definition:
Objective.php:14
ILIAS\Refinery
Definition:
ByTrying.php:5
ilLoggingSetupAgent\getMigrations
getMigrations()
Definition:
class.ilLoggingSetupAgent.php:84
ilLoggingSetupAgent\__construct
__construct(Refinery\Factory $refinery)
Definition:
class.ilLoggingSetupAgent.php:18
ilLoggingMetricsCollectedObjective
Definition:
class.ilLoggingMetricsCollectedObjective.php:7
$config
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition:
metadata.php:68
ilLoggingSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilLoggingSetupAgent.php:76
ilLoggingSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilLoggingSetupAgent.php:35
ilLoggingSetupAgent\getInstallObjective
getInstallObjective(Setup\Config $config=null)
Definition:
class.ilLoggingSetupAgent.php:49
ilLoggingSetupAgent\getBuildArtifactObjective
getBuildArtifactObjective()
Definition:
class.ilLoggingSetupAgent.php:68
ilLoggingSetupAgent\$refinery
$refinery
Definition:
class.ilLoggingSetupAgent.php:16
ilLoggingSetupAgent
Definition:
class.ilLoggingSetupAgent.php:9
Factory
ilLoggingSetupAgent\hasConfig
hasConfig()
Definition:
class.ilLoggingSetupAgent.php:27
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:19
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AdminInteraction.php:5
ilLoggingSetupAgent\getUpdateObjective
getUpdateObjective(Setup\Config $config=null)
Definition:
class.ilLoggingSetupAgent.php:57
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:17
ILIAS\UI
HasNoNamedObjective
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:10
Services
Logging
classes
Setup
class.ilLoggingSetupAgent.php
Generated on Fri Apr 4 2025 21:01:34 for ILIAS by
1.8.13 (using
Doxyfile
)