ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilFileSystemSetupAgent Class Reference
+ Inheritance diagram for ilFileSystemSetupAgent:
+ Collaboration diagram for ilFileSystemSetupAgent:

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 ()
 

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilFileSystemSetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery.

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

Member Function Documentation

◆ getArrayToConfigTransformation()

ilFileSystemSetupAgent::getArrayToConfigTransformation ( )

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

References $data.

36  : Refinery\Transformation
37  {
38  return $this->refinery->custom()->transformation(function ($data) {
39  return new \ilFileSystemSetupConfig(
40  $data["data_dir"]
41  );
42  });
43  }
$data
Definition: storeScorm.php:23

◆ getBuildArtifactObjective()

ilFileSystemSetupAgent::getBuildArtifactObjective ( )

Definition at line 67 of file class.ilFileSystemSetupAgent.php.

67  : Setup\Objective
68  {
69  return new Setup\Objective\NullObjective();
70  }

◆ getInstallObjective()

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

Definition at line 48 of file class.ilFileSystemSetupAgent.php.

References $config.

48  : Setup\Objective
49  {
51  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

◆ getMigrations()

ilFileSystemSetupAgent::getMigrations ( )

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

83  : array
84  {
85  return [];
86  }

◆ getStatusObjective()

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

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

◆ getUpdateObjective()

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

Definition at line 56 of file class.ilFileSystemSetupAgent.php.

References $config.

56  : Setup\Objective
57  {
58  if ($config) {
60  }
61  return new Setup\Objective\NullObjective();
62  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

◆ hasConfig()

ilFileSystemSetupAgent::hasConfig ( )

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

28  : bool
29  {
30  return true;
31  }

Field Documentation

◆ $refinery

ilFileSystemSetupAgent::$refinery
protected

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

Referenced by __construct().


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