a:13:{s:9:"#provides";s:20:"dojo.rpc.JsonService";s:9:"#resource";s:18:"rpc/JsonService.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:19:"dojo.rpc.RpcService";}}s:20:"dojo.rpc.JsonService";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:19:"dojo.rpc.RpcService";}s:4:"call";a:1:{i:0;s:19:"dojo.rpc.RpcService";}}s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:30:"dojo.rpc.JsonService.bustCache";a:2:{s:9:"prototype";s:20:"dojo.rpc.JsonService";s:7:"summary";s:0:"";}s:32:"dojo.rpc.JsonService.contentType";a:2:{s:9:"prototype";s:20:"dojo.rpc.JsonService";s:7:"summary";s:0:"";}s:37:"dojo.rpc.JsonService.lastSubmissionId";a:2:{s:9:"prototype";s:20:"dojo.rpc.JsonService";s:7:"summary";s:0:"";}s:31:"dojo.rpc.JsonService.callRemote";a:5:{s:9:"prototype";s:20:"dojo.rpc.JsonService";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"method";a:2:{s:4:"type";s:6:"string";s:7:"summary";s:47:"the name of the remote method you want to call.";}s:6:"params";a:2:{s:4:"type";s:5:"array";s:7:"summary";s:37:"array of parameters to pass to method";}}s:6:"source";s:98:" var deferred = new dojo.Deferred(); this.bind(method, params, deferred); return deferred;";s:7:"summary";s:78:"call an arbitrary remote method without requiring it to be predefined with SMD";}s:25:"dojo.rpc.JsonService.bind";a:5:{s:9:"prototype";s:20:"dojo.rpc.JsonService";s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:6:"method";a:2:{s:4:"type";s:6:"string";s:7:"summary";s:37:"The name of the method we are calling";}s:10:"parameters";a:2:{s:4:"type";s:5:"array";s:7:"summary";s:47:"The parameters we are passing off to the method";}s:22:"deferredRequestHandler";a:2:{s:4:"type";s:8:"deferred";s:7:"summary";s:47:"The Deferred object for this particular request";}s:3:"url";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:333:" var def = dojo.rawXhrPost({ url: url||this.serviceUrl, postData: this.createRequest(method, parameters), contentType: this.contentType, timeout: this.timeout, handleAs: "json-comment-optional" }); def.addCallbacks(this.resultCallback(deferredRequestHandler), this.errorCallback(deferredRequestHandler));";s:7:"summary";s:154:"JSON-RPC bind method. Takes remote method, parameters, deferred, and a url, calls createRequest to make a JSON-RPC envelope and passes that off with bind.";}s:34:"dojo.rpc.JsonService.createRequest";a:5:{s:9:"prototype";s:20:"dojo.rpc.JsonService";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"method";a:2:{s:4:"type";s:6:"string";s:7:"summary";s:53:"The name of the method we are creating the requst for";}s:6:"params";a:2:{s:4:"type";s:5:"array";s:7:"summary";s:41:"The array of parameters for this request;";}}s:6:"source";s:131:" var req = { "params": params, "method": method, "id": ++this.lastSubmissionId }; var data = dojo.toJson(req); return data;";s:7:"summary";s:42:"create a JSON-RPC envelope for the request";}s:33:"dojo.rpc.JsonService.parseResults";a:5:{s:9:"prototype";s:20:"dojo.rpc.JsonService";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"obj";a:2:{s:4:"type";s:8:"anything";s:7:"summary";s:68:"Object Object containing envelope of data we recieve from the server";}}s:6:"source";s:217:" if(dojo.isObject(obj)){ if("result" in obj){ return obj.result; } if("Result" in obj){ return obj.Result; } if("ResultSet" in obj){ return obj.ResultSet; } } return obj;";s:7:"summary";s:76:"parse the result envelope and pass the results back to the callback function";}s:8:"dojo.rpc";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:4:"dojo";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}