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

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 (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
- 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

Definition at line 24 of file class.ilForumSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilForumSetupAgent::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 33 of file class.ilForumSetupAgent.php.

33  : Refinery\Transformation
34  {
35  throw new LogicException("Agent has no config.");
36  }

◆ getBuildObjective()

ilForumSetupAgent::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 63 of file class.ilForumSetupAgent.php.

63  : Setup\Objective
64  {
65  return new Setup\Objective\NullObjective();
66  }

◆ getInstallObjective()

◆ getMigrations()

ilForumSetupAgent::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 78 of file class.ilForumSetupAgent.php.

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

◆ getStatusObjective()

ilForumSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 68 of file class.ilForumSetupAgent.php.

◆ getUpdateObjective()

ilForumSetupAgent::getUpdateObjective ( Setup\Config  $config = null)

◆ hasConfig()

ilForumSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 28 of file class.ilForumSetupAgent.php.

28  : bool
29  {
30  return false;
31  }

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