Zend Framework
3.0
|
Public Member Functions | |
__construct ($options=null) | |
Constructor; accepts an array or Traversable object to preset options for the Subscriber without calling all supported setter methods in turn. | |
setOptions ($options) | |
Process any injected configuration options. | |
sendResponse () | |
Send the response, including all headers. | |
setStorage (Model\SubscriptionPersistenceInterface $storage) | |
Sets an instance of Zend used to background save any verification tokens associated with a subscription or other. | |
getStorage () | |
Gets an instance of Zend used to background save any verification tokens associated with a subscription or other. | |
setHttpResponse ($httpResponse) | |
An instance of a class handling Http Responses. | |
getHttpResponse () | |
An instance of a class handling Http Responses. | |
setSubscriberCount ($count) | |
Sets the number of Subscribers for which any updates are on behalf of. | |
getSubscriberCount () | |
Gets the number of Subscribers for which any updates are on behalf of. | |
Public Member Functions inherited from CallbackInterface | |
handle (array $httpData=null, $sendResponseNow=false) | |
Handle any callback from a Hub Server responding to a subscription or unsubscription request. | |
Protected Member Functions | |
_detectCallbackUrl () | |
Attempt to detect the callback URL (specifically the path forward) | |
_getHttpHost () | |
Get the HTTP host. | |
_getHeader ($header) | |
Retrieve a Header value from either $_SERVER or Apache. | |
_getRawBody () | |
Return the raw body of the request. | |
Protected Attributes | |
$storage = null | |
$httpResponse = null | |
$subscriberCount = 1 | |
__construct | ( | $options = null | ) |
Constructor; accepts an array or Traversable object to preset options for the Subscriber without calling all supported setter methods in turn.
array | Traversable | $options | Options array or Traversable object |
|
protected |
Attempt to detect the callback URL (specifically the path forward)
|
protected |
Retrieve a Header value from either $_SERVER or Apache.
string | $header |
|
protected |
Get the HTTP host.
|
protected |
Return the raw body of the request.
getHttpResponse | ( | ) |
An instance of a class handling Http Responses.
This is implemented in Zend which shares an unenforced interface with (i.e. not inherited from) Zend.
Implements CallbackInterface.
getStorage | ( | ) |
getSubscriberCount | ( | ) |
Gets the number of Subscribers for which any updates are on behalf of.
In other words, is this class serving one or more subscribers? How many?
sendResponse | ( | ) |
Send the response, including all headers.
If you wish to handle this via Zend, 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!
Implements CallbackInterface.
setHttpResponse | ( | $httpResponse | ) |
An instance of a class handling Http Responses.
This is implemented in Zend which shares an unenforced interface with (i.e. not inherited from) Zend.
HttpResponse | PhpResponse | $httpResponse |
Exception\InvalidArgumentException |
Implements CallbackInterface.
setOptions | ( | $options | ) |
Process any injected configuration options.
array | Traversable | $options | Options array or Traversable object |
Exception\InvalidArgumentException |
setStorage | ( | Model\SubscriptionPersistenceInterface | $storage | ) |
Sets an instance of Zend used to background save any verification tokens associated with a subscription or other.
Model\SubscriptionPersistenceInterface | $storage |
setSubscriberCount | ( | $count | ) |
Sets the number of Subscribers for which any updates are on behalf of.
In other words, is this class serving one or more subscribers? How many? Defaults to 1 if left unchanged.
string | int | $count |
Exception\InvalidArgumentException |
|
protected |
|
protected |
|
protected |