ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
class.ilWebServicesSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
23use ILIAS\UI;
25
27{
28 use Setup\Agent\HasNoNamedObjective;
29
30 protected Refinery\Factory $refinery;
31
33 {
34 $this->refinery = $refinery;
35 }
36
40 public function hasConfig(): bool
41 {
42 return true;
43 }
44
48 public function getConfigInput(?Setup\Config $config = null): UI\Component\Input\Container\Form\FormInput
49 {
50 throw new \LogicException("Not yet implemented.");
51 }
52
57 {
58 return $this->refinery->custom()->transformation(function ($data) {
59 return new \ilWebServicesSetupConfig(
60 (bool) ($data["soap_user_administration"] ?? false),
61 $data["soap_wsdl_path"] ?? "",
62 (int) ($data["soap_connect_timeout"] ?? ilSoapClient::DEFAULT_CONNECT_TIMEOUT),
63 (int) ($data["soap_response_timeout"] ?? ilSoapClient::DEFAULT_RESPONSE_TIMEOUT),
64 $data["rpc_server_host"] ?? "",
65 (int) ($data["rpc_server_port"] ?? 0),
66 (string) ($data['soap_internal_wsdl_path'] ?? ''),
67 (bool) ($data['soap_internal_wsdl_verify_peer'] ?? true),
68 (bool) ($data['soap_internal_wsdl_verify_peer_name'] ?? true),
69 (bool) ($data['soap_internal_wsdl_allow_self_signed'] ?? false),
70 );
71 });
72 }
73
77 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
78 {
79 return new ilWebServicesConfigStoredObjective($config);
80 }
81
85 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
86 {
87 $wsrv_objective = new Setup\Objective\NullObjective();
88 if (!is_null($config)) {
89 $wsrv_objective = new ilWebServicesConfigStoredObjective($config);
90 }
92 'Updates of Services/WebServices',
93 false,
94 $wsrv_objective,
97 ),
100 )
101 );
102 }
103
108 {
110 }
111
115 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
116 {
117 return new Setup\ObjectiveCollection(
118 'Component WebServices',
119 true,
122 $storage,
124 ),
126 $storage,
128 )
129 );
130 }
131
135 public function getMigrations(): array
136 {
137 return [];
138 }
139}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
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
This class attempt to achieve a set of database update steps.
Class ilECSUpdateSteps8 contains update steps for release 8.
const DEFAULT_CONNECT_TIMEOUT
const DEFAULT_RESPONSE_TIMEOUT
__construct(Refinery\Factory $refinery)
getConfigInput(?Setup\Config $config=null)
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...