ILIAS  release_8 Revision v8.24
class.ilResourceStorageSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27
33{
34 use Agent\HasNoNamedObjective;
35
36 public function hasConfig(): bool
37 {
38 return false;
39 }
40
42 {
43 throw new \LogicException("Agent has no config.");
44 }
45
47 {
48 return new ObjectiveCollection(
49 'IRSS Installation',
50 false,
54 )
55 );
56 }
57
58 public function getUpdateObjective(Config $config = null): Objective
59 {
60 return new ObjectiveCollection(
61 'IRSS Update',
62 false,
66 )
67 );
68 }
69
71 {
72 return new Objective\NullObjective();
73 }
74
75 public function getStatusObjective(Metrics\Storage $storage): Objective
76 {
77 return new Objective\NullObjective();
78 }
79
83 public function getMigrations(): array
84 {
85 return [new ilStorageHandlerV1Migration()];
86 }
87}
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilResourceStorageSetupAgent.
getInstallObjective(Config $config=null)
Get the goals the agent wants to achieve on setup.
hasConfig()
Does this agent require a configuration?
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getUpdateObjective(Config $config=null)
Get the goal the agent wants to achieve on update.
getBuildArtifactObjective()
Get the goal the agent wants to achieve to build artifacts.
Class ilStorageHandlerV1Migration.
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
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...