ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilContentPageSetupAgent Class Reference

Class ilContentPageSetupAgent. More...

+ Inheritance diagram for ilContentPageSetupAgent:
+ Collaboration diagram for ilContentPageSetupAgent:

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

Member Function Documentation

◆ getArrayToConfigTransformation()

ilContentPageSetupAgent::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 37 of file class.ilContentPageSetupAgent.php.

37  : Refinery\Transformation
38  {
39  throw new LogicException('Agent has no config.');
40  }

◆ getBuildObjective()

ilContentPageSetupAgent::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 52 of file class.ilContentPageSetupAgent.php.

52  : Setup\Objective
53  {
54  return new Setup\Objective\NullObjective();
55  }

◆ getInstallObjective()

ilContentPageSetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 42 of file class.ilContentPageSetupAgent.php.

42  : Setup\Objective
43  {
44  return new Setup\Objective\NullObjective();
45  }

◆ getMigrations()

ilContentPageSetupAgent::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 62 of file class.ilContentPageSetupAgent.php.

62  : array
63  {
64  return [];
65  }

◆ getStatusObjective()

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

Definition at line 57 of file class.ilContentPageSetupAgent.php.

57  : Setup\Objective
58  {
60  }
Class ilContentPageUpdateSteps.

◆ getUpdateObjective()

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

Definition at line 47 of file class.ilContentPageSetupAgent.php.

47  : Setup\Objective
48  {
50  }
Class ilContentPageUpdateSteps.

◆ hasConfig()

ilContentPageSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 32 of file class.ilContentPageSetupAgent.php.

32  : bool
33  {
34  return false;
35  }

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