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

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.
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...
 

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemFolderSetupAgent::__construct ( Refinery\Factory  $refinery)

Definition at line 33 of file class.ilSystemFolderSetupAgent.php.

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilSystemFolderSetupAgent::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 50 of file class.ilSystemFolderSetupAgent.php.

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

50  : Refinery\Transformation
51  {
52  return $this->refinery->custom()->transformation(function ($data) {
53  return new \ilSystemFolderSetupConfig(
54  $data["client"]["name"] ?? null,
55  $data["client"]["description"] ?? null,
56  $data["client"]["institution"] ?? null,
57  $data["contact"]["firstname"],
58  $data["contact"]["lastname"],
59  $data["contact"]["title"] ?? null,
60  $data["contact"]["position"] ?? null,
61  $data["contact"]["institution"] ?? null,
62  $data["contact"]["street"] ?? null,
63  $data["contact"]["zipcode"] ?? null,
64  $data["contact"]["city"] ?? null,
65  $data["contact"]["country"] ?? null,
66  $data["contact"]["phone"] ?? null,
67  $data["contact"]["email"],
68  );
69  });
70  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getBuildObjective()

ilSystemFolderSetupAgent::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 94 of file class.ilSystemFolderSetupAgent.php.

94  : Setup\Objective
95  {
96  return new Setup\Objective\NullObjective();
97  }

◆ getInstallObjective()

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

Definition at line 75 of file class.ilSystemFolderSetupAgent.php.

75  : Setup\Objective
76  {
77  return new ilInstallationInformationStoredObjective($config);
78  }
Store information about the installation, like title, description and contact information in the acco...

◆ getMigrations()

ilSystemFolderSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 110 of file class.ilSystemFolderSetupAgent.php.

110  : array
111  {
112  return [];
113  }

◆ getStatusObjective()

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

Definition at line 102 of file class.ilSystemFolderSetupAgent.php.

◆ getUpdateObjective()

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

Definition at line 83 of file class.ilSystemFolderSetupAgent.php.

References null.

83  : Setup\Objective
84  {
85  if ($config !== null) {
86  return new ilInstallationInformationStoredObjective($config);
87  }
88  return new Setup\Objective\NullObjective();
89  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Store information about the installation, like title, description and contact information in the acco...

◆ hasConfig()

ilSystemFolderSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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

42  : bool
43  {
44  return true;
45  }

Field Documentation

◆ $refinery

ilSystemFolderSetupAgent::$refinery
protected

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

Referenced by __construct().


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