ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilPrivacySecuritySetupAgent.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
3 /* Copyright (c) 2020 Daniel Weise <daniel.weise@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
5 use ILIAS\Setup;
7 use ILIAS\UI;
8 
9 class ilPrivacySecuritySetupAgent implements Setup\Agent
10 {
12 
16  protected $refinery;
17 
19  {
20  $this->refinery = $refinery;
21  }
22 
26  public function hasConfig() : bool
27  {
28  return true;
29  }
30 
34  public function getConfigInput(Setup\Config $config = null) : UI\Component\Input\Field\Input
35  {
36  throw new \LogicException("Not yet implemented.");
37  }
38 
43  {
44  return $this->refinery->custom()->transformation(function ($data) {
45  return new \ilPrivacySecuritySetupConfig(
46  (bool) ($data["https_enabled"] ?? false)
47  );
48  });
49  }
50 
54  public function getInstallObjective(Setup\Config $config = null) : Setup\Objective
55  {
56  return new Setup\ObjectiveCollection(
57  "Complete objectives from Services/PrivacySecurity",
58  false,
60  );
61  }
62 
66  public function getUpdateObjective(Setup\Config $config = null) : Setup\Objective
67  {
68  return new Setup\Objective\NullObjective();
69  }
70 
74  public function getBuildArtifactObjective() : Setup\Objective
75  {
76  return new Setup\Objective\NullObjective();
77  }
78 
82  public function getStatusObjective(Setup\Metrics\Storage $storage) : Setup\Objective
83  {
84  return new Setup\Objective\NullObjective();
85  }
86 
90  public function getMigrations() : array
91  {
92  return [];
93  }
94 }
Class Factory.
$data
Definition: storeScorm.php:23
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:14
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
getStatusObjective(Setup\Metrics\Storage $storage)
getInstallObjective(Setup\Config $config=null)
Builds data types.
Definition: Factory.php:19
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:10