package Default

 Methods

Constructor; accepts an array or Traversable object to preset options for the Subscriber without calling all supported setter methods in turn.

__construct(array|\Traversable $options = null

Parameters

$options

array\Traversable

Options array or Traversable object

An instance of a class handling Http Responses. This is implemented in Zend\Feed\Pubsubhubbub\HttpResponse which shares an unenforced interface with (i.e. not inherited from) Zend\Controller\Response\Http.

getHttpResponse() : \Zend\Feed\PubSubHubbub\HttpResponse | \Zend\Http\PhpEnvironment\Response
inherited_from \Zend\Feed\PubSubHubbub\CallbackInterface::getHttpResponse()

Returns

\Zend\Feed\PubSubHubbub\HttpResponse\Zend\Http\PhpEnvironment\Response

Gets an instance of Zend\Feed\Pubsubhubbub\Model\SubscriptionPersistence used to background save any verification tokens associated with a subscription or other.

getStorage() : \Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface

Exceptions

\Zend\Feed\PubSubHubbub\Exception\RuntimeException

Returns

\Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface

Gets the number of Subscribers for which any updates are on behalf of.

getSubscriberCount() : integer

In other words, is this class serving one or more subscribers? How many?

Returns

integer

Send the response, including all headers.

sendResponse() : void

If you wish to handle this via Zend\Http, use the getter methods to retrieve any data needed to be set on your HTTP Response object, or simply give this object the HTTP Response instance to work with for you!

inherited_from \Zend\Feed\PubSubHubbub\CallbackInterface::sendResponse()

An instance of a class handling Http Responses. This is implemented in Zend\Feed\Pubsubhubbub\HttpResponse which shares an unenforced interface with (i.e. not inherited from) Zend\Controller\Response\Http.

setHttpResponse(\Zend\Feed\PubSubHubbub\HttpResponse|\Zend\Http\PhpEnvironment\Response $httpResponse) : \Zend\Feed\PubSubHubbub\AbstractCallback
inherited_from \Zend\Feed\PubSubHubbub\CallbackInterface::setHttpResponse()

Parameters

$httpResponse

\Zend\Feed\PubSubHubbub\HttpResponse\Zend\Http\PhpEnvironment\Response

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

\Zend\Feed\PubSubHubbub\AbstractCallback

Process any injected configuration options

setOptions(array|\Traversable $options) : \Zend\Feed\PubSubHubbub\AbstractCallback

Parameters

$options

array\Traversable

Options array or Traversable object

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

\Zend\Feed\PubSubHubbub\AbstractCallback

Sets an instance of Zend\Feed\Pubsubhubbub\Model\SubscriptionPersistence used to background save any verification tokens associated with a subscription or other.

setStorage(\Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface $storage) : \Zend\Feed\PubSubHubbub\AbstractCallback

Parameters

$storage

\Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface

Returns

\Zend\Feed\PubSubHubbub\AbstractCallback

Sets the number of Subscribers for which any updates are on behalf of.

setSubscriberCount(string|integer $count) : \Zend\Feed\PubSubHubbub\AbstractCallback

In other words, is this class serving one or more subscribers? How many? Defaults to 1 if left unchanged.

Parameters

$count

stringinteger

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

\Zend\Feed\PubSubHubbub\AbstractCallback

Attempt to detect the callback URL (specifically the path forward)

_detectCallbackUrl() : string

Returns

string

Retrieve a Header value from either $_SERVER or Apache

_getHeader(string $header) : boolean | string

Parameters

$header

string

Returns

booleanstring

Get the HTTP host

_getHttpHost() : string

Returns

string

Return the raw body of the request

_getRawBody() : string | false

Returns

stringfalseRaw body, or false if not present

 Properties

 

An instance of a class handling Http Responses. This is implemented in Zend\Feed\Pubsubhubbub\HttpResponse which shares an unenforced interface with (i.e. not inherited from) Zend\Controller\Response\Http.

$httpResponse : \Zend\Feed\PubSubHubbub\HttpResponse | \Zend\Http\PhpEnvironment\Response

Default

null
 

An instance of Zend\Feed\Pubsubhubbub\Model\SubscriptionPersistenceInterface used to background save any verification tokens associated with a subscription or other.

$storage : \Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface

Default

null
 

The number of Subscribers for which any updates are on behalf of.

$subscriberCount : integer

Default

1