ILIAS  release_7 Revision v7.30-3-g800a261c036
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 ()
 @inheritDoc More...
 

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilPreviewSetupAgent::__construct ( Refinery\Factory  $refinery)

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

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

References $refinery.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilPreviewSetupAgent::getArrayToConfigTransformation ( )

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

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

References $data.

◆ getBuildArtifactObjective()

ilPreviewSetupAgent::getBuildArtifactObjective ( )

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

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

◆ getInstallObjective()

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

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

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

References $config.

◆ getMigrations()

ilPreviewSetupAgent::getMigrations ( )

@inheritDoc

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

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

◆ getStatusObjective()

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

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

◆ getUpdateObjective()

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

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

56 : Setup\Objective
57 {
58 if ($config !== null) {
60 }
61 return new Setup\Objective\NullObjective();
62 }

References $config.

◆ hasConfig()

ilPreviewSetupAgent::hasConfig ( )

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

28 : bool
29 {
30 return true;
31 }

Field Documentation

◆ $refinery

ilPreviewSetupAgent::$refinery
protected

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

Referenced by __construct().


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