ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilUICoreSetupAgent.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
6
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 {
57 }
58
62 public function getStatusObjective(Setup\Metrics\Storage $storage) : Setup\Objective
63 {
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}
An exception for terminatinating execution or to throw for unit testing.
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
Class ilCtrlStructureReader.
getUpdateObjective(Setup\Config $config=null)
getInstallObjective(Setup\Config $config=null)
getNamedObjective(string $name, Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:14
A configuration for the setup.
Definition: Config.php:11
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:15
if($format !==null) $name
Definition: metadata.php:230
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...