ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPrivacySecuritySetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
23use ILIAS\UI;
24
26{
27 use Setup\Agent\HasNoNamedObjective;
28
32 protected Refinery\Factory $refinery;
33
35 {
36 $this->refinery = $refinery;
37 }
38
42 public function hasConfig(): bool
43 {
44 return true;
45 }
46
50 public function getConfigInput(?Setup\Config $config = null): UI\Component\Input\Container\Form\FormInput
51 {
52 throw new LogicException("Not yet implemented.");
53 }
54
59 {
60 return $this->refinery->custom()->transformation(function ($data) {
62 (bool) ($data["https_enabled"] ?? false),
63 (isset($data["auth_duration"])) ? (int) $data["auth_duration"] : null,
64 (isset($data["account_assistance_duration"])) ? (int) $data["account_assistance_duration"] : null,
65 (isset($data["registration_duration"])) ? (int) $data["registration_duration"] : null,
66 );
67 });
68 }
69
73 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
74 {
76 "Complete objectives from Services/PrivacySecurity",
77 false,
79 );
80 }
81
85 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
86 {
87 if ($config === null || $config instanceof Setup\NullConfig) {
89 }
90
91 return $this->getInstallObjective($config);
92 }
93
98 {
100 }
101
105 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
106 {
108 }
109
113 public function getMigrations(): array
114 {
115 return [];
116 }
117}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
A configuration with no content.
Definition: NullConfig.php:27
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
Definition: UI.php:24
getInstallObjective(?Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
getUpdateObjective(?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: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...