ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 27 of file class.ilComponentsSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

34  {
35  }

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

49  {
50  throw new LogicException(self::class . " has no Config.");
51  }
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 79 of file class.ilComponentsSetupAgent.php.

79  : Setup\Objective
80  {
81  return new Setup\ObjectiveCollection(
82  "Build Objectives of \\ILIAS\\Component",
83  false,
85  "Artifacts for \\ILIAS\\Component",
86  false,
89  ),
91  $this->public_asset_manager,
92  $this->public_assets
93  )
94  );
95  }
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 108 of file class.ilComponentsSetupAgent.php.

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

◆ 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 40 of file class.ilComponentsSetupAgent.php.

40  : bool
41  {
42  return false;
43  }

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