ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilStudyProgrammeSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Setup\Config
;
22
use
ILIAS\Setup\Metrics
;
23
use
ILIAS\Setup\Objective
;
24
use
ILIAS\Setup\Agent\NullAgent
;
25
use
ILIAS\Refinery\Transformation
;
26
use
ILIAS\Setup\ObjectiveCollection
;
27
use
ILIAS\Setup\Objective\NullObjective
;
28
use ILIAS\Setup\Agent\HasNoNamedObjective;
29
30
class
ilStudyProgrammeSetupAgent
extends
NullAgent
31
{
32
use HasNoNamedObjective;
33
34
public
function
getUpdateObjective
(?
Config
$config =
null
):
Objective
35
{
36
return
new
ObjectiveCollection
(
37
'Database is updated for component/ILIAS/StudyProgramme'
,
38
false
,
39
// ILIAS 10
40
new
ilDatabaseUpdateStepsExecutedObjective
(
41
new
ilMigrateStudyProgrammeCertificateProviderDBUpdateSteps
()
42
),
43
new
ilDatabaseUpdateStepsExecutedObjective
(
44
new
ilStudyProgrammeAutoMembershipTableUpdateSteps
()
45
),
46
);
47
}
48
49
public
function
getStatusObjective
(Metrics\
Storage
$storage):
Objective
50
{
51
return
new
ObjectiveCollection
(
52
'Database is updated for component/ILIAS/StudyProgramme'
,
53
true
,
54
// ILIAS 10
55
new
ilDatabaseUpdateStepsMetricsCollectedObjective
(
56
$storage,
57
new
ilMigrateStudyProgrammeCertificateProviderDBUpdateSteps
()
58
),
59
new
ilDatabaseUpdateStepsMetricsCollectedObjective
(
60
$storage,
61
new
ilStudyProgrammeAutoMembershipTableUpdateSteps
()
62
),
63
);
64
}
65
66
public
function
hasConfig
(): bool
67
{
68
return
false
;
69
}
70
71
public
function
getArrayToConfigTransformation
():
Transformation
72
{
73
throw
new
LogicException(
'Agent has no config.'
);
74
}
75
76
public
function
getInstallObjective
(?
Config
$config =
null
):
Objective
77
{
78
return
new
NullObjective
();
79
}
80
81
public
function
getBuildObjective
():
Objective
82
{
83
return
new
NullObjective
();
84
}
85
86
public
function
getMigrations
(): array
87
{
88
return
[];
89
}
90
}
ILIAS\Setup\Agent\NullAgent
An agent that just doesn't do a thing.
Definition:
NullAgent.php:35
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
ilDatabaseUpdateStepsExecutedObjective
This class attempt to achieve a set of database update steps.
Definition:
class.ilDatabaseUpdateStepsExecutedObjective.php:28
ilDatabaseUpdateStepsMetricsCollectedObjective
Definition:
class.ilDatabaseUpdateStepsMetricsCollectedObjective.php:27
ilMigrateStudyProgrammeCertificateProviderDBUpdateSteps
Definition:
class.ilMigrateStudyProgrammeCertificateProviderDBUpdateSteps.php:24
ilStudyProgrammeAutoMembershipTableUpdateSteps
Definition:
ilStudyProgrammeAutoMembershipTableUpdateSteps.php:22
ilStudyProgrammeSetupAgent
Definition:
class.ilStudyProgrammeSetupAgent.php:31
ilStudyProgrammeSetupAgent\getInstallObjective
getInstallObjective(?Config $config=null)
@inheritdocs
Definition:
class.ilStudyProgrammeSetupAgent.php:76
ilStudyProgrammeSetupAgent\getUpdateObjective
getUpdateObjective(?Config $config=null)
@inheritdocs
Definition:
class.ilStudyProgrammeSetupAgent.php:34
ilStudyProgrammeSetupAgent\getStatusObjective
getStatusObjective(Metrics\Storage $storage)
@inheritdocs
Definition:
class.ilStudyProgrammeSetupAgent.php:49
ilStudyProgrammeSetupAgent\hasConfig
hasConfig()
@inheritdocs
Definition:
class.ilStudyProgrammeSetupAgent.php:66
ilStudyProgrammeSetupAgent\getBuildObjective
getBuildObjective()
@inheritdocs
Definition:
class.ilStudyProgrammeSetupAgent.php:81
ilStudyProgrammeSetupAgent\getMigrations
getMigrations()
@inheritDoc
Definition:
class.ilStudyProgrammeSetupAgent.php:86
ilStudyProgrammeSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
@inheritdocs
Definition:
class.ilStudyProgrammeSetupAgent.php:71
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:35
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:27
ILIAS\Setup\Metrics\Storage
Definition:
Storage.php:24
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\Setup\Metrics
Definition:
ArrayStorage.php:21
ILIAS\Setup\Objective
Definition:
AdminConfirmedObjective.php:21
components
ILIAS
StudyProgramme
classes
Setup
class.ilStudyProgrammeSetupAgent.php
Generated on Sat Oct 18 2025 23:04:23 for ILIAS by
1.9.4 (using
Doxyfile
)