Файл: concrete5.7.5.6/concrete/vendor/zendframework/zend-feed/src/PubSubHubbub/CallbackInterface.php
Строк: 121
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ZendFeedPubSubHubbub;
interface CallbackInterface
{
/**
* 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.
*
* @param array $httpData GET/POST data if available and not in $_GET/POST
* @param bool $sendResponseNow Whether to send response now or when asked
*/
public function handle(array $httpData = null, $sendResponseNow = false);
/**
* Send the response, including all headers.
* If you wish to handle this via ZendMvcController, 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!
*
* @return void
*/
public function sendResponse();
/**
* An instance of a class handling Http Responses. This is implemented in
* ZendFeedPubsubhubbubHttpResponse which shares an unenforced interface with
* (i.e. not inherited from) ZendFeedPubsubhubbubAbstractCallback.
*
* @param HttpResponse|ZendHttpPhpEnvironmentResponse $httpResponse
*/
public function setHttpResponse($httpResponse);
/**
* An instance of a class handling Http Responses. This is implemented in
* ZendFeedPubsubhubbubHttpResponse which shares an unenforced interface with
* (i.e. not inherited from) ZendFeedPubsubhubbubAbstractCallback.
*
* @return HttpResponse|ZendHttpPhpEnvironmentResponse
*/
public function getHttpResponse();
}