Zend\Feed\PubSubHubbub\AbstractCallback
Synopsis
class AbstractCallback
implements
CallbackInterface
{
- // members
- protected SubscriptionPersistenceInterface $storage;
- protected HttpResponse|PhpResponse $httpResponse;
- protected integer $subscriberCount;
- // methods
- public void __construct()
- public AbstractCallback setOptions()
- public void sendResponse()
- public AbstractCallback setStorage()
- public SubscriptionPersistenceInterface getStorage()
- public AbstractCallback setHttpResponse()
- public HttpResponse|PhpResponse getHttpResponse()
- public AbstractCallback setSubscriberCount()
- public int getSubscriberCount()
- protected string _detectCallbackUrl()
- protected string _getHttpHost()
- protected bool|string _getHeader()
- protected string|false _getRawBody()
Hierarchy
Extended by
Implements
Members
protected
- $httpResponse
—
Zend\Feed\PubSubHubbub\HttpResponse|PhpResponse
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. - $storage
—
Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface
An instance of Zend\Feed\Pubsubhubbub\Model\SubscriptionPersistenceInterface used to background save any verification tokens associated with a subscription or other. - $subscriberCount
—
int
The number of Subscribers for which any updates are on behalf of.
Methods
protected
- _detectCallbackUrl() — Attempt to detect the callback URL (specifically the path forward)
- _getHeader() — Retrieve a Header value from either $_SERVER or Apache
- _getHttpHost() — Get the HTTP host
- _getRawBody() — Return the raw body of the request
public
- __construct() — Constructor; accepts an array or Traversable object to preset options for the Subscriber without calling all supported setter methods in turn.
- getHttpResponse() — 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.
- getStorage() — Gets an instance of Zend\Feed\Pubsubhubbub\Model\SubscriptionPersistence used to background save any verification tokens associated with a subscription or other.
- getSubscriberCount() — Gets the number of Subscribers for which any updates are on behalf of.
- sendResponse() — Send the response, including all headers.
- setHttpResponse() — 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.
- setOptions() — Process any injected configuration options
- setStorage() — Sets an instance of Zend\Feed\Pubsubhubbub\Model\SubscriptionPersistence used to background save any verification tokens associated with a subscription or other.
- setSubscriberCount() — Sets the number of Subscribers for which any updates are on behalf of.