ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
◀ ilDoc Overview
class.ilMailSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Setup
;
22
use
ILIAS\Refinery
;
23
use
ILIAS\Setup\ObjectiveCollection
;
24
use
ILIAS\Mail\Setup\MailDBUpdateSteps11
;
25
use ILIAS\Mail\Setup\Migration\MailOutboxMigration;
26
27
class
ilMailSetupAgent
implements
Setup\Agent
28
{
29
use Setup\Agent\HasNoNamedObjective;
30
31
public
function
hasConfig
(): bool
32
{
33
return
false
;
34
}
35
36
public
function
getArrayToConfigTransformation
():
Refinery
\
Transformation
37
{
38
throw
new
LogicException(
'Agent has no config.'
);
39
}
40
41
public
function
getInstallObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
42
{
43
return
new
ilFileSystemComponentDataDirectoryCreatedObjective
(
44
'mail'
,
45
ilFileSystemComponentDataDirectoryCreatedObjective::DATADIR
46
);
47
}
48
49
public
function
getUpdateObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
50
{
51
return
new
ObjectiveCollection
(
52
'Database is updated for component/ILIAS/Mail'
,
53
true
,
54
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilMailDatabaseUpdateSteps
()),
55
new
ilDatabaseUpdateStepsExecutedObjective
(
new
MailDBUpdateSteps11
()),
56
);
57
}
58
59
public
function
getBuildObjective
():
Setup
\
Objective
60
{
61
return
new
Setup\Objective\NullObjective
();
62
}
63
64
public
function
getStatusObjective
(
Setup
\Metrics\
Storage
$storage):
Setup
\
Objective
65
{
66
return
new
ObjectiveCollection
(
67
'Database is updated for component/ILIAS/Certificate'
,
68
true
,
69
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilMailDatabaseUpdateSteps
()),
70
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
MailDBUpdateSteps11
()),
71
);
72
}
73
74
public
function
getMigrations
(): array
75
{
76
return
[
77
new
MailOutboxMigration()
78
];
79
}
80
}
ILIAS\Mail\Setup\MailDBUpdateSteps11
Definition:
MailDBUpdateSteps11.php:28
ILIAS\Refinery
Definition:
Refinery.php:24
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
ILIAS\Setup
Definition:
Setup.php:26
ilDatabaseUpdateStepsExecutedObjective
This class attempt to achieve a set of database update steps.
Definition:
class.ilDatabaseUpdateStepsExecutedObjective.php:28
ilDatabaseUpdateStepsMetricsCollectedObjective
Definition:
class.ilDatabaseUpdateStepsMetricsCollectedObjective.php:27
ilFileSystemComponentDataDirectoryCreatedObjective
Definition:
class.ilFileSystemComponentDataDirectoryCreatedObjective.php:25
ilFileSystemComponentDataDirectoryCreatedObjective\DATADIR
const DATADIR
Definition:
class.ilFileSystemComponentDataDirectoryCreatedObjective.php:26
ilMailDatabaseUpdateSteps
Definition:
class.ilMailDatabaseUpdateSteps.php:22
ilMailSetupAgent
Definition:
class.ilMailSetupAgent.php:28
ilMailSetupAgent\getMigrations
getMigrations()
Definition:
class.ilMailSetupAgent.php:74
ilMailSetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilMailSetupAgent.php:59
ilMailSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilMailSetupAgent.php:36
ilMailSetupAgent\getUpdateObjective
getUpdateObjective(?Setup\Config $config=null)
Definition:
class.ilMailSetupAgent.php:49
ilMailSetupAgent\getInstallObjective
getInstallObjective(?Setup\Config $config=null)
Definition:
class.ilMailSetupAgent.php:41
ilMailSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilMailSetupAgent.php:64
ilMailSetupAgent\hasConfig
hasConfig()
Definition:
class.ilMailSetupAgent.php:31
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:35
ILIAS\Setup\Agent
A agent is some component that performs part of the setup process.
Definition:
Agent.php:30
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:27
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\UI\Storage
Storage is simple key/value store without further schema definition.
Definition:
Storage.php:30
ILIAS\Refinery
Definition:
ByTrying.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
Mail
classes
Setup
class.ilMailSetupAgent.php
Generated on Sat Dec 13 2025 23:02:40 for ILIAS by
1.9.4 (using
Doxyfile
)