ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ 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
}
ilStudyProgrammeSetupAgent\hasConfig
hasConfig()
Definition:
class.ilStudyProgrammeSetupAgent.php:66
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved...
Definition:
ObjectiveCollection.php:26
ilStudyProgrammeSetupAgent\getMigrations
getMigrations()
Definition:
class.ilStudyProgrammeSetupAgent.php:86
LogicException
ILIAS\GlobalScreen_\UI\Footer\Setup\Agent\NullAgent
An agent that just doesn't do a thing.
Definition:
NullAgent.php:34
ilStudyProgrammeSetupAgent
Definition:
class.ilStudyProgrammeSetupAgent.php:30
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
ilMigrateStudyProgrammeCertificateProviderDBUpdateSteps
Definition:
class.ilMigrateStudyProgrammeCertificateProviderDBUpdateSteps.php:23
ilDatabaseUpdateStepsExecutedObjective
ilStudyProgrammeSetupAgent\getStatusObjective
getStatusObjective(Metrics\Storage $storage)
Definition:
class.ilStudyProgrammeSetupAgent.php:49
Config
ilDatabaseUpdateStepsMetricsCollectedObjective
HasNoNamedObjective
Transformation
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:28
ilStudyProgrammeSetupAgent\getInstallObjective
getInstallObjective(Config $config=null)
Definition:
class.ilStudyProgrammeSetupAgent.php:76
ILIAS\Setup\Metrics
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ArrayStorage.php:21
ObjectiveCollection
ilStudyProgrammeSetupAgent\getUpdateObjective
getUpdateObjective(Config $config=null)
Definition:
class.ilStudyProgrammeSetupAgent.php:34
ilStudyProgrammeSetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilStudyProgrammeSetupAgent.php:81
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
ilStudyProgrammeAutoMembershipTableUpdateSteps
Definition:
ilStudyProgrammeAutoMembershipTableUpdateSteps.php:21
HasNoNamedObjective
ilStudyProgrammeSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilStudyProgrammeSetupAgent.php:71
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
NullAgent
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:26
NullObjective
components
ILIAS
StudyProgramme
classes
Setup
class.ilStudyProgrammeSetupAgent.php
Generated on Wed Sep 10 2025 15:16:24 for ILIAS by
1.8.13 (using
Doxyfile
)