ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilComponentsSetupAgent Class Reference
+ Inheritance diagram for ilComponentsSetupAgent:
+ Collaboration diagram for ilComponentsSetupAgent:

Public Member Functions

 __construct (protected PublicAssetManager $public_asset_manager, protected array $public_assets)
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array.
Exceptions
LogicExceptionif Agent has no Config
More...
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts.
Exceptions
InvalidArgumentExceptionif Config does not match the Agent.
More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 
- 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 26 of file class.ilComponentsSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilComponentsSetupAgent::__construct ( protected PublicAssetManager  $public_asset_manager,
protected array  $public_assets 
)

Definition at line 30 of file class.ilComponentsSetupAgent.php.

33  {
34  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilComponentsSetupAgent::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 47 of file class.ilComponentsSetupAgent.php.

48  {
49  throw new LogicException(self::class . " has no Config.");
50  }
A transformation is a function from one datatype to another.

◆ getBuildObjective()

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

78  : Setup\Objective
79  {
80  return new Setup\ObjectiveCollection(
81  "Build Objectives of \\ILIAS\\Component",
82  false,
84  "Artifacts for \\ILIAS\\Component",
85  false,
88  ),
90  $this->public_asset_manager,
91  $this->public_assets
92  )
93  );
94  }
A objective collection is a objective that is achieved once all subobjectives are achieved...

◆ getInstallObjective()

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

◆ getMigrations()

ilComponentsSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 107 of file class.ilComponentsSetupAgent.php.

107  : array
108  {
109  return [];
110  }

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

◆ hasConfig()

ilComponentsSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 39 of file class.ilComponentsSetupAgent.php.

39  : bool
40  {
41  return false;
42  }

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