Methods

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

clearHttpClient() : void

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

detectHubs(\Zend\Feed\Reader\Feed\AbstractFeed | string $source) : array

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

Parameters

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

array

Get the Escaper instance

getEscaper() : \Zend\Escaper\Escaper

If none registered, lazy-loads an instance.

Returns

Return the singleton instance of the HTTP Client.

getHttpClient() : \Zend\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

Set the Escaper instance

setEscaper(\Zend\Escaper\Escaper $escaper) 

If null, resets the instance

Parameters

$escaper

null\Zend\Escaper\Escaper

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

setHttpClient(\Zend\Http\Client $httpClient) : void

Parameters

$httpClient

\Zend\Http\Client

RFC 3986 safe url encoding method

urlencode(string $string) : string

Parameters

$string

string

Returns

string

 Properties

 

$escaper

$escaper : \Zend\Escaper\Escaper

 

Singleton instance if required of the HTTP client

$httpClient : \Zend\Http\Client

 Constants

 

SUBSCRIPTION_NOTVERIFIED

SUBSCRIPTION_NOTVERIFIED 

 

SUBSCRIPTION_TODELETE

SUBSCRIPTION_TODELETE 

 

Subscription States

SUBSCRIPTION_VERIFIED 

 

VERIFICATION_MODE_ASYNC

VERIFICATION_MODE_ASYNC 

 

Verification Modes

VERIFICATION_MODE_SYNC