ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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,
55 );
56 }
57
58 public function getBuildObjective(): Objective
59 {
60 return new NullObjective();
61 }
62
63 public function getStatusObjective(Storage $storage): Objective
64 {
66 }
67
68 public function getMigrations(): array
69 {
70 return [];
71 }
72
73 public function getNamedObjectives(?Config $config = null): array
74 {
75 return [];
76 }
77
78}
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