ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSystemFolderSetupAgent.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\Setup;
21use ILIAS\Data;
22use ILIAS\UI;
23
25{
26 use Setup\Agent\HasNoNamedObjective;
27
31 protected $refinery;
32
33 public function __construct(
35 ) {
36 $this->refinery = $refinery;
37 }
38
42 public function hasConfig(): bool
43 {
44 return true;
45 }
46
51 {
52 return $this->refinery->custom()->transformation(function ($data) {
53 return new \ilSystemFolderSetupConfig(
54 $data["client"]["name"] ?? null,
55 $data["client"]["description"] ?? null,
56 $data["client"]["institution"] ?? null,
57 $data["contact"]["firstname"],
58 $data["contact"]["lastname"],
59 $data["contact"]["title"] ?? null,
60 $data["contact"]["position"] ?? null,
61 $data["contact"]["institution"] ?? null,
62 $data["contact"]["street"] ?? null,
63 $data["contact"]["zipcode"] ?? null,
64 $data["contact"]["city"] ?? null,
65 $data["contact"]["country"] ?? null,
66 $data["contact"]["phone"] ?? null,
67 $data["contact"]["email"],
68 );
69 });
70 }
71
75 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
76 {
78 }
79
83 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
84 {
85 if ($config !== null) {
87 }
89 }
90
95 {
97 }
98
102 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
103 {
104 return new ilSystemFolderMetricsCollectedObjective($storage);
105 }
106
110 public function getMigrations(): array
111 {
112 return [];
113 }
114}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
A non-objective, nothing to do to achieve it...
Store information about the installation, like title, description and contact information in the acco...
getStatusObjective(Setup\Metrics\Storage $storage)
getInstallObjective(?Setup\Config $config=null)
getUpdateObjective(?Setup\Config $config=null)
__construct(Refinery\Factory $refinery)
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:30
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
Storage is simple key/value store without further schema definition.
Definition: Storage.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...