ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilResourceStorageSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup\Agent\HasNoNamedObjective;
28
34{
35 use HasNoNamedObjective;
36
37 public function hasConfig(): bool
38 {
39 return false;
40 }
41
43 {
44 throw new \LogicException("Agent has no config.");
45 }
46
47 public function getInstallObjective(?Config $config = null): Objective
48 {
49 return new ObjectiveCollection(
50 'IRSS Installation',
51 false,
55 )
56 );
57 }
58
59 public function getUpdateObjective(?Config $config = null): Objective
60 {
61 return new ObjectiveCollection(
62 'IRSS Update',
63 false,
67 ),
70 )
71 );
72 }
73
74 public function getBuildObjective(): Objective
75 {
77 }
78
79 public function getStatusObjective(Storage $storage): Objective
80 {
81 return new ObjectiveCollection(
82 'Component ResourceStorage',
83 true,
86 );
87 }
88
92 public function getMigrations(): array
93 {
94 return [];
95 }
96}
A objective collection is a objective that is achieved once all subobjectives are achieved.
This class attempt to achieve a set of database update steps.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilResourceStorageDB90.
Class ilResourceStorageSetupAgent.
hasConfig()
Does this agent require a configuration?
getUpdateObjective(?Config $config=null)
Get the goal the agent wants to achieve on update.
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.
getInstallObjective(?Config $config=null)
Get the goals the agent wants to achieve on setup.
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