ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ 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\Database\V12\MailDBUpdateSteps12
;
26
use ILIAS\Mail\Setup\Migration\MailOutboxMigration;
27
use
ILIAS\Mail\Setup\Migration\MigrateMailAttachmentsToIRSS
;
28
29
class
ilMailSetupAgent
implements
Setup\Agent
30
{
31
use Setup\Agent\HasNoNamedObjective;
32
33
public
function
hasConfig
(): bool
34
{
35
return
false
;
36
}
37
38
public
function
getArrayToConfigTransformation
():
Refinery
\
Transformation
39
{
40
throw
new
LogicException(
'Agent has no config.'
);
41
}
42
43
public
function
getInstallObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
44
{
45
return
new
ilFileSystemComponentDataDirectoryCreatedObjective
(
46
'mail'
,
47
ilFileSystemComponentDataDirectoryCreatedObjective::DATADIR
48
);
49
}
50
51
public
function
getUpdateObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
52
{
53
return
new
ObjectiveCollection
(
54
'Database is updated for component/ILIAS/Mail'
,
55
true
,
56
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilMailDatabaseUpdateSteps
()),
57
new
ilDatabaseUpdateStepsExecutedObjective
(
new
MailDBUpdateSteps11
()),
58
new
ilDatabaseUpdateStepsExecutedObjective
(
new
MailDBUpdateSteps12
()),
59
);
60
}
61
62
public
function
getBuildObjective
():
Setup
\
Objective
63
{
64
return
new
Setup\Objective\NullObjective
();
65
}
66
67
public
function
getStatusObjective
(
Setup
\Metrics\
Storage
$storage):
Setup
\
Objective
68
{
69
return
new
ObjectiveCollection
(
70
'Database is updated for component/ILIAS/Certificate'
,
71
true
,
72
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilMailDatabaseUpdateSteps
()),
73
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
MailDBUpdateSteps11
()),
74
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
MailDBUpdateSteps12
()),
75
);
76
}
77
78
public
function
getMigrations
(): array
79
{
80
return
[
81
new
MailOutboxMigration(),
82
new
MigrateMailAttachmentsToIRSS
(),
83
];
84
}
85
}
ILIAS\Mail\Setup\Database\V12\MailDBUpdateSteps12
Definition:
MailDBUpdateSteps12.php:29
ILIAS\Mail\Setup\MailDBUpdateSteps11
Definition:
MailDBUpdateSteps11.php:28
ILIAS\Mail\Setup\Migration\MigrateMailAttachmentsToIRSS
Migrates mail attachments to the IRSS, the attachments of the most recently sent mails first,...
Definition:
MigrateMailAttachmentsToIRSS.php:42
ILIAS\Refinery
Definition:
Refinery.php:27
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:
ilDatabaseUpdateStepsExecutedObjective.php:28
ilDatabaseUpdateStepsMetricsCollectedObjective
Definition:
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:30
ilMailSetupAgent\getMigrations
getMigrations()
Definition:
class.ilMailSetupAgent.php:78
ilMailSetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilMailSetupAgent.php:62
ilMailSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilMailSetupAgent.php:38
ilMailSetupAgent\getUpdateObjective
getUpdateObjective(?Setup\Config $config=null)
Definition:
class.ilMailSetupAgent.php:51
ilMailSetupAgent\getInstallObjective
getInstallObjective(?Setup\Config $config=null)
Definition:
class.ilMailSetupAgent.php:43
ilMailSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilMailSetupAgent.php:67
ilMailSetupAgent\hasConfig
hasConfig()
Definition:
class.ilMailSetupAgent.php:33
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:
ilMysqlMyIsamToInnoDbMigration.php:19
components
ILIAS
Mail
classes
Setup
class.ilMailSetupAgent.php
Generated on Wed Nov 11 2026 23:08:09 for ILIAS by
1.9.4 (using
Doxyfile
)