ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.ilMailSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
26use ILIAS\Mail\Setup\Migration\MailOutboxMigration;
28
30{
31 use Setup\Agent\HasNoNamedObjective;
32
33 public function hasConfig(): bool
34 {
35 return false;
36 }
37
39 {
40 throw new LogicException('Agent has no config.');
41 }
42
43 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
44 {
46 'mail',
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,
59 );
60 }
61
63 {
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,
75 );
76 }
77
78 public function getMigrations(): array
79 {
80 return [
81 new MailOutboxMigration(),
83 ];
84 }
85}
Migrates mail attachments to the IRSS, the attachments of the most recently sent mails first,...
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
This class attempt to achieve a set of database update steps.
getUpdateObjective(?Setup\Config $config=null)
getInstallObjective(?Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
Storage is simple key/value store without further schema definition.
Definition: Storage.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...