ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilUICoreSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
29 
35 class ilUICoreSetupAgent implements Agent
36 {
40  public function hasConfig(): bool
41  {
42  return false;
43  }
44 
49  {
50  throw new LogicException(self::class . " has no Config.");
51  }
52 
56  public function getInstallObjective(?Config $config = null): Objective
57  {
58  return new NullObjective();
59  }
60 
64  public function getUpdateObjective(?Config $config = null): Objective
65  {
68  );
69  }
70 
74  public function getBuildObjective(): Objective
75  {
76  return new ObjectiveCollection(
77  'buildIlCtrlArtifacts',
78  false,
82  );
83  }
84 
88  public function getStatusObjective(Storage $storage): Objective
89  {
90  return new NullObjective();
91  }
92 
96  public function getMigrations(): array
97  {
98  return [];
99  }
100 
104  public function getNamedObjectives(?Config $config = null): array
105  {
106  return [
107  'buildIlCtrlArtifacts' => new ObjectiveConstructor(
108  'builds all necessary ilCtrl artifacts.',
109  function () {
110  return $this->getBuildObjective();
111  }
112  ),
113 
114  'updateIlCtrlDatabase' => new ObjectiveConstructor(
115  'executes all ilCtrl database update steps.',
116  function () {
117  return $this->getUpdateObjective();
118  }
119  ),
120  ];
121  }
122 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
getUpdateObjective(?Config $config=null)
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.if Config does not match the Agent...
getInstallObjective(?Config $config=null)
hasConfig()
Does this agent require a configuration?
A non-objective, nothing to do to achieve it...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ilCtrlSecurityArtifactObjective.
Class ilCtrlDatabaseUpdateSteps holds the database update- steps affecting ilCtrl tables...
getStatusObjective(Storage $storage)
Class ilCtrlStructureArtifactObjective.
getNamedObjectives(?Config $config=null)
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.if Agent has no Config ...
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:26