ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilGlossarySetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Refinery
;
22
use
ILIAS\Setup
;
23
27
final
class
ilGlossarySetupAgent
implements
Setup\Agent
28
{
29
use Setup\Agent\HasNoNamedObjective;
30
31
public
function
hasConfig
(): bool
32
{
33
return
false
;
34
}
35
36
public
function
getArrayToConfigTransformation
():
Refinery
\
Transformation
37
{
38
throw
new
LogicException(
"ilGlossarySetupAgent has no config."
);
39
}
40
41
public
function
getInstallObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
42
{
43
return
new
Setup\Objective\NullObjective
();
44
}
45
46
public
function
getUpdateObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
47
{
48
return
new
Setup\ObjectiveCollection
(
49
'Glossary'
,
50
false
,
51
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilGlossaryDBUpdateSteps
()),
52
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilGlossaryDBUpdateSteps11
())
53
);
54
}
55
56
public
function
getBuildObjective
():
Setup
\
Objective
57
{
58
return
new
Setup\Objective\NullObjective
();
59
}
60
61
public
function
getStatusObjective
(
Setup
\Metrics\
Storage
$storage):
Setup
\
Objective
62
{
63
return
new
Setup\ObjectiveCollection
(
64
'Glossary'
,
65
true
,
66
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilGlossaryDBUpdateSteps
()),
67
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilGlossaryDBUpdateSteps11
()),
68
);
69
}
70
71
public
function
getMigrations
(): array
72
{
73
return
[
74
new
ilGlossaryDefinitionMigration
(),
75
new
ilGlossaryCollectionMigration
(),
76
new
ilGlossaryDeleteLOMOfDefinitionsMigration
()
77
];
78
}
79
}
ILIAS\Refinery
Definition:
Refinery.php:24
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved.
Definition:
ObjectiveCollection.php:27
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:29
ILIAS\Setup
Definition:
Setup.php:26
ilDatabaseUpdateStepsExecutedObjective
This class attempt to achieve a set of database update steps.
Definition:
class.ilDatabaseUpdateStepsExecutedObjective.php:28
ilDatabaseUpdateStepsMetricsCollectedObjective
Definition:
class.ilDatabaseUpdateStepsMetricsCollectedObjective.php:27
ilGlossaryCollectionMigration
Definition:
class.ilGlossaryCollectionMigration.php:29
ilGlossaryDBUpdateSteps11
Definition:
class.ilGlossaryDBUpdateSteps11.php:22
ilGlossaryDBUpdateSteps
Definition:
class.ilGlossaryDBUpdateSteps.php:22
ilGlossaryDefinitionMigration
Definition:
class.ilGlossaryDefinitionMigration.php:29
ilGlossaryDeleteLOMOfDefinitionsMigration
Definition:
class.ilGlossaryDeleteLOMOfDefinitionsMigration.php:25
ilGlossarySetupAgent
Definition:
class.ilGlossarySetupAgent.php:28
ilGlossarySetupAgent\getInstallObjective
getInstallObjective(?Setup\Config $config=null)
Definition:
class.ilGlossarySetupAgent.php:41
ilGlossarySetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilGlossarySetupAgent.php:56
ilGlossarySetupAgent\hasConfig
hasConfig()
Definition:
class.ilGlossarySetupAgent.php:31
ilGlossarySetupAgent\getMigrations
getMigrations()
Definition:
class.ilGlossarySetupAgent.php:71
ilGlossarySetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilGlossarySetupAgent.php:61
ilGlossarySetupAgent\getUpdateObjective
getUpdateObjective(?Setup\Config $config=null)
Definition:
class.ilGlossarySetupAgent.php:46
ilGlossarySetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilGlossarySetupAgent.php:36
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:35
ILIAS\Setup\Agent
A agent is some component that performs part of the setup process.
Definition:
Agent.php:30
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.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:31
ILIAS\UI\Storage
Storage is simple key/value store without further schema definition.
Definition:
Storage.php:30
ILIAS\Refinery
Definition:
ByTrying.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
components
ILIAS
Glossary
classes
Setup
class.ilGlossarySetupAgent.php
Generated on Sat Oct 18 2025 23:03:08 for ILIAS by
1.9.4 (using
Doxyfile
)