ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
Agent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Export\HTML\Setup
;
22
23
use
ilDatabaseUpdateStepsExecutedObjective
;
24
use
ilDatabaseUpdateStepsMetricsCollectedObjective
;
25
use
ILIAS\Setup\Agent\NullAgent
;
26
use
ILIAS\Setup\ObjectiveCollection
;
27
use
ILIAS\Setup\Objective
;
28
use
ILIAS\Setup\Config
;
29
use
ILIAS\Setup\Metrics\Storage
;
30
use ILIAS\Export\Setup\FilesToIRSSMigration as ilExportSetupFilesToIRSSMigration;
31
use
ILIAS\Export\Setup\BuildExportOptionsMapObjective
as ilExportSetupBuildOptionsMapObjective;
32
33
class
Agent
extends
NullAgent
34
{
35
public
function
getUpdateObjective
(?
Config
$config =
null
):
Objective
36
{
37
return
new
ObjectiveCollection
(
38
"HTML Export"
,
39
false
,
40
new
ilDatabaseUpdateStepsExecutedObjective
(
new
DBHTMLExportUpdateSteps
())
41
);
42
}
43
44
public
function
getStatusObjective
(
Storage
$storage):
Objective
45
{
46
return
new
ObjectiveCollection
(
47
'Component HTML Export'
,
48
true
,
49
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
DBHTMLExportUpdateSteps
())
50
);
51
}
52
53
public
function
getMigrations
(): array
54
{
55
return
[];
56
}
57
}
ILIAS\Export\HTML\Setup\Agent
Definition:
Agent.php:34
ILIAS\Export\HTML\Setup\Agent\getStatusObjective
getStatusObjective(Storage $storage)
Definition:
Agent.php:44
ILIAS\Export\HTML\Setup\Agent\getMigrations
getMigrations()
@inheritDoc
Definition:
Agent.php:53
ILIAS\Export\HTML\Setup\Agent\getUpdateObjective
getUpdateObjective(?Config $config=null)
@inheritdocs
Definition:
Agent.php:35
ILIAS\Export\HTML\Setup\DBHTMLExportUpdateSteps
Definition:
DBHTMLExportUpdateSteps.php:28
ILIAS\Export\Setup\BuildExportOptionsMapObjective
Definition:
BuildExportOptionsMapObjective.php:31
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
ilDatabaseUpdateStepsExecutedObjective
This class attempt to achieve a set of database update steps.
Definition:
class.ilDatabaseUpdateStepsExecutedObjective.php:28
ilDatabaseUpdateStepsMetricsCollectedObjective
Definition:
class.ilDatabaseUpdateStepsMetricsCollectedObjective.php:27
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\Export\HTML\Setup
Definition:
Agent.php:21
ILIAS\Setup\Objective
Definition:
AdminConfirmedObjective.php:21
components
ILIAS
Export
HTML
Setup
Agent.php
Generated on Sat Oct 18 2025 23:05:02 for ILIAS by
1.9.4 (using
Doxyfile
)