ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSystemFolderSetupAgent Class Reference
+ Inheritance diagram for ilSystemFolderSetupAgent:
+ Collaboration diagram for ilSystemFolderSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 @inheritDoc 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 ( )

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

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 }

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

+ Here is the call graph for this function:

◆ getBuildObjective()

ilSystemFolderSetupAgent::getBuildObjective ( )

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 {
78 }
Store information about the installation, like title, description and contact information in the acco...

◆ getMigrations()

ilSystemFolderSetupAgent::getMigrations ( )

@inheritDoc

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

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

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

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

83 : Setup\Objective
84 {
85 if ($config !== null) {
87 }
88 return new Setup\Objective\NullObjective();
89 }

◆ hasConfig()

ilSystemFolderSetupAgent::hasConfig ( )

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: