ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
 getBuildObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 @inheritDoc More...
 
 getNamedObjectives (?Setup\Config $config=null)
 

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilStyleSetupAgent::__construct ( Refinery\Factory  $refinery)

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

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilStyleSetupAgent::getArrayToConfigTransformation ( )

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

50 : Refinery\Transformation
51 {
52 return $this->refinery->custom()->transformation(function ($data) {
53 return new \ilStyleSetupConfig(
54 $data["manage_system_styles"] ?? false,
55 $data["path_to_scss"] ?? null
56 );
57 });
58 }

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

+ Here is the call graph for this function:

◆ getBuildObjective()

ilStyleSetupAgent::getBuildObjective ( )

◆ getInstallObjective()

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

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

63 : Setup\Objective
64 {
65 return new ilStyleConfigStoredObjective($config);
66 }

◆ getMigrations()

ilStyleSetupAgent::getMigrations ( )

@inheritDoc

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

98 : array
99 {
100 return [
102 ];
103 }

◆ getNamedObjectives()

ilStyleSetupAgent::getNamedObjectives ( ?Setup\Config  $config = null)

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

105 : array
106 {
107 return [
108 'buildUIFrameworkExampleTestCases.update' => new Setup\ObjectiveConstructor(
109 'builds an import file for testrail for all KNOWN ids.',
111 ),
112
113 'buildUIFrameworkExampleTestCases.new' => new Setup\ObjectiveConstructor(
114 'builds an import file for testrail with ONLY NEW cases.',
116 ),
117
118
119 ];
120 }

◆ getStatusObjective()

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

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

◆ getUpdateObjective()

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

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

71 : Setup\Objective
72 {
73 if ($config !== null) {
74 return new ilStyleConfigStoredObjective($config);
75 }
76 return new Setup\Objective\NullObjective();
77 }

◆ hasConfig()

ilStyleSetupAgent::hasConfig ( )

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

42 : bool
43 {
44 return true;
45 }

Field Documentation

◆ $refinery

ilStyleSetupAgent::$refinery
protected

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

Referenced by __construct().


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