ILIAS  trunk Revision v12.0_alpha-1613-gae4c99ebb18
ILIAS\AuthSOAP\SoapAuthEndpoint Class Reference
+ Collaboration diagram for ILIAS\AuthSOAP\SoapAuthEndpoint:

Public Member Functions

 __construct (\ilSetting $settings)
 
 getLocation ()
 
 getNamespace ()
 
 useDotnet ()
 
 createValidationClient ()
 

Private Member Functions

 buildLocation (string $server_hostname, int $server_port, string $server_uri, bool $use_https,)
 

Private Attributes

string $location
 
string $namespace
 
bool $use_dotnet
 

Detailed Description

Definition at line 23 of file SoapAuthEndpoint.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\AuthSOAP\SoapAuthEndpoint::__construct ( \ilSetting  $settings)

Definition at line 29 of file SoapAuthEndpoint.php.

30 {
31 $this->namespace = (string) $settings->get('soap_auth_namespace', '');
32 $this->use_dotnet = (bool) $settings->get('soap_auth_use_dotnet', '0');
33 $this->location = $this->buildLocation(
34 (string) $settings->get('soap_auth_server', ''),
35 (int) $settings->get('soap_auth_port', '0'),
36 (string) $settings->get('soap_auth_uri', ''),
37 (bool) $settings->get('soap_auth_use_https', '0'),
38 );
39 }
buildLocation(string $server_hostname, int $server_port, string $server_uri, bool $use_https,)
get(string $class_name)

References ILIAS\AuthSOAP\SoapAuthEndpoint\buildLocation(), ilSetting\get(), and ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

Member Function Documentation

◆ buildLocation()

ILIAS\AuthSOAP\SoapAuthEndpoint::buildLocation ( string  $server_hostname,
int  $server_port,
string  $server_uri,
bool  $use_https 
)
private

Definition at line 65 of file SoapAuthEndpoint.php.

70 : string {
71 $uri = $use_https ? 'https://' : 'http://';
72 $uri .= $server_hostname;
73
74 if ($server_port > 0) {
75 $uri .= ':' . $server_port;
76 }
77
78 if ($server_uri !== '') {
79 $uri .= '/' . $server_uri;
80 }
81
82 return $uri;
83 }

Referenced by ILIAS\AuthSOAP\SoapAuthEndpoint\__construct().

+ Here is the caller graph for this function:

◆ createValidationClient()

ILIAS\AuthSOAP\SoapAuthEndpoint::createValidationClient ( )

Definition at line 56 of file SoapAuthEndpoint.php.

56 : SessionValidationClient
57 {
58 return new SessionValidationClient(
59 $this->location,
60 $this->namespace,
61 $this->use_dotnet,
62 );
63 }

◆ getLocation()

ILIAS\AuthSOAP\SoapAuthEndpoint::getLocation ( )

Definition at line 41 of file SoapAuthEndpoint.php.

41 : string
42 {
43 return $this->location;
44 }

References ILIAS\AuthSOAP\SoapAuthEndpoint\$location.

◆ getNamespace()

ILIAS\AuthSOAP\SoapAuthEndpoint::getNamespace ( )

Definition at line 46 of file SoapAuthEndpoint.php.

46 : string
47 {
48 return $this->namespace;
49 }

References ILIAS\AuthSOAP\SoapAuthEndpoint\$namespace.

◆ useDotnet()

ILIAS\AuthSOAP\SoapAuthEndpoint::useDotnet ( )

Definition at line 51 of file SoapAuthEndpoint.php.

51 : bool
52 {
53 return $this->use_dotnet;
54 }

References ILIAS\AuthSOAP\SoapAuthEndpoint\$use_dotnet.

Field Documentation

◆ $location

string ILIAS\AuthSOAP\SoapAuthEndpoint::$location
private

Definition at line 25 of file SoapAuthEndpoint.php.

Referenced by ILIAS\AuthSOAP\SoapAuthEndpoint\getLocation().

◆ $namespace

string ILIAS\AuthSOAP\SoapAuthEndpoint::$namespace
private

Definition at line 26 of file SoapAuthEndpoint.php.

Referenced by ILIAS\AuthSOAP\SoapAuthEndpoint\getNamespace().

◆ $use_dotnet

bool ILIAS\AuthSOAP\SoapAuthEndpoint::$use_dotnet
private

Definition at line 27 of file SoapAuthEndpoint.php.

Referenced by ILIAS\AuthSOAP\SoapAuthEndpoint\useDotnet().


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