category Zend
package Zend_Feed_Pubsubhubbub
subpackage Callback
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

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_Controller_Response_Http

Returns

\Zend_Feed_Pubsubhubbub_HttpResponse\Zend_Controller_Response_Http

Handle any callback from a Hub Server responding to a subscription or unsubscription request. This should be the Hub Server confirming the the request prior to taking action on it.

handle(array $httpData = null, boolean $sendResponseNow = false

Parameters

$httpData

array

GET/POST data if available and not in $_GET/POST

$sendResponseNow

boolean

Whether to send response now or when asked

Send the response, including all headers.

sendResponse() : void

If you wish to handle this via Zend_Controller, 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!

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_Controller_Response_Http $httpResponse) 

Parameters

$httpResponse

\Zend_Feed_Pubsubhubbub_HttpResponse\Zend_Controller_Response_Http