ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
WebServicesMetricsCollectedObjective.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Setup;
24
26{
27 protected function getTentativePreconditions(Setup\Environment $environment): array
28 {
29 return [
30 new \ilSettingsFactoryExistsObjective()
31 ];
32 }
33
34 protected function collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage): void
35 {
36 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
37 $settings = $factory->settingsFor('common');
38
39 $is_soap_enabled = (bool) $settings->get('soap_user_administration', '0');
41 'soap_user_administration',
42 $is_soap_enabled,
43 'SOAP user administration enabled.'
44 );
45
46 if ($is_soap_enabled) {
48 'soap_wsdl_path',
49 $settings->get('soap_wsdl_path', ''),
50 'Path to SOAP WSDL file.'
51 );
52
54 'soap_connect_timeout',
55 $settings->get('soap_connect_timeout', ''),
56 'SOAP connection timeout in seconds.'
57 );
58
60 'soap_response_timeout',
61 $settings->get('soap_response_timeout', ''),
62 'SOAP response timeout in seconds.'
63 );
64
66 'soap_internal_wsdl_path',
67 $settings->get('soap_internal_wsdl_path', ''),
68 'Path to internal SOAP WSDL file.'
69 );
70
72 'soap_internal_wsdl_verify_peer',
73 (bool) $settings->get('soap_internal_wsdl_verify_peer', '1'),
74 'Verify SSL peer for internal WSDL.'
75 );
76
78 'soap_internal_wsdl_verify_peer_name',
79 (bool) $settings->get('soap_internal_wsdl_verify_peer_name', '1'),
80 'Verify SSL peer name for internal WSDL.'
81 );
82
84 'soap_internal_wsdl_allow_self_signed',
85 (bool) $settings->get('soap_internal_wsdl_allow_self_signed', '0'),
86 'Allow self-signed certificates for internal WSDL.'
87 );
88 }
89
91 'rpc_server_host',
92 $settings->get('rpc_server_host', ''),
93 'RPC server host address.'
94 );
95
97 'rpc_server_port',
98 $settings->get('rpc_server_port', ''),
99 'RPC server port.'
100 );
101 }
102}
Base class to simplify collection of metrics.
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
Attempt to gather metrics based on the provided environment.
getTentativePreconditions(Setup\Environment $environment)
Give preconditions that might or might not be fullfilled.
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
storeConfigText(string $key, string $value, ?string $description=null)
storeConfigBool(string $key, bool $value, ?string $description=null)
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...