UNPKG

dl

Version:

DreamLab Libs

65 lines (59 loc) 1.77 kB
/** * @overview GetFunctionDataMethod * @copyright Dreamlab Onet.pl sp. z. o o 2012 */ var JsonRpcMethod = require('core').jsonrpc.JsonRpcMethod; var Event = require('core').event.Event; /** * @class GetFunctionDataMethod * @classdesc GetFunctionDataMethod * @extends JsonRpcMethod * * @requires JsonRpcMethod * @requires Event * * @return {GetFunctionDataMethod} */ var GetFunctionDataMethod = function (request, response, server) { JsonRpcMethod.call(this, request, response, server); }; GetFunctionDataMethod.prototype = Object.create(JsonRpcMethod.prototype); /** * Returns methods list for interface * * @return {undefined} * @method * @fires JsonRpcMethod.Event.OK */ GetFunctionDataMethod.prototype.execute = function (params) { /* input: params.funcname Array ( [data] => Array ( [sysparams] => Array ( [_type] => 2 ) [params] => Array ( [ds_alias] => Array ( [required] => yes [description] => Nazwa aliasu ) ) [description] => Zwraca detal datasource'a ) ) */ var retVal = { data: { sysparams: [], params: [], description: 'NOT_IMPLEMENTED' } }; this.dispatchEvent(new Event(JsonRpcMethod.Event.OK, retVal)); }; exports.GetFunctionDataMethod = GetFunctionDataMethod;