ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilADNAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
29
34class ilADNAgent implements Agent
35{
36 public function __construct(protected Factory $refinery)
37 {
38 }
39
40
41 public function hasConfig(): bool
42 {
43 return false;
44 }
45
46
48 {
49 throw new \LogicException("Agent has no config.");
50 }
51
52
53 public function getInstallObjective(?Config $config = null): Objective
54 {
55 return new NullObjective();
56 }
57
58
59 public function getUpdateObjective(?Config $config = null): Objective
60 {
61 return new ObjectiveCollection(
62 "",
63 true,
66 )
67 );
68 }
69
70
71 public function getBuildObjective(): Objective
72 {
73 return new NullObjective();
74 }
75
76
77 public function getStatusObjective(Storage $storage): Objective
78 {
80 }
81
82
83 public function getMigrations(): array
84 {
85 return [];
86 }
87
88 public function getNamedObjectives(?Config $config = null): array
89 {
90 return [];
91 }
92}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
Builds data types.
Definition: Factory.php:36
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
__construct(protected Factory $refinery)
hasConfig()
Does this agent require a configuration?
getNamedObjectives(?Config $config=null)
Gets all named objectives The keys of the returned array are the commands.
getMigrations()
Get a named map of migrations available for this Agent.
getStatusObjective(Storage $storage)
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.
getInstallObjective(?Config $config=null)
Get the goals the agent wants to achieve on setup.
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