ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilWOPISetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
29 
33 class ilWOPISetupAgent implements Agent
34 {
35  public function hasConfig(): bool
36  {
37  return false;
38  }
39 
41  {
42  throw new \BadMethodCallException('Not implemented');
43  }
44 
45  public function getInstallObjective(Config $config = null): Objective
46  {
47  return new \ilDatabaseUpdateStepsExecutedObjective(new ilWOPIDB90());
48  }
49 
50  public function getUpdateObjective(Config $config = null): Objective
51  {
52  return new ObjectiveCollection(
53  "WOPI Updates",
54  true,
57  );
58 
59  return new \ilDatabaseUpdateStepsExecutedObjective(new ilWOPIDB90());
60  }
61 
62  public function getBuildObjective(): Objective
63  {
64  return new NullObjective();
65  }
66 
67  public function getStatusObjective(Storage $storage): Objective
68  {
70  }
71 
72  public function getMigrations(): array
73  {
74  return [];
75  }
76 
77  public function getNamedObjectives(?Config $config = null): array
78  {
79  return [];
80  }
81 
82 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
hasConfig()
Does this agent require a configuration?
A non-objective, nothing to do to achieve it...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getInstallObjective(Config $config=null)
getUpdateObjective(Config $config=null)
getStatusObjective(Storage $storage)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A transformation is a function from one datatype to another.
getMigrations()
Get a named map of migrations available for this Agent.
A configuration for the setup.
Definition: Config.php:26
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getNamedObjectives(?Config $config=null)