ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LegacyTableSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Setup;
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 }
45
46 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
47 {
48 return new ObjectiveCollection(
49 'Database is updated for component/ILIAS/Table',
50 true,
52 );
53 }
54
56 {
58 }
59
60 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
61 {
62 return new ObjectiveCollection(
63 'Database is updated for component/ILIAS/Table',
64 true,
66 );
67 }
68
69 public function getMigrations(): array
70 {
71 return [];
72 }
73}
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
getMigrations()
Get a named map of migrations available for this Agent.
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
hasConfig()
Does this agent require a configuration?
This class attempt to achieve a set of database update steps.
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...