package Default

 Methods

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

clearHttpClient() : void
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\Feed\Reader\Atom|Rss to leverage off.

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

Parameters

$source

\Zend\Feed\Reader\Feed\AbstractFeedstring

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

array

Get the Escaper instance

getEscaper() : \Zend\Escaper\Escaper
Static

If none registered, lazy-loads an instance.

Returns

\Zend\Escaper\Escaper

Return the singleton instance of the HTTP Client. Note that the instance is reset and cleared of previous parameters GET/POST.

getHttpClient() : \Zend\Http\Client
Static

Headers are NOT reset but handled by this component if applicable.

Returns

\Zend\Http\Client

Set the Escaper instance

setEscaper(null|\Zend\Escaper\Escaper $escaper = null
Static

If null, resets the instance

Parameters

$escaper

null\Zend\Escaper\Escaper

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

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

Parameters

$httpClient

\Zend\Http\Client

RFC 3986 safe url encoding method

urlencode(string $string) : string
Static

Parameters

$string

string

Returns

string

 Properties

 

$escaper

$escaper : \Zend\Escaper\Escaper

Default

Static
 

Singleton instance if required of the HTTP client

$httpClient : \Zend\Http\Client

Default

null
Static

 Constants

 

SUBSCRIPTION_NOTVERIFIED

SUBSCRIPTION_NOTVERIFIED = 'not_verified' 
 

SUBSCRIPTION_TODELETE

SUBSCRIPTION_TODELETE = 'to_delete' 
 

Subscription States

SUBSCRIPTION_VERIFIED = 'verified' 
 

VERIFICATION_MODE_ASYNC

VERIFICATION_MODE_ASYNC = 'async' 
 

Verification Modes

VERIFICATION_MODE_SYNC = 'sync'