ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilWebServicesSetupAgent.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
7use ILIAS\UI;
8
10{
11 use Setup\Agent\HasNoNamedObjective;
12
16 protected $refinery;
17
18 public function __construct(Refinery\Factory $refinery)
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 \ilWebServicesSetupConfig(
46 (bool) ($data["soap_user_administration"] ?? false),
47 $data["soap_wsdl_path"] ?? "",
48 (int) ($data["soap_connect_timeout"] ?? ilSoapClient::DEFAULT_CONNECT_TIMEOUT),
49 (int) ($data["soap_response_timeout"] ?? ilSoapClient::DEFAULT_RESPONSE_TIMEOUT),
50 $data["rpc_server_host"] ?? "",
51 (int) ($data["rpc_server_port"] ?? 0),
52 );
53 });
54 }
55
59 public function getInstallObjective(Setup\Config $config = null) : Setup\Objective
60 {
62 }
63
67 public function getUpdateObjective(Setup\Config $config = null) : Setup\Objective
68 {
69 if (is_null($config)) {
71 }
73 }
74
78 public function getBuildArtifactObjective() : Setup\Objective
79 {
81 }
82
86 public function getStatusObjective(Setup\Metrics\Storage $storage) : Setup\Objective
87 {
89 }
90
94 public function getMigrations() : array
95 {
96 return [];
97 }
98}
An exception for terminatinating execution or to throw for unit testing.
Builds data types.
Definition: Factory.php:20
A non-objective, nothing to do to achieve it...
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:14
A configuration for the setup.
Definition: Config.php:11
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:15
A component is the most general form of an entity in the UI.
Definition: Component.php:14
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class Factory.
$data
Definition: storeScorm.php:23