ILIAS  release_4-4 Revision
Auth_Yadis_DiscoveryResult Class Reference
+ Collaboration diagram for Auth_Yadis_DiscoveryResult:

Public Member Functions

 Auth_Yadis_DiscoveryResult ($request_uri)
 
 fail ()
 
 isFailure ()
 
 services ()
 Returns the list of service objects as described by the XRDS document, if this yadis object represents a successful Yadis discovery. More...
 
 usedYadisLocation ()
 
 isXRDS ()
 

Data Fields

 $request_uri = null
 
 $normalized_uri = null
 
 $xrds_uri = null
 
 $xrds = null
 
 $content_type = null
 
 $response_text = null
 
 $failed = false
 

Detailed Description

Definition at line 48 of file Yadis.php.

Member Function Documentation

◆ Auth_Yadis_DiscoveryResult()

Auth_Yadis_DiscoveryResult::Auth_Yadis_DiscoveryResult (   $request_uri)

Definition at line 71 of file Yadis.php.

References $request_uri.

Referenced by Auth_Yadis_Yadis\discover().

72  {
73  // Initialize the state of the object
74  // sets all attributes to None except the request_uri
75  $this->request_uri = $request_uri;
76  }
+ Here is the caller graph for this function:

◆ fail()

Auth_Yadis_DiscoveryResult::fail ( )

Definition at line 78 of file Yadis.php.

79  {
80  $this->failed = true;
81  }

◆ isFailure()

Auth_Yadis_DiscoveryResult::isFailure ( )

Definition at line 83 of file Yadis.php.

References $failed.

84  {
85  return $this->failed;
86  }

◆ isXRDS()

Auth_Yadis_DiscoveryResult::isXRDS ( )

Definition at line 111 of file Yadis.php.

References Auth_Yadis_CONTENT_TYPE, and usedYadisLocation().

112  {
113  // Is the response text supposed to be an XRDS document?
114  return ($this->usedYadisLocation() ||
115  $this->content_type == Auth_Yadis_CONTENT_TYPE);
116  }
const Auth_Yadis_CONTENT_TYPE
Need both fetcher types so we can use the right one based on the presence or absence of CURL...
Definition: Yadis.php:36
+ Here is the call graph for this function:

◆ services()

Auth_Yadis_DiscoveryResult::services ( )

Returns the list of service objects as described by the XRDS document, if this yadis object represents a successful Yadis discovery.

Returns
array $services An array of Auth_Yadis_Service objects

Definition at line 96 of file Yadis.php.

97  {
98  if ($this->xrds) {
99  return $this->xrds->services();
100  }
101 
102  return null;
103  }

◆ usedYadisLocation()

Auth_Yadis_DiscoveryResult::usedYadisLocation ( )

Definition at line 105 of file Yadis.php.

Referenced by isXRDS().

106  {
107  // Was the Yadis protocol's indirection used?
108  return ($this->xrds_uri && $this->normalized_uri != $this->xrds_uri);
109  }
+ Here is the caller graph for this function:

Field Documentation

◆ $content_type

Auth_Yadis_DiscoveryResult::$content_type = null

Definition at line 63 of file Yadis.php.

◆ $failed

Auth_Yadis_DiscoveryResult::$failed = false

Definition at line 69 of file Yadis.php.

Referenced by isFailure().

◆ $normalized_uri

Auth_Yadis_DiscoveryResult::$normalized_uri = null

Definition at line 54 of file Yadis.php.

◆ $request_uri

Auth_Yadis_DiscoveryResult::$request_uri = null

Definition at line 51 of file Yadis.php.

Referenced by Auth_Yadis_DiscoveryResult(), and Auth_Yadis_Yadis\discover().

◆ $response_text

Auth_Yadis_DiscoveryResult::$response_text = null

Definition at line 66 of file Yadis.php.

◆ $xrds

Auth_Yadis_DiscoveryResult::$xrds = null

Definition at line 60 of file Yadis.php.

◆ $xrds_uri

Auth_Yadis_DiscoveryResult::$xrds_uri = null

Definition at line 58 of file Yadis.php.


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