ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\Compat\MockContainer Class Reference

Class . More...

+ Inheritance diagram for SAML2\Compat\MockContainer:
+ Collaboration diagram for SAML2\Compat\MockContainer:

Public Member Functions

 getLogger ()
 Get a PSR-3 compatible logger. More...
 
 generateId ()
 Generate a random identifier for identifying SAML2 documents. More...
 
 debugMessage ($message, $type)
 Log an incoming message to the debug log. More...
 
 redirect ($url, $data=array())
 Trigger the user to perform a GET to the given URL with the given data. More...
 
 postRedirect ($url, $data=array())
 Trigger the user to perform a POST to the given URL with the given data. More...
 
- Public Member Functions inherited from SAML2\Compat\AbstractContainer
 getLogger ()
 Get a PSR-3 compatible logger. More...
 
 generateId ()
 Generate a random identifier for identifying SAML2 documents. More...
 
 debugMessage ($message, $type)
 Log an incoming message to the debug log. More...
 
 redirect ($url, $data=array())
 Trigger the user to perform a GET to the given URL with the given data. More...
 
 postRedirect ($url, $data=array())
 Trigger the user to perform a POST to the given URL with the given data. More...
 

Private Attributes

 $id = '123'
 
 $debugMessages = array()
 
 $redirectUrl
 
 $redirectData
 
 $postRedirectUrl
 
 $postRedirectData
 

Detailed Description

Class .

Definition at line 8 of file MockContainer.php.

Member Function Documentation

◆ debugMessage()

SAML2\Compat\MockContainer::debugMessage (   $message,
  $type 
)

Log an incoming message to the debug log.

Type can be either:

  • in XML received from third party
  • out XML that will be sent to third party
  • encrypt XML that is about to be encrypted
  • decrypt XML that was just decrypted
Parameters
string$message
string$type
Returns
void

Definition at line 70 of file MockContainer.php.

References $message, and $type.

71  {
72  $this->debugMessages[$type] = $message;
73  }
$type
catch(Exception $e) $message

◆ generateId()

SAML2\Compat\MockContainer::generateId ( )

Generate a random identifier for identifying SAML2 documents.

Definition at line 52 of file MockContainer.php.

References SAML2\Compat\MockContainer\$id.

53  {
54  return $this->id;
55  }

◆ getLogger()

SAML2\Compat\MockContainer::getLogger ( )

Get a PSR-3 compatible logger.

Returns

Definition at line 44 of file MockContainer.php.

45  {
46  return new \Psr\Log\NullLogger();
47  }

◆ postRedirect()

SAML2\Compat\MockContainer::postRedirect (   $url,
  $data = array() 
)

Trigger the user to perform a POST to the given URL with the given data.

Parameters
string$url
array$data
Returns
void

Definition at line 95 of file MockContainer.php.

References $data, and $url.

96  {
97  $this->postRedirectUrl = $url;
98  $this->postRedirectData = $data;
99  }
$url

◆ redirect()

SAML2\Compat\MockContainer::redirect (   $url,
  $data = array() 
)

Trigger the user to perform a GET to the given URL with the given data.

Parameters
string$url
array$data
Returns
void

Definition at line 82 of file MockContainer.php.

References $data, and $url.

83  {
84  $this->redirectUrl = $url;
85  $this->redirectData = $data;
86  }
$url

Field Documentation

◆ $debugMessages

SAML2\Compat\MockContainer::$debugMessages = array()
private

Definition at line 18 of file MockContainer.php.

◆ $id

SAML2\Compat\MockContainer::$id = '123'
private

Definition at line 13 of file MockContainer.php.

Referenced by SAML2\Compat\MockContainer\generateId().

◆ $postRedirectData

SAML2\Compat\MockContainer::$postRedirectData
private

Definition at line 38 of file MockContainer.php.

◆ $postRedirectUrl

SAML2\Compat\MockContainer::$postRedirectUrl
private

Definition at line 33 of file MockContainer.php.

◆ $redirectData

SAML2\Compat\MockContainer::$redirectData
private

Definition at line 28 of file MockContainer.php.

◆ $redirectUrl

SAML2\Compat\MockContainer::$redirectUrl
private

Definition at line 23 of file MockContainer.php.


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