ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 @inheritDoc More...
 

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemFolderSetupAgent::__construct ( Refinery\Factory  $refinery)

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

21 {
22 $this->refinery = $refinery;
23 }

References $refinery.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilSystemFolderSetupAgent::getArrayToConfigTransformation ( )

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

36 : Refinery\Transformation
37 {
38 return $this->refinery->custom()->transformation(function ($data) {
39 return new \ilSystemFolderSetupConfig(
40 $data["client"]["name"] ?? null,
41 $data["client"]["description"] ?? null,
42 $data["client"]["institution"] ?? null,
43 $data["contact"]["firstname"],
44 $data["contact"]["lastname"],
45 $data["contact"]["title"] ?? null,
46 $data["contact"]["position"] ?? null,
47 $data["contact"]["institution"] ?? null,
48 $data["contact"]["street"] ?? null,
49 $data["contact"]["zipcode"] ?? null,
50 $data["contact"]["city"] ?? null,
51 $data["contact"]["country"] ?? null,
52 $data["contact"]["phone"] ?? null,
53 $data["contact"]["email"],
54 );
55 });
56 }
$data
Definition: storeScorm.php:23

References $data.

◆ getBuildArtifactObjective()

ilSystemFolderSetupAgent::getBuildArtifactObjective ( )

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

80 : Setup\Objective
81 {
82 return new Setup\Objective\NullObjective();
83 }

◆ getInstallObjective()

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

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

61 : Setup\Objective
62 {
64 }
Store information about the installation, like title, description and contact information in the acco...
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

References $config.

◆ getMigrations()

ilSystemFolderSetupAgent::getMigrations ( )

@inheritDoc

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

96 : array
97 {
98 return [];
99 }

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

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

69 : Setup\Objective
70 {
71 if ($config !== null) {
73 }
74 return new Setup\Objective\NullObjective();
75 }

References $config.

◆ hasConfig()

ilSystemFolderSetupAgent::hasConfig ( )

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

28 : bool
29 {
30 return true;
31 }

Field Documentation

◆ $refinery

ilSystemFolderSetupAgent::$refinery
protected

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

Referenced by __construct().


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