ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
sspmod_cdc_Client Class Reference
+ Collaboration diagram for sspmod_cdc_Client:

Public Member Functions

 __construct ($domain)
 Initialize a CDC client. More...
 
 getResponse ()
 Receive a CDC response. More...
 
 sendRequest ($returnTo, $op, array $params=array())
 Send a request. More...
 

Private Attributes

 $domain
 
 $server
 

Detailed Description

Definition at line 8 of file Client.php.

Constructor & Destructor Documentation

◆ __construct()

sspmod_cdc_Client::__construct (   $domain)

Initialize a CDC client.

Parameters
string$domainThe domain we should query the server for.

Definition at line 31 of file Client.php.

References $domain.

32  {
33  assert(is_string($domain));
34 
35  $this->domain = $domain;
36  $this->server = new sspmod_cdc_Server($domain);
37  }

Member Function Documentation

◆ getResponse()

sspmod_cdc_Client::getResponse ( )

Receive a CDC response.

Returns
array|NULL The response, or NULL if no response is received.

Definition at line 45 of file Client.php.

46  {
47  return $this->server->getResponse();
48  }

◆ sendRequest()

sspmod_cdc_Client::sendRequest (   $returnTo,
  $op,
array  $params = array() 
)

Send a request.

Parameters
string$returnToThe URL we should return to afterwards.
string$opThe operation we are performing.
array$paramsAdditional parameters.

Definition at line 58 of file Client.php.

References PHPMailer\PHPMailer\$params, and $returnTo.

59  {
60  assert(is_string($returnTo));
61  assert(is_string($op));
62 
63  $params['op'] = $op;
64  $params['return'] = $returnTo;
65  $this->server->sendRequest($params);
66  }
if(!isset($_REQUEST['ReturnTo'])) $returnTo
Definition: authpage.php:16

Field Documentation

◆ $domain

sspmod_cdc_Client::$domain
private

Definition at line 15 of file Client.php.

Referenced by __construct().

◆ $server

sspmod_cdc_Client::$server
private

Definition at line 23 of file Client.php.


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