Zend Framework  3.0
Static Public Member Functions | Public Attributes | Static Protected Attributes | List of all members
PubSubHubbub Class Reference

Static Public Member Functions

static detectHubs ($source)
 Simple utility function which imports any feed URL and determines the existence of Hub Server endpoints.
 
static setHttpClient (Http\Client $httpClient)
 Allows the external environment to make ZendOAuth use a specific Client instance.
 
static getHttpClient ()
 Return the singleton instance of the HTTP Client.
 
static clearHttpClient ()
 Simple mechanism to delete the entire singleton HTTP Client instance which forces a new instantiation for subsequent requests.
 
static setEscaper (Escaper $escaper=null)
 Set the Escaper instance.
 
static getEscaper ()
 Get the Escaper instance.
 
static urlencode ($string)
 RFC 3986 safe url encoding method.
 

Public Attributes

const VERIFICATION_MODE_SYNC = 'sync'
 Verification Modes.
 
const VERIFICATION_MODE_ASYNC = 'async'
 
const SUBSCRIPTION_VERIFIED = 'verified'
 Subscription States.
 
const SUBSCRIPTION_NOTVERIFIED = 'not_verified'
 
const SUBSCRIPTION_TODELETE = 'to_delete'
 

Static Protected Attributes

static $escaper
 
static $httpClient = null
 

Member Function Documentation

static clearHttpClient ( )
static

Simple mechanism to delete the entire singleton HTTP Client instance which forces a new instantiation for subsequent requests.

Returns
void
static detectHubs (   $source)
static

Simple utility function which imports any feed URL and determines the existence of Hub Server endpoints.

This works best if directly given an instance of Zend|Rss to leverage off.

Parameters
\Zend\Feed\Reader\Feed\AbstractFeed | string$source
Returns
array
Exceptions
Exception\InvalidArgumentException
static getEscaper ( )
static

Get the Escaper instance.

If none registered, lazy-loads an instance.

Returns
Escaper
static getHttpClient ( )
static

Return the singleton instance of the HTTP Client.

Note that the instance is reset and cleared of previous parameters GET/POST. Headers are NOT reset but handled by this component if applicable.

Returns
Http
static setEscaper ( Escaper  $escaper = null)
static

Set the Escaper instance.

If null, resets the instance

Parameters
null | Escaper$escaper
static setHttpClient ( Http\Client  $httpClient)
static

Allows the external environment to make ZendOAuth use a specific Client instance.

Parameters
Http\Client$httpClient
Returns
void
static urlencode (   $string)
static

RFC 3986 safe url encoding method.

Parameters
string$string
Returns
string

Member Data Documentation

$escaper
staticprotected
$httpClient = null
staticprotected
const SUBSCRIPTION_NOTVERIFIED = 'not_verified'
const SUBSCRIPTION_TODELETE = 'to_delete'
const SUBSCRIPTION_VERIFIED = 'verified'

Subscription States.

const VERIFICATION_MODE_ASYNC = 'async'
const VERIFICATION_MODE_SYNC = 'sync'

Verification Modes.