ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilWebServicesSetupAgent Class Reference
+ Inheritance diagram for ilWebServicesSetupAgent:
+ Collaboration diagram for ilWebServicesSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getConfigInput (?Setup\Config $config=null)
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 @inheritDoc More...
 

Protected Attributes

Refinery Factory $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilWebServicesSetupAgent::__construct ( Refinery\Factory  $refinery)

Definition at line 32 of file class.ilWebServicesSetupAgent.php.

References $refinery, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilWebServicesSetupAgent::getArrayToConfigTransformation ( )

Definition at line 56 of file class.ilWebServicesSetupAgent.php.

56 : Refinery\Transformation
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 }
const DEFAULT_CONNECT_TIMEOUT
const DEFAULT_RESPONSE_TIMEOUT

References $data, ilSoapClient\DEFAULT_CONNECT_TIMEOUT, ilSoapClient\DEFAULT_RESPONSE_TIMEOUT, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ getBuildObjective()

ilWebServicesSetupAgent::getBuildObjective ( )

Definition at line 107 of file class.ilWebServicesSetupAgent.php.

107 : Setup\Objective
108 {
109 return new Setup\Objective\NullObjective();
110 }

◆ getConfigInput()

ilWebServicesSetupAgent::getConfigInput ( ?Setup\Config  $config = null)

Definition at line 48 of file class.ilWebServicesSetupAgent.php.

48 : UI\Component\Input\Container\Form\FormInput
49 {
50 throw new \LogicException("Not yet implemented.");
51 }

◆ getInstallObjective()

ilWebServicesSetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 77 of file class.ilWebServicesSetupAgent.php.

77 : Setup\Objective
78 {
79 return new ilWebServicesConfigStoredObjective($config);
80 }

◆ getMigrations()

ilWebServicesSetupAgent::getMigrations ( )

@inheritDoc

Definition at line 135 of file class.ilWebServicesSetupAgent.php.

135 : array
136 {
137 return [];
138 }

◆ getStatusObjective()

ilWebServicesSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 115 of file class.ilWebServicesSetupAgent.php.

115 : Setup\Objective
116 {
117 return new Setup\ObjectiveCollection(
118 'Component WebServices',
119 true,
122 $storage,
124 ),
126 $storage,
128 )
129 );
130 }
Class ilECSUpdateSteps8 contains update steps for release 8.

◆ getUpdateObjective()

ilWebServicesSetupAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 85 of file class.ilWebServicesSetupAgent.php.

85 : 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 }
A objective collection is a objective that is achieved once all subobjectives are achieved.
This class attempt to achieve a set of database update steps.

◆ hasConfig()

ilWebServicesSetupAgent::hasConfig ( )

Definition at line 40 of file class.ilWebServicesSetupAgent.php.

40 : bool
41 {
42 return true;
43 }

Field Documentation

◆ $refinery

Refinery Factory ilWebServicesSetupAgent::$refinery
protected

Definition at line 30 of file class.ilWebServicesSetupAgent.php.

Referenced by __construct().


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