ILIAS  release_8 Revision v8.23
ilWebServicesConfigStoredObjective Class Reference

Store information about https is enabled. More...

+ Inheritance diagram for ilWebServicesConfigStoredObjective:
+ Collaboration diagram for ilWebServicesConfigStoredObjective:

Public Member Functions

 __construct (Setup\Config $config)
 
 getHash ()
 
 getLabel ()
 
 isNotable ()
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 
 isApplicable (Setup\Environment $environment)
 

Protected Member Functions

 bool2string (bool $value)
 

Protected Attributes

Setup Config $config
 

Detailed Description

Store information about https is enabled.

Definition at line 12 of file class.ilWebServicesConfigStoredObjective.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebServicesConfigStoredObjective::__construct ( Setup\Config  $config)

Definition at line 16 of file class.ilWebServicesConfigStoredObjective.php.

References $config.

17  {
18  $this->config = $config;
19  }

Member Function Documentation

◆ achieve()

ilWebServicesConfigStoredObjective::achieve ( Setup\Environment  $environment)

Definition at line 44 of file class.ilWebServicesConfigStoredObjective.php.

References $factory, ILIAS\LTI\ToolProvider\$settings, and bool2string().

44  : Setup\Environment
45  {
46  $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
47  $settings = $factory->settingsFor("common");
48  $settings->set(
49  "soap_user_administration",
50  $this->bool2string($this->config->isSOAPUserAdministration())
51  );
52  $settings->set("soap_wsdl_path", $this->config->getSOAPWsdlPath());
53  $settings->set("soap_connect_timeout", (string) $this->config->getSOAPConnectTimeout());
54  $settings->set("soap_response_timeout", (string) $this->config->getSoapResponseTimeout());
55  $settings->set("rpc_server_host", $this->config->getRPCServerHost());
56  $settings->set("rpc_server_port", (string) $this->config->getRPCServerPort());
57 
58  return $environment;
59  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
$factory
Definition: metadata.php:75
+ Here is the call graph for this function:

◆ bool2string()

ilWebServicesConfigStoredObjective::bool2string ( bool  $value)
protected

Definition at line 69 of file class.ilWebServicesConfigStoredObjective.php.

Referenced by achieve().

69  : string
70  {
71  if ($value) {
72  return "1";
73  }
74  return "0";
75  }
+ Here is the caller graph for this function:

◆ getHash()

ilWebServicesConfigStoredObjective::getHash ( )

Definition at line 21 of file class.ilWebServicesConfigStoredObjective.php.

21  : string
22  {
23  return hash("sha256", self::class);
24  }

◆ getLabel()

ilWebServicesConfigStoredObjective::getLabel ( )

Definition at line 26 of file class.ilWebServicesConfigStoredObjective.php.

26  : string
27  {
28  return "Store information about web services in the settings";
29  }

◆ getPreconditions()

ilWebServicesConfigStoredObjective::getPreconditions ( Setup\Environment  $environment)

Definition at line 36 of file class.ilWebServicesConfigStoredObjective.php.

36  : array
37  {
38  return [
39  new \ilIniFilesPopulatedObjective(),
40  new \ilSettingsFactoryExistsObjective()
41  ];
42  }

◆ isApplicable()

ilWebServicesConfigStoredObjective::isApplicable ( Setup\Environment  $environment)

Definition at line 64 of file class.ilWebServicesConfigStoredObjective.php.

64  : bool
65  {
66  return true;
67  }

◆ isNotable()

ilWebServicesConfigStoredObjective::isNotable ( )

Definition at line 31 of file class.ilWebServicesConfigStoredObjective.php.

31  : bool
32  {
33  return true;
34  }

Field Documentation

◆ $config

Setup Config ilWebServicesConfigStoredObjective::$config
protected

Definition at line 14 of file class.ilWebServicesConfigStoredObjective.php.

Referenced by __construct().


The documentation for this class was generated from the following file: