Zend Framework  3.0
Public Member Functions | List of all members
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 which shares an unenforced interface with (i.e. not inherited from) Zend.

Returns
HttpResponse|

Implemented in AbstractCallback.

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 Callback.

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!

Returns
void

Implemented in AbstractCallback.

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.

Parameters
HttpResponse | \Zend\Http\PhpEnvironment\Response$httpResponse

Implemented in AbstractCallback.