ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilUICoreSetupAgent.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
3 use ILIAS\Setup;
6 
7 class ilUICoreSetupAgent implements Setup\Agent
8 {
12  protected $ctrl_reader;
13 
14  public function __construct()
15  {
16  $this->ctrl_reader = new \ilCtrlStructureReader();
17  }
18 
22  public function hasConfig() : bool
23  {
24  return false;
25  }
26 
31  {
32  throw new \LogicException(self::class . " has no Config.");
33  }
34 
38  public function getInstallObjective(Setup\Config $config = null) : Setup\Objective
39  {
40  return new \ilCtrlStructureStoredObjective($this->ctrl_reader);
41  }
42 
46  public function getUpdateObjective(Setup\Config $config = null) : Setup\Objective
47  {
48  return new \ilCtrlStructureStoredObjective($this->ctrl_reader, false);
49  }
50 
54  public function getBuildArtifactObjective() : Setup\Objective
55  {
56  return new Setup\Objective\NullObjective();
57  }
58 
62  public function getStatusObjective(Setup\Metrics\Storage $storage) : Setup\Objective
63  {
64  return new Setup\Objective\NullObjective();
65  }
66 
70  public function getMigrations() : array
71  {
72  return [];
73  }
74 
75  public function getNamedObjective(string $name, Setup\Config $config = null) : Setup\Objective
76  {
77  if ($name == "reloadCtrlStructure") {
78  return new ObjectiveCollection(
79  "Reload Control Structure of ILIAS",
80  false,
83  ),
85  );
86  }
87  throw new \InvalidArgumentException(
88  "There is no named objective '$name'"
89  );
90  }
91 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
getInstallObjective(Setup\Config $config=null)
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:14
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
getStatusObjective(Setup\Metrics\Storage $storage)
Class ilCtrlStructureReader.
getUpdateObjective(Setup\Config $config=null)
if($format !==null) $name
Definition: metadata.php:230
getNamedObjective(string $name, Setup\Config $config=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:10