Zend Framework  1.12
Public Member Functions | List of all members
Zend_Feed_Pubsubhubbub_CallbackInterface Interface Reference

Public Member Functions

 handle (array $httpData=null, $sendResponseNow=false)
 Handle any callback from a Hub Server responding to a subscription or unsubscription request.
 
 sendResponse ()
 Send the response, including all headers.
 
 setHttpResponse ($httpResponse)
 An instance of a class handling Http Responses.
 
 getHttpResponse ()
 An instance of a class handling Http Responses.
 

Member Function Documentation

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.

Returns
Zend_Feed_Pubsubhubbub_HttpResponse|Zend_Controller_Response_Http

Implemented in Zend_Feed_Pubsubhubbub_CallbackAbstract.

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

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.

Parameters
array$httpDataGET/POST data if available and not in $_GET/POST
bool$sendResponseNowWhether to send response now or when asked

Implemented in Zend_Feed_Pubsubhubbub_Subscriber_Callback.

sendResponse ( )

Send the response, including all headers.

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!

Returns
void

Implemented in Zend_Feed_Pubsubhubbub_CallbackAbstract.

setHttpResponse (   $httpResponse)

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.

Parameters
Zend_Feed_Pubsubhubbub_HttpResponse | Zend_Controller_Response_Http$httpResponse

Implemented in Zend_Feed_Pubsubhubbub_CallbackAbstract.