ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilWOPISetupAgent Class Reference
+ Inheritance diagram for ilWOPISetupAgent:
+ Collaboration diagram for ilWOPISetupAgent:

Public Member Functions

 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array. More...
 
 getInstallObjective (Config $config=null)
 
 getUpdateObjective (Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 getInstallObjective (Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Detailed Description

Member Function Documentation

◆ getArrayToConfigTransformation()

ilWOPISetupAgent::getArrayToConfigTransformation ( )

Agents must be able to tell how to create a configuration from a nested array.

Exceptions
LogicExceptionif Agent has no Config

Implements ILIAS\Setup\Agent.

Definition at line 40 of file class.ilWOPISetupAgent.php.

41  {
42  throw new \BadMethodCallException('Not implemented');
43  }
A transformation is a function from one datatype to another.

◆ getBuildObjective()

ilWOPISetupAgent::getBuildObjective ( )

Get the goal the agent wants to achieve to build artifacts.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent.

Implements ILIAS\Setup\Agent.

Definition at line 62 of file class.ilWOPISetupAgent.php.

62  : Objective
63  {
64  return new NullObjective();
65  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
A non-objective, nothing to do to achieve it...

◆ getInstallObjective()

ilWOPISetupAgent::getInstallObjective ( Config  $config = null)

Definition at line 45 of file class.ilWOPISetupAgent.php.

45  : Objective
46  {
47  return new \ilDatabaseUpdateStepsExecutedObjective(new ilWOPIDB90());
48  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getMigrations()

ilWOPISetupAgent::getMigrations ( )

Get a named map of migrations available for this Agent.

Should also return Migrations that have run completely.

Returns
array<string,Migration>|Migration[]

Implements ILIAS\Setup\Agent.

Definition at line 72 of file class.ilWOPISetupAgent.php.

72  : array
73  {
74  return [];
75  }

◆ getNamedObjectives()

ilWOPISetupAgent::getNamedObjectives ( ?Config  $config = null)

Definition at line 77 of file class.ilWOPISetupAgent.php.

77  : array
78  {
79  return [];
80  }

◆ getStatusObjective()

ilWOPISetupAgent::getStatusObjective ( Storage  $storage)

Definition at line 67 of file class.ilWOPISetupAgent.php.

67  : Objective
68  {
70  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getUpdateObjective()

ilWOPISetupAgent::getUpdateObjective ( Config  $config = null)

Definition at line 50 of file class.ilWOPISetupAgent.php.

50  : Objective
51  {
52  return new ObjectiveCollection(
53  "WOPI Updates",
54  true,
57  );
58 
59  return new \ilDatabaseUpdateStepsExecutedObjective(new ilWOPIDB90());
60  }
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

◆ hasConfig()

ilWOPISetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 35 of file class.ilWOPISetupAgent.php.

35  : bool
36  {
37  return false;
38  }

The documentation for this class was generated from the following file: