ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilFileSystemSetupAgent.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
7use ILIAS\Data;
8use ILIAS\UI;
9
11{
12 use Setup\Agent\HasNoNamedObjective;
13
17 protected $refinery;
18
19 public function __construct(
20 Refinery\Factory $refinery
21 ) {
22 $this->refinery = $refinery;
23 }
24
28 public function hasConfig() : bool
29 {
30 return true;
31 }
32
37 {
38 return $this->refinery->custom()->transformation(function ($data) {
39 return new \ilFileSystemSetupConfig(
40 $data["data_dir"]
41 );
42 });
43 }
44
48 public function getInstallObjective(Setup\Config $config = null) : Setup\Objective
49 {
51 }
52
56 public function getUpdateObjective(Setup\Config $config = null) : Setup\Objective
57 {
58 if ($config) {
60 }
62 }
63
67 public function getBuildArtifactObjective() : Setup\Objective
68 {
70 }
71
75 public function getStatusObjective(Setup\Metrics\Storage $storage) : Setup\Objective
76 {
77 return new ilFileSystemMetricsCollectedObjective($storage);
78 }
79
83 public function getMigrations() : array
84 {
85 return [];
86 }
87}
An exception for terminatinating execution or to throw for unit testing.
Builds data types.
Definition: Factory.php:20
A non-objective, nothing to do to achieve it...
getStatusObjective(Setup\Metrics\Storage $storage)
getUpdateObjective(Setup\Config $config=null)
__construct(Refinery\Factory $refinery)
getInstallObjective(Setup\Config $config=null)
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(!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...
$data
Definition: storeScorm.php:23