OpenID
[ class tree: OpenID ] [ index: OpenID ] [ all elements ]

Class: OpenID_Discover_HTML

Source Location: /OpenID-0.4.0/OpenID/Discover/HTML.php

Class Overview

OpenID_Discover
   |
   --OpenID_Discover_HTML

Implements HTML discovery


Author(s):

Copyright:

  • 2009 Rich Schumacher

Variables

Methods


Inherited Variables

Inherited Methods

Class: OpenID_Discover

OpenID_Discover::__construct()
Constructor. Enables libxml internal errors, normalized the identifier.
OpenID_Discover::discover()
Performs discovery
OpenID_Discover::extensionSupported()
Determines if dicovered information supports a given OpenID extension
OpenID_Discover::getDiscover()
Static helper method for retrieving discovered information from cache if it exists, otherwise executing discovery and storing results if they are positive.
OpenID_Discover::setRequestOptions()
Sets the HTTP_Request2 options to use
OpenID_Discover::_factory()
Provides the standard factory pattern for loading discovery drivers.
OpenID_Discover::__get()
Gets member variables

Class Details

[line 37]
Implements HTML discovery


[ Top ]


Class Variables

$identifier =  null

[line 46]

The normalized identifier
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$request =  null

[line 53]

Local storage of the HTTP_Request2 object
  • Access: protected

Type:   HTTP_Request2


[ Top ]

$response =  null

[line 60]

Local storage of the HTTP_Request2_Response object
  • Access: protected

Type:   HTTP_Request2_Response


[ Top ]



Method Detail

__construct (Constructor)   [line 69]

void __construct( mixed $identifier)

Constructor. Sets the
  • Access: public

Overrides OpenID_Discover::__construct() (Constructor. Enables libxml internal errors, normalized the identifier.)

Parameters:

mixed   $identifier   —  The user supplied identifier

[ Top ]

buildServiceEndpoint   [line 131]

OpenID_ServiceEndpoints buildServiceEndpoint( array $results)

Builds the service endpoint
  • Access: protected

Parameters:

array   $results   —  Array of items discovered via HTML

[ Top ]

discover   [line 80]

OpenID_ServiceEndpoints discover( )

Performs HTML discovery.
  • Throws: OpenID_Discover_Exception on error
  • Access: public

Overrides OpenID_Discover::discover() (Performs discovery)
[ Top ]

getExpiresHeader   [line 117]

string getExpiresHeader( )

Gets the Expires header from the response object
  • Access: protected

[ Top ]

getHTTPRequest2   [line 191]

void getHTTPRequest2( )

Instantiates HTTP_Request2. Abstracted for testing.
  • Access: protected

[ Top ]

sendRequest   [line 171]

string sendRequest( )

Sends the request via HTTP_Request2
  • Return: The HTTP response body
  • Access: protected

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:57:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.