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

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 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...
 
 getNamedObjectives (?Setup\Config $config=null)
 
- 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...
 

Protected Attributes

ILIAS Refinery Factory $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilOrgUnitSetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery, and ILIAS\Repository\refinery().

30  {
31  $this->refinery = $refinery;
32  }
ILIAS Refinery Factory $refinery
+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilOrgUnitSetupAgent::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 39 of file class.ilOrgUnitSetupAgent.php.

39  : Refinery\Transformation
40  {
41  throw new LogicException("Agent has no config");
42  }

◆ getBuildObjective()

ilOrgUnitSetupAgent::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 54 of file class.ilOrgUnitSetupAgent.php.

54  : Setup\Objective
55  {
56  return new Setup\Objective\NullObjective();
57  }

◆ getInstallObjective()

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

Definition at line 44 of file class.ilOrgUnitSetupAgent.php.

44  : Setup\Objective
45  {
46  return new Setup\Objective\NullObjective();
47  }

◆ getMigrations()

ilOrgUnitSetupAgent::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 64 of file class.ilOrgUnitSetupAgent.php.

64  : array
65  {
66  return [];
67  }

◆ getNamedObjectives()

ilOrgUnitSetupAgent::getNamedObjectives ( ?Setup\Config  $config = null)

Definition at line 69 of file class.ilOrgUnitSetupAgent.php.

69  : array
70  {
71  return [
72  'removeDeletedUsersFromOrgUnits' => new Setup\ObjectiveConstructor(
73  'clean assignments of deleted users',
75  )
76  ];
77  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getStatusObjective()

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

Definition at line 59 of file class.ilOrgUnitSetupAgent.php.

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

◆ getUpdateObjective()

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

Definition at line 49 of file class.ilOrgUnitSetupAgent.php.

49  : Setup\Objective
50  {
51  return new Setup\Objective\NullObjective();
52  }

◆ hasConfig()

ilOrgUnitSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 34 of file class.ilOrgUnitSetupAgent.php.

34  : bool
35  {
36  return false;
37  }

Field Documentation

◆ $refinery

ILIAS Refinery Factory ilOrgUnitSetupAgent::$refinery
protected

Definition at line 26 of file class.ilOrgUnitSetupAgent.php.

Referenced by __construct().


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