ILIAS  release_8 Revision v8.24
class.ilPrivacySecuritySetupAgent.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
20use ILIAS\Setup;
22use ILIAS\UI;
23
25{
26 use Setup\Agent\HasNoNamedObjective;
27
31 protected Refinery\Factory $refinery;
32
33 public function __construct(Refinery\Factory $refinery)
34 {
35 $this->refinery = $refinery;
36 }
37
41 public function hasConfig(): bool
42 {
43 return true;
44 }
45
49 public function getConfigInput(Setup\Config $config = null): UI\Component\Input\Field\Input
50 {
51 throw new LogicException("Not yet implemented.");
52 }
53
58 {
59 return $this->refinery->custom()->transformation(function ($data) {
61 (bool) ($data["https_enabled"] ?? false),
62 (isset($data["auth_duration"])) ? (int) $data["auth_duration"] : null,
63 (isset($data["account_assistance_duration"])) ? (int) $data["account_assistance_duration"] : null
64 );
65 });
66 }
67
71 public function getInstallObjective(Setup\Config $config = null): Setup\Objective
72 {
74 "Complete objectives from Services/PrivacySecurity",
75 false,
77 );
78 }
79
83 public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
84 {
85 if ($config === null || $config instanceof Setup\NullConfig) {
87 }
88
89 return $this->getInstallObjective($config);
90 }
91
95 public function getBuildArtifactObjective(): Setup\Objective
96 {
98 }
99
103 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
104 {
106 }
107
111 public function getMigrations(): array
112 {
113 return [];
114 }
115}
Builds data types.
Definition: Factory.php:21
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...
getInstallObjective(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: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
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ByTrying.php:21
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class Factory.