ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ilStyleSetupAgent Class Reference
+ Inheritance diagram for ilStyleSetupAgent:
+ Collaboration diagram for ilStyleSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array.
Exceptions
LogicExceptionif Agent has no Config
More...
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts.
Exceptions
InvalidArgumentExceptionif Config does not match the Agent.
More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 
 getNamedObjectives (?Setup\Config $config=null)
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 getInstallObjective (?Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

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 ( )

Agents must be able to tell how to create a configuration from a nested array.

Exceptions
LogicExceptionif Agent has no Config

Implements ILIAS\Setup\Agent.

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

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

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getBuildObjective()

ilStyleSetupAgent::getBuildObjective ( )

Get the goal the agent wants to achieve to build artifacts.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent.

Implements ILIAS\Setup\Agent.

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

◆ 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 ( )

Implements ILIAS\Setup\Agent.

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.',
110  fn() => new ilUITestRailExampleTestCasesObjective(false)
111  ),
112 
113  'buildUIFrameworkExampleTestCases.new' => new Setup\ObjectiveConstructor(
114  'builds an import file for testrail with ONLY NEW cases.',
115  fn() => new ilUITestRailExampleTestCasesObjective(true)
116  ),
117 
118 
119  ];
120  }

◆ getStatusObjective()

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

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

90  : Setup\Objective
91  {
92  return new ilStyleMetricsCollectedObjective($storage);
93  }

◆ getUpdateObjective()

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

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

References null.

71  : Setup\Objective
72  {
73  if ($config !== null) {
74  return new ilStyleConfigStoredObjective($config);
75  }
76  return new Setup\Objective\NullObjective();
77  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ hasConfig()

ilStyleSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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: