ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 

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.

References $refinery.

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

Member Function Documentation

◆ getArrayToConfigTransformation()

ilStyleSetupAgent::getArrayToConfigTransformation ( )

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

References $data.

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

◆ getBuildArtifactObjective()

ilStyleSetupAgent::getBuildArtifactObjective ( )

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

◆ getInstallObjective()

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

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

References $config.

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

◆ getMigrations()

ilStyleSetupAgent::getMigrations ( )

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.

81  : Setup\Objective
82  {
83  return new ilStyleMetricsCollectedObjective($storage);
84  }

◆ getUpdateObjective()

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

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

References $config.

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

◆ 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: