ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
class.ilLearningSequenceSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Setup
;
22
use
ILIAS\Refinery
;
23
24
class
ilLearningSequenceSetupAgent
implements
Setup\Agent
25
{
26
use
Setup\Agent\HasNoNamedObjective
;
27
31
public
function
hasConfig
(): bool
32
{
33
return
false
;
34
}
35
39
public
function
getArrayToConfigTransformation
():
Refinery
\
Transformation
40
{
41
throw
new \LogicException(
"Agent has no config."
);
42
}
43
47
public
function
getInstallObjective
(Setup\
Config
$config = null): Setup\
Objective
48
{
49
return
new
ilFileSystemComponentDataDirectoryCreatedObjective
(
50
ilLearningSequenceFilesystem::PATH_PRE
,
51
ilFileSystemComponentDataDirectoryCreatedObjective::WEBDIR
52
);
53
}
54
58
public
function
getUpdateObjective
(Setup\
Config
$config = null): Setup\
Objective
59
{
60
return
new
Setup\ObjectiveCollection(
61
'Database is updated for Module/LearningSequence'
,
62
false
,
63
new
ilDatabaseUpdateStepsExecutedObjective
(
64
new
ilLearningSequenceRectifyPostConditionsTableDBUpdateSteps
()
65
),
66
new
ilDatabaseUpdateStepsExecutedObjective
(
67
new
ilLearningSequenceRegisterNotificationType
()
68
)
69
);
70
}
71
75
public
function
getBuildArtifactObjective
(): Setup\
Objective
76
{
77
return
new
Setup\Objective\NullObjective();
78
}
79
83
public
function
getStatusObjective
(Setup\Metrics\Storage $storage): Setup\
Objective
84
{
85
return
new
Setup\ObjectiveCollection(
86
'Component LearningSequence'
,
87
true
,
88
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilLearningSequenceRectifyPostConditionsTableDBUpdateSteps
()),
89
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilLearningSequenceRegisterNotificationType
())
90
);
91
}
92
96
public
function
getMigrations
(): array
97
{
98
return
[];
99
}
100
}
ilLearningSequenceSetupAgent\getBuildArtifactObjective
getBuildArtifactObjective()
Definition:
class.ilLearningSequenceSetupAgent.php:75
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\Refinery
Definition:
ByTrying.php:21
ilLearningSequenceSetupAgent
Definition:
class.ilLearningSequenceSetupAgent.php:24
ilDatabaseUpdateStepsExecutedObjective
ilDatabaseUpdateStepsMetricsCollectedObjective
ilLearningSequenceSetupAgent\getUpdateObjective
getUpdateObjective(Setup\Config $config=null)
Definition:
class.ilLearningSequenceSetupAgent.php:58
ilLearningSequenceRegisterNotificationType
Definition:
class.ilLearningSequenceRegisterNotificationType.php:21
ilFileSystemComponentDataDirectoryCreatedObjective\WEBDIR
const WEBDIR
Definition:
class.ilFileSystemComponentDataDirectoryCreatedObjective.php:24
ilLearningSequenceFilesystem\PATH_PRE
const PATH_PRE
Definition:
class.ilLearningSequenceFilesystem.php:28
ilLearningSequenceSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilLearningSequenceSetupAgent.php:83
Factory
ilLearningSequenceSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilLearningSequenceSetupAgent.php:39
ilLearningSequenceSetupAgent\getMigrations
getMigrations()
Definition:
class.ilLearningSequenceSetupAgent.php:96
ilFileSystemComponentDataDirectoryCreatedObjective
Definition:
class.ilFileSystemComponentDataDirectoryCreatedObjective.php:21
ilLearningSequenceRectifyPostConditionsTableDBUpdateSteps
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilLearningSequenceRectifyPostConditionsTableDBUpdateSteps.php:19
ilLearningSequenceSetupAgent\getInstallObjective
getInstallObjective(Setup\Config $config=null)
Definition:
class.ilLearningSequenceSetupAgent.php:47
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
ilLearningSequenceSetupAgent\hasConfig
hasConfig()
Definition:
class.ilLearningSequenceSetupAgent.php:31
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
HasNoNamedObjective
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:26
Modules
LearningSequence
classes
Setup
class.ilLearningSequenceSetupAgent.php
Generated on Wed Sep 10 2025 14:10:56 for ILIAS by
1.8.13 (using
Doxyfile
)