ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 60 of file class.ilForumSetupAgent.php.

60  : Setup\Objective
61  {
62  return new Setup\Objective\NullObjective();
63  }

◆ 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 75 of file class.ilForumSetupAgent.php.

75  : array
76  {
77  return [];
78  }

◆ getStatusObjective()

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

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

◆ getUpdateObjective()

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

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

46  : Setup\Objective
47  {
48  return new Setup\ObjectiveCollection(
49  'Forum',
50  true,
53  ),
56  )
57  );
58  }

◆ 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: