__construct()
getHttpResponse()
getStorage()
getSubscriberCount()
handle()
sendResponse()
setHttpResponse()
setOptions()
setStorage()
setSubscriberCount()
_detectCallbackUrl()
_getHeader()
_getHttpHost()
_getRawBody()
$httpResponse
$storage
$subscriberCount
__construct(array | \Traversable $options)
array\Traversable
Options array or Traversable object
getHttpResponse() : \Zend\Feed\PubSubHubbub\HttpResponse | \Zend\Http\PhpEnvironment\Response
This is implemented in Zend\Feed\Pubsubhubbub\HttpResponse which shares an unenforced interface with (i.e. not inherited from) Zend\Controller\Response\Http.
getStorage() : \Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface
getSubscriberCount() : int
In other words, is this class serving one or more subscribers? How many?
int
handle(array $httpData, bool $sendResponseNow)
This should be the Hub Server confirming the the request prior to taking action on it.
inherited_from | \Zend\Feed\PubSubHubbub\CallbackInterface::handle() |
---|
array
GET/POST data if available and not in $_GET/POST
bool
Whether to send response now or when asked
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!
setHttpResponse(\Zend\Feed\PubSubHubbub\HttpResponse | \Zend\Http\PhpEnvironment\Response $httpResponse) : \Zend\Feed\PubSubHubbub\AbstractCallback
This is implemented in Zend\Feed\Pubsubhubbub\HttpResponse which shares an unenforced interface with (i.e. not inherited from) Zend\Controller\Response\Http.
\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException |
---|
setOptions(array | \Traversable $options) : \Zend\Feed\PubSubHubbub\AbstractCallback
array\Traversable
Options array or Traversable object
\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException |
---|
setStorage(\Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface $storage) : \Zend\Feed\PubSubHubbub\AbstractCallback
setSubscriberCount(string | int $count) : \Zend\Feed\PubSubHubbub\AbstractCallback
In other words, is this class serving one or more subscribers? How many? Defaults to 1 if left unchanged.
stringint
\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException |
---|
_detectCallbackUrl() : string
string
_getHeader(string $header) : bool | string
string
bool
string
_getHttpHost() : string
string
_getRawBody() : string | false
string
false
Raw body, or false if not present$httpResponse : \Zend\Feed\PubSubHubbub\HttpResponse | \Zend\Http\PhpEnvironment\Response
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
$subscriberCount : int