From 79c4da8b2c1720edca9b9f9d32c2f5888851c7a1 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 20 Aug 2012 09:05:30 +0000 Subject: [PATCH] Added abstract method RequestProcessor::saveCallback and its implementation CmsconnectorRequestProcessor::saveCallback --- .../webim/libs/classes/request_processor.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/messenger/webim/libs/classes/request_processor.php b/src/messenger/webim/libs/classes/request_processor.php index bf2b9d54..fe9f10da 100644 --- a/src/messenger/webim/libs/classes/request_processor.php +++ b/src/messenger/webim/libs/classes/request_processor.php @@ -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 *