ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPreviewSetupAgent Class Reference
+ Inheritance diagram for ilPreviewSetupAgent:
+ Collaboration diagram for ilPreviewSetupAgent:

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 Factory $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilPreviewSetupAgent::__construct ( Refinery\Factory  $refinery)

Definition at line 30 of file class.ilPreviewSetupAgent.php.

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

32  {
33  $this->refinery = $refinery;
34  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilPreviewSetupAgent::getArrayToConfigTransformation ( )

Definition at line 47 of file class.ilPreviewSetupAgent.php.

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

47  : Refinery\Transformation
48  {
49  return $this->refinery->custom()->transformation(fn ($data): \ilPreviewSetupConfig => new \ilPreviewSetupConfig(
50  $data["path_to_ghostscript"] ?? null
51  ));
52  }
+ Here is the call graph for this function:

◆ getBuildArtifactObjective()

ilPreviewSetupAgent::getBuildArtifactObjective ( )

Definition at line 78 of file class.ilPreviewSetupAgent.php.

78  : Setup\Objective
79  {
80  return new Setup\Objective\NullObjective();
81  }

◆ getInstallObjective()

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

PhpParamsInspection

Definition at line 57 of file class.ilPreviewSetupAgent.php.

References $config.

57  : Setup\Objective
58  {
61  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85

◆ getMigrations()

ilPreviewSetupAgent::getMigrations ( )

Definition at line 94 of file class.ilPreviewSetupAgent.php.

94  : array
95  {
96  return [];
97  }

◆ getStatusObjective()

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

Definition at line 86 of file class.ilPreviewSetupAgent.php.

86  : Setup\Objective
87  {
88  return new ilPreviewMetricsCollectedObjective($storage);
89  }

◆ getUpdateObjective()

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

PhpParamsInspection

Definition at line 66 of file class.ilPreviewSetupAgent.php.

References $config.

66  : Setup\Objective
67  {
68  if ($config !== null) {
71  }
72  return new Setup\Objective\NullObjective();
73  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85

◆ hasConfig()

ilPreviewSetupAgent::hasConfig ( )

Definition at line 39 of file class.ilPreviewSetupAgent.php.

39  : bool
40  {
41  return true;
42  }

Field Documentation

◆ $refinery

Refinery Factory ilPreviewSetupAgent::$refinery
protected

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

Referenced by __construct().


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