ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.ilWOPISetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
27
31class ilWOPISetupAgent implements Agent
32{
33 public function hasConfig(): bool
34 {
35 return false;
36 }
37
39 {
40 throw new \BadMethodCallException('Not implemented');
41 }
42
43 public function getInstallObjective(?Config $config = null): Objective
44 {
45 return new \ilDatabaseUpdateStepsExecutedObjective(new ilWOPIDB90());
46 }
47
48 public function getUpdateObjective(?Config $config = null): Objective
49 {
50 return new ObjectiveCollection(
51 "WOPI Updates",
52 true,
56 );
57 }
58
59 public function getBuildObjective(): Objective
60 {
61 return new NullObjective();
62 }
63
64 public function getStatusObjective(Storage $storage): Objective
65 {
67 }
68
69 public function getMigrations(): array
70 {
71 return [];
72 }
73
74 public function getNamedObjectives(?Config $config = null): array
75 {
76 return [];
77 }
78
79}
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.
getInstallObjective(?Config $config=null)
Get the goals the agent wants to achieve on setup.
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getMigrations()
Get a named map of migrations available for this Agent.
getUpdateObjective(?Config $config=null)
Get the goal the agent wants to achieve on update.
getStatusObjective(Storage $storage)
hasConfig()
Does this agent require a configuration?
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getNamedObjectives(?Config $config=null)
Gets all named objectives The keys of the returned array are the commands.
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