ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
ilCourseSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Setup\Agent\NullAgent
;
22
use
ILIAS\Setup\Objective
;
23
use
ILIAS\Setup\Metrics
;
24
use
ILIAS\Setup\Config
;
25
use
ILIAS\Setup
;
26
use
ILIAS\Refinery\Transformation
;
27
28
class
ilCourseSetupAgent
extends
NullAgent
29
{
30
use Setup\Agent\HasNoNamedObjective;
31
32
public
function
getUpdateObjective
(?
ILIAS
\
Setup
\
Config
$config =
null
):
Objective
33
{
34
return
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilCourseDBUpdateSteps
());
35
}
36
37
public
function
getStatusObjective
(Metrics\
Storage
$storage):
Objective
38
{
39
return
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilCourseDBUpdateSteps
());
40
}
41
42
public
function
getArrayToConfigTransformation
():
Transformation
43
{
44
throw
new \LogicException(
"Agent has no config."
);
45
}
46
47
public
function
getInstallObjective
(?
Config
$config =
null
):
Objective
48
{
49
return
new
Setup\Objective\NullObjective
();
50
}
51
52
public
function
getBuildObjective
():
Objective
53
{
54
return
new
Setup\Objective\NullObjective
();
55
}
56
}
ILIAS\Setup\Agent\NullAgent
An agent that just doesn't do a thing.
Definition:
NullAgent.php:35
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:29
ILIAS\Setup
Definition:
Setup.php:26
ilCourseDBUpdateSteps
Definition:
ilCourseDBUpdateSteps.php:22
ilCourseSetupAgent
Definition:
ilCourseSetupAgent.php:29
ilCourseSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
@inheritdocs
Definition:
ilCourseSetupAgent.php:42
ilCourseSetupAgent\getUpdateObjective
getUpdateObjective(?ILIAS\Setup\Config $config=null)
Definition:
ilCourseSetupAgent.php:32
ilCourseSetupAgent\getBuildObjective
getBuildObjective()
@inheritdocs
Definition:
ilCourseSetupAgent.php:52
ilCourseSetupAgent\getInstallObjective
getInstallObjective(?Config $config=null)
@inheritdocs
Definition:
ilCourseSetupAgent.php:47
ilCourseSetupAgent\getStatusObjective
getStatusObjective(Metrics\Storage $storage)
@inheritdocs
Definition:
ilCourseSetupAgent.php:37
ilDatabaseUpdateStepsExecutedObjective
This class attempt to achieve a set of database update steps.
Definition:
class.ilDatabaseUpdateStepsExecutedObjective.php:28
ilDatabaseUpdateStepsMetricsCollectedObjective
Definition:
class.ilDatabaseUpdateStepsMetricsCollectedObjective.php:27
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
ILIAS
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
components
ILIAS
Course
Setup
ilCourseSetupAgent.php
Generated on Sat Oct 18 2025 23:02:53 for ILIAS by
1.9.4 (using
Doxyfile
)