Added abstract method RequestProcessor::saveCallback and its implementation CmsconnectorRequestProcessor::saveCallback

This commit is contained in:
Dmitriy Simushev 2012-08-20 09:05:30 +00:00
parent b2a0a6cebd
commit 79c4da8b2c

View File

@ -34,7 +34,7 @@ abstract class RequestProcessor {
/**
* Instance of the MibewAPI class
* @var type
* @var MibewAPI
*/
protected $mibewAPI = null;
@ -202,7 +202,7 @@ abstract class RequestProcessor {
// TODO: May be add exception if $callback = null
// Store callback
$this->storeCallback($callback);
$this->saveCallback($token, $callback);
// Send asynchronous request
$this->sendAsyncRequest($request);
@ -381,6 +381,14 @@ abstract class RequestProcessor {
*/
protected abstract function getMibewAPIInstance();
/**
* Stores callback function
*
* @param string $token Request token
* @param array $callback Callback function array
*/
protected abstract function saveCallback($token, $callback);
/**
* Loads callback function
*