ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Agent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26use ILIAS\Setup;
30
34class Agent implements Setup\Agent
35{
36 public function getBuildObjective(): Objective
37 {
38 return new NullObjective();
39 }
40
41 public function getNamedObjectives(?Config $config = null): array
42 {
43 return [];
44 }
45
46 public function hasConfig(): bool
47 {
48 return false;
49 }
50
52 {
53 throw new LogicException("No Config");
54 }
55
56 public function getInstallObjective(?Config $config = null): Objective
57 {
58 return new ObjectiveCollection(
59 'FileDelivery',
60 true,
64 );
65 }
66
67 public function getUpdateObjective(?Config $config = null): Objective
68 {
69 return new ObjectiveCollection(
70 'FileDelivery',
71 true,
75 );
76 }
77
78 public function getStatusObjective(Storage $storage): Objective
79 {
80 return new NullObjective();
81 }
82
83 public function getMigrations(): array
84 {
85 return [];
86 }
87}
getStatusObjective(Storage $storage)
Definition: Agent.php:78
getUpdateObjective(?Config $config=null)
Get the goal the agent wants to achieve on update.
Definition: Agent.php:67
hasConfig()
Does this agent require a configuration?
Definition: Agent.php:46
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
Definition: Agent.php:36
getMigrations()
Get a named map of migrations available for this Agent.
Definition: Agent.php:83
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
Definition: Agent.php:51
getNamedObjectives(?Config $config=null)
Gets all named objectives The keys of the returned array are the commands.
Definition: Agent.php:41
getInstallObjective(?Config $config=null)
Get the goals the agent wants to achieve on setup.
Definition: Agent.php:56
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
A transformation is a function from one datatype to another.
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...