ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilWOPISetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
27 
31 class 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  return new \ilDatabaseUpdateStepsExecutedObjective(new ilWOPIDB90());
58  }
59 
60  public function getBuildObjective(): Objective
61  {
62  return new NullObjective();
63  }
64 
65  public function getStatusObjective(Storage $storage): Objective
66  {
68  }
69 
70  public function getMigrations(): array
71  {
72  return [];
73  }
74 
75  public function getNamedObjectives(?Config $config = null): array
76  {
77  return [];
78  }
79 
80 }
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...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getStatusObjective(Storage $storage)
getUpdateObjective(?Config $config=null)
A transformation is a function from one datatype to another.
getInstallObjective(?Config $config=null)
getMigrations()
Get a named map of migrations available for this Agent.
A configuration for the setup.
Definition: Config.php:26
getNamedObjectives(?Config $config=null)