ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
class.ilUICoreSetupAgent.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
/* Copyright (c) 2021 Thibeau Fuhrer <thf@studer-raimann.ch> Extended GPL, see docs/LICENSE */
6
7
use
ILIAS\Refinery\Transformation
;
8
use
ILIAS\Setup\ObjectiveCollection
;
9
use
ILIAS\Setup\Objective\NullObjective
;
10
use
ILIAS\Setup\Metrics\Storage
;
11
use
ILIAS\Setup\Objective
;
12
use
ILIAS\Setup\Agent
;
13
use
ILIAS\Setup\Config
;
14
use
ILIAS\Setup\ObjectiveConstructor
;
15
21
class
ilUICoreSetupAgent
implements
Agent
22
{
26
public
function
hasConfig
(): bool
27
{
28
return
false
;
29
}
30
34
public
function
getArrayToConfigTransformation
():
Transformation
35
{
36
throw
new
LogicException
(self::class .
" has no Config."
);
37
}
38
42
public
function
getInstallObjective
(
Config
$config = null):
Objective
43
{
44
return
new
NullObjective
();
45
}
46
50
public
function
getUpdateObjective
(
Config
$config = null):
Objective
51
{
52
return
new
ilDatabaseUpdateStepsExecutedObjective
(
53
new
ilCtrlDatabaseUpdateSteps
()
54
);
55
}
56
60
public
function
getBuildObjective
():
Objective
61
{
62
return
new
ObjectiveCollection
(
63
'buildIlCtrlArtifacts'
,
64
false
,
65
new
ilCtrlBaseClassArtifactObjective
(),
66
new
ilCtrlStructureArtifactObjective
(),
67
new
ilCtrlSecurityArtifactObjective
(),
68
);
69
}
70
74
public
function
getStatusObjective
(
Storage
$storage):
Objective
75
{
76
return
new
NullObjective
();
77
}
78
82
public
function
getMigrations
(): array
83
{
84
return
[];
85
}
86
90
public
function
getNamedObjectives
(?
Config
$config = null): array
91
{
92
return
[
93
'buildIlCtrlArtifacts'
=>
new
ObjectiveConstructor
(
94
'builds all necessary ilCtrl artifacts.'
,
95
function
() {
96
return
$this->
getBuildObjective
();
97
}
98
),
99
100
'updateIlCtrlDatabase'
=>
new
ObjectiveConstructor
(
101
'executes all ilCtrl database update steps.'
,
102
function
() {
103
return
$this->
getUpdateObjective
();
104
}
105
),
106
];
107
}
108
}
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved...
Definition:
ObjectiveCollection.php:26
LogicException
Storage
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup...
Definition:
Objective.php:30
ILIAS\Setup\Metrics\Storage
Definition:
Storage.php:23
ilUICoreSetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilUICoreSetupAgent.php:60
ilUICoreSetupAgent\hasConfig
hasConfig()
Definition:
class.ilUICoreSetupAgent.php:26
ILIAS\Setup\Agent
Definition:
class.Agent.php:26
ilDatabaseUpdateStepsExecutedObjective
ilUICoreSetupAgent
Config
ilUICoreSetupAgent\getUpdateObjective
getUpdateObjective(Config $config=null)
Definition:
class.ilUICoreSetupAgent.php:50
Transformation
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:28
ilCtrlSecurityArtifactObjective
Class ilCtrlSecurityArtifactObjective.
Definition:
class.ilCtrlSecurityArtifactObjective.php:33
ObjectiveConstructor
ilCtrlDatabaseUpdateSteps
Class ilCtrlDatabaseUpdateSteps holds the database update- steps affecting ilCtrl tables...
Definition:
class.ilCtrlDatabaseUpdateSteps.php:13
ilUICoreSetupAgent\getStatusObjective
getStatusObjective(Storage $storage)
Definition:
class.ilUICoreSetupAgent.php:74
ObjectiveCollection
ilCtrlStructureArtifactObjective
Class ilCtrlStructureArtifactObjective.
Definition:
class.ilCtrlStructureArtifactObjective.php:31
ilCtrlBaseClassArtifactObjective
Class ilCtrlSecurityArtifactObjective.
Definition:
class.ilCtrlBaseClassArtifactObjective.php:31
ILIAS\Setup\Objective
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AdminConfirmedObjective.php:21
ilUICoreSetupAgent\getInstallObjective
getInstallObjective(Config $config=null)
Definition:
class.ilUICoreSetupAgent.php:42
ILIAS\Setup\ObjectiveConstructor
Definition:
ObjectiveConstructor.php:29
ilUICoreSetupAgent\getNamedObjectives
getNamedObjectives(?Config $config=null)
Definition:
class.ilUICoreSetupAgent.php:90
ilUICoreSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilUICoreSetupAgent.php:34
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:26
NullObjective
ilUICoreSetupAgent\getMigrations
getMigrations()
Definition:
class.ilUICoreSetupAgent.php:82
ILIAS\Setup\Agent
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
HasNoNamedObjective.php:21
components
ILIAS
UICore
classes
Setup
class.ilUICoreSetupAgent.php
Generated on Wed Sep 10 2025 15:16:51 for ILIAS by
1.8.13 (using
Doxyfile
)