ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilTreeSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Setup
;
22
use
ILIAS\Setup\Config
;
23
use
ILIAS\Setup\Agent
;
24
use
ILIAS\Setup\Objective
;
25
use
ILIAS\Refinery\Transformation
;
26
use
ILIAS\Setup\Metrics
;
27
use
ILIAS\Setup\ObjectiveConstructor
;
28
use
ILIAS\Refinery\Factory
as
Refinery
;
29
use
ILIAS\Setup\NullConfig
;
30
31
class
ilTreeSetupAgent
implements
Agent
32
{
33
protected
Refinery
$refinery
;
34
35
public
function
__construct
(
Refinery
$refinery)
36
{
37
$this->
refinery
=
$refinery
;
38
}
39
40
public
function
hasConfig
(): bool
41
{
42
return
false
;
43
}
44
45
public
function
getArrayToConfigTransformation
():
Transformation
46
{
47
return
$this->
refinery
->custom()->transformation(
static
function
(
$data
):
Config
{
48
return
new
NullConfig
();
49
});
50
}
51
52
public
function
getInstallObjective
(?
Config
$config =
null
):
Objective
53
{
54
return
new
Objective\NullObjective();
55
}
56
57
public
function
getUpdateObjective
(?
Config
$config =
null
):
Objective
58
{
59
return
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilTreeDBUpdateSteps8
());
60
}
61
62
public
function
getBuildObjective
():
Objective
63
{
64
return
new
Objective\NullObjective();
65
}
66
67
public
function
getStatusObjective
(Metrics\
Storage
$storage):
Objective
68
{
69
return
new
Setup\ObjectiveCollection(
70
'components/ILIAS/Tree'
,
71
true
,
72
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilTreeDBUpdateSteps8
()),
73
new
ilTreeMetricsCollectedObjective
($storage)
74
);
75
}
76
77
public
function
getMigrations
(): array
78
{
79
return
[];
80
}
81
82
public
function
getNamedObjectives
(?
Config
$config =
null
): array
83
{
84
return
[
85
'mp-to-ns'
=>
new
ObjectiveConstructor
(
86
'Migrate the ILIAS repository tree from Materialized Path to Nested Set'
,
87
static
function
():
Objective
{
88
return
new
ilTreeImplementationSwitch
(
89
ilTreeImplementationSwitch::MATERIALIZED_PATH_TO_NESTED_SET
90
);
91
}
92
),
93
'ns-to-mp'
=>
new
ObjectiveConstructor
(
94
'Migrate the ILIAS repository tree from Nested to Materialized Path'
,
95
static
function
():
Objective
{
96
return
new
ilTreeImplementationSwitch
(
97
ilTreeImplementationSwitch::NESTED_SET_TO_MATERIALIZED_PATH
98
);
99
}
100
)
101
];
102
}
103
}
ilTreeSetupAgent\hasConfig
hasConfig()
Definition:
class.ilTreeSetupAgent.php:40
ilTreeSetupAgent\getStatusObjective
getStatusObjective(Metrics\Storage $storage)
Definition:
class.ilTreeSetupAgent.php:67
$data
$data
Definition:
ltiregistration.php:29
ilTreeImplementationSwitch\NESTED_SET_TO_MATERIALIZED_PATH
const NESTED_SET_TO_MATERIALIZED_PATH
Definition:
class.ilTreeImplementationSwitch.php:27
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
ilTreeMetricsCollectedObjective
Definition:
class.ilTreeMetricsCollectedObjective.php:25
ilTreeDBUpdateSteps8
Definition:
class.ilTreeDBUpdateSteps8.php:24
ILIAS\Setup\Agent
Definition:
class.Agent.php:26
ilTreeSetupAgent
Definition:
class.ilTreeSetupAgent.php:31
ilTreeSetupAgent\getInstallObjective
getInstallObjective(?Config $config=null)
Definition:
class.ilTreeSetupAgent.php:52
ilDatabaseUpdateStepsExecutedObjective
Config
ilTreeSetupAgent\__construct
__construct(Refinery $refinery)
Definition:
class.ilTreeSetupAgent.php:35
ilDatabaseUpdateStepsMetricsCollectedObjective
ilTreeSetupAgent\$refinery
Refinery $refinery
Definition:
class.ilTreeSetupAgent.php:33
ilTreeImplementationSwitch
Definition:
class.ilTreeImplementationSwitch.php:25
Transformation
ilTreeSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilTreeSetupAgent.php:45
ilTreeSetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilTreeSetupAgent.php:62
ilTreeSetupAgent\getUpdateObjective
getUpdateObjective(?Config $config=null)
Definition:
class.ilTreeSetupAgent.php:57
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\Repository\refinery
refinery()
Definition:
trait.GlobalDICDomainServices.php:76
ObjectiveConstructor
ILIAS\Setup\Metrics
Definition:
ArrayStorage.php:21
Factory
NullConfig
ilTreeSetupAgent\getMigrations
getMigrations()
Definition:
class.ilTreeSetupAgent.php:77
ilTreeSetupAgent\getNamedObjectives
getNamedObjectives(?Config $config=null)
Definition:
class.ilTreeSetupAgent.php:82
ILIAS\Setup\Objective
Definition:
AdminConfirmedObjective.php:21
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilMysqlMyIsamToInnoDbMigration.php:19
ILIAS\Setup\ObjectiveConstructor
Definition:
ObjectiveConstructor.php:29
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
ILIAS\Setup\NullConfig
A configuration with no content.
Definition:
NullConfig.php:26
ilTreeImplementationSwitch\MATERIALIZED_PATH_TO_NESTED_SET
const MATERIALIZED_PATH_TO_NESTED_SET
Definition:
class.ilTreeImplementationSwitch.php:28
ILIAS\Setup\Agent
Definition:
HasNoNamedObjective.php:21
components
ILIAS
Tree
classes
Setup
class.ilTreeSetupAgent.php
Generated on Sun Aug 31 2025 23:04:06 for ILIAS by
1.8.13 (using
Doxyfile
)