ILIAS  release_7 Revision v7.30-3-g800a261c036
ilStyleSetupAgent Class Reference
+ Inheritance diagram for ilStyleSetupAgent:
+ Collaboration diagram for ilStyleSetupAgent:

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.ilStyleSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilStyleSetupAgent::__construct ( Refinery\Factory  $refinery)

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

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

References $refinery.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilStyleSetupAgent::getArrayToConfigTransformation ( )

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

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

References $data.

◆ getBuildArtifactObjective()

ilStyleSetupAgent::getBuildArtifactObjective ( )

◆ getInstallObjective()

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

Definition at line 49 of file class.ilStyleSetupAgent.php.

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

References $config.

◆ getMigrations()

ilStyleSetupAgent::getMigrations ( )

@inheritDoc

Definition at line 89 of file class.ilStyleSetupAgent.php.

89 : array
90 {
91 return [];
92 }

◆ getStatusObjective()

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

Definition at line 81 of file class.ilStyleSetupAgent.php.

◆ getUpdateObjective()

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

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

57 : Setup\Objective
58 {
59 if ($config !== null) {
60 return new Setup\ObjectiveCollection(
61 "Style update objectives",
62 true,
65 );
66 }
68 }

References $config.

◆ hasConfig()

ilStyleSetupAgent::hasConfig ( )

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

28 : bool
29 {
30 return true;
31 }

Field Documentation

◆ $refinery

ilStyleSetupAgent::$refinery
protected

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

Referenced by __construct().


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