ILIAS  release_8 Revision v8.24
class.ilWebServicesSetupAgent.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/* Copyright (c) 2020 Daniel Weise <daniel.weise@concepts-and-training.de> Extended GPL, see docs/LICENSE */
6
9use ILIAS\UI;
10
12{
13 use Setup\Agent\HasNoNamedObjective;
14
15 protected Refinery\Factory $refinery;
16
17 public function __construct(Refinery\Factory $refinery)
18 {
19 $this->refinery = $refinery;
20 }
21
25 public function hasConfig(): bool
26 {
27 return true;
28 }
29
33 public function getConfigInput(Setup\Config $config = null): UI\Component\Input\Field\Input
34 {
35 throw new \LogicException("Not yet implemented.");
36 }
37
42 {
43 return $this->refinery->custom()->transformation(function ($data) {
44 return new \ilWebServicesSetupConfig(
45 (bool) ($data["soap_user_administration"] ?? false),
46 $data["soap_wsdl_path"] ?? "",
47 (int) ($data["soap_connect_timeout"] ?? ilSoapClient::DEFAULT_CONNECT_TIMEOUT),
48 (int) ($data["soap_response_timeout"] ?? ilSoapClient::DEFAULT_RESPONSE_TIMEOUT),
49 $data["rpc_server_host"] ?? "",
50 (int) ($data["rpc_server_port"] ?? 0),
51 );
52 });
53 }
54
58 public function getInstallObjective(Setup\Config $config = null): Setup\Objective
59 {
61 }
62
66 public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
67 {
68 $wsrv_objective = new Setup\Objective\NullObjective();
69 if (!is_null($config)) {
70 $wsrv_objective = new ilWebServicesConfigStoredObjective($config);
71 }
73 'Updates of Services/WebServices',
74 false,
75 $wsrv_objective,
78 )
79 );
80 }
81
85 public function getBuildArtifactObjective(): Setup\Objective
86 {
88 }
89
93 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
94 {
96 }
97
101 public function getMigrations(): array
102 {
103 return [];
104 }
105}
Builds data types.
Definition: Factory.php:21
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
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
getUpdateObjective(Setup\Config $config=null)
getConfigInput(Setup\Config $config=null)
__construct(Refinery\Factory $refinery)
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.