ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.ilMailSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
25use ILIAS\Mail\Setup\Migration\MailOutboxMigration;
26
28{
29 use Setup\Agent\HasNoNamedObjective;
30
31 public function hasConfig(): bool
32 {
33 return false;
34 }
35
37 {
38 throw new LogicException('Agent has no config.');
39 }
40
41 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
42 {
44 'mail',
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,
56 );
57 }
58
60 {
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,
71 );
72 }
73
74 public function getMigrations(): array
75 {
76 return [
77 new MailOutboxMigration()
78 ];
79 }
80}
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...