ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
ilCourseObjectiveSetupAgent.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\Metrics
;
24
use
ILIAS\Setup\Objective
;
25
use
ILIAS\Setup\Agent\NullAgent
;
26
use
ILIAS\Refinery\Transformation
;
27
use
ILIAS\Setup\ObjectiveCollection
;
28
29
class
ilCourseObjectiveSetupAgent
extends
NullAgent
30
{
31
use Setup\Agent\HasNoNamedObjective;
32
33
public
function
getUpdateObjective
(?
Config
$config =
null
):
Objective
34
{
35
return
new
ObjectiveCollection
(
36
'Database is updated for component/ILIAS/Course'
,
37
false
,
38
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilCourseObjectiveDBUpdateSteps
()),
39
);
40
}
41
42
public
function
getStatusObjective
(Metrics\
Storage
$storage):
Objective
43
{
44
return
new
ObjectiveCollection
(
45
'Database is updated for component/ILIAS/Course'
,
46
true
,
47
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilCourseObjectiveDBUpdateSteps
()),
48
);
49
}
50
51
public
function
getArrayToConfigTransformation
():
Transformation
52
{
53
throw
new
LogicException(
'Agent has no config.'
);
54
}
55
56
public
function
getInstallObjective
(?
Config
$config =
null
):
Objective
57
{
58
return
new
Objective\NullObjective
();
59
}
60
61
public
function
getBuildObjective
():
Objective
62
{
63
return
new
Objective\NullObjective
();
64
}
65
}
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
ilCourseObjectiveDBUpdateSteps
Definition:
ilCourseObjectiveDBUpdateSteps.php:22
ilCourseObjectiveSetupAgent
Definition:
ilCourseObjectiveSetupAgent.php:30
ilCourseObjectiveSetupAgent\getBuildObjective
getBuildObjective()
@inheritdocs
Definition:
ilCourseObjectiveSetupAgent.php:61
ilCourseObjectiveSetupAgent\getInstallObjective
getInstallObjective(?Config $config=null)
@inheritdocs
Definition:
ilCourseObjectiveSetupAgent.php:56
ilCourseObjectiveSetupAgent\getStatusObjective
getStatusObjective(Metrics\Storage $storage)
@inheritdocs
Definition:
ilCourseObjectiveSetupAgent.php:42
ilCourseObjectiveSetupAgent\getUpdateObjective
getUpdateObjective(?Config $config=null)
@inheritdocs
Definition:
ilCourseObjectiveSetupAgent.php:33
ilCourseObjectiveSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
@inheritdocs
Definition:
ilCourseObjectiveSetupAgent.php:51
ilDatabaseUpdateStepsExecutedObjective
This class attempt to achieve a set of database update steps.
Definition:
class.ilDatabaseUpdateStepsExecutedObjective.php:28
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
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
Course
classes
Objectives
Setup
ilCourseObjectiveSetupAgent.php
Generated on Sat Oct 18 2025 23:02:53 for ILIAS by
1.9.4 (using
Doxyfile
)