ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilResourceStorageSetupAgent.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
8
14{
15 use Agent\HasNoNamedObjective;
16
17 public function hasConfig() : bool
18 {
19 return false;
20 }
21
23 {
24 throw new \LogicException("Agent has no config.");
25 }
26
27 public function getInstallObjective(Config $config = null) : Objective
28 {
30 }
31
32 public function getUpdateObjective(Config $config = null) : Objective
33 {
35 }
36
38 {
39 return new Objective\NullObjective();
40 }
41
42 public function getStatusObjective(Metrics\Storage $storage) : Objective
43 {
44 return new Objective\NullObjective();
45 }
46
47 public function getMigrations() : array
48 {
49 return [
51 ];
52 }
53}
An exception for terminatinating execution or to throw for unit testing.
A non-objective, nothing to do to achieve it...
Class ilResourceStorageSetupAgent.
getInstallObjective(Config $config=null)
Get the goals the agent wants to achieve on setup.
getMigrations()
Get a named map of migrations available for this Agent.
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:14
A configuration for the setup.
Definition: Config.php:11
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:15
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68