From 159a8aa0df60419b39587c7c60d06daf13ff3c60 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Fri, 21 Sep 2012 09:53:03 +0000 Subject: [PATCH] Document calback array in the RequestProcessor class --- src/messenger/webim/libs/classes/request_processor.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/messenger/webim/libs/classes/request_processor.php b/src/messenger/webim/libs/classes/request_processor.php index 02febd72..28cbdacf 100644 --- a/src/messenger/webim/libs/classes/request_processor.php +++ b/src/messenger/webim/libs/classes/request_processor.php @@ -453,6 +453,10 @@ abstract class RequestProcessor { /** * Stores callback function * + * Callback is an associative array with following keys + * - 'function': function name to call + * - 'arguments': additional arguments, that passed to the callback function + * * @param string $token Request token * @param array $callback Callback function array */ @@ -461,6 +465,10 @@ abstract class RequestProcessor { /** * Loads callback function * + * Callback is an associative array with following keys + * - 'function': function name to call + * - 'arguments': additional arguments, that passed to the callback function + * * @param string $token Token of the request related to callback function * @return mixed callback function array or null if callback function not exists */