X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/source/Request.html diff --git a/docs/source/Request.html b/docs/source/Request.html index 2233fdb6..42fcd05a 100644 --- a/docs/source/Request.html +++ b/docs/source/Request.html @@ -1,52 +1,59 @@ +
- +/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license + +- \ No newline at end of file +/** + * @author Ed Spencer + * + * Simple class that represents a Request that will be made by any {@link Ext.data.proxy.Server} subclass. + * All this class does is standardize the representation of a Request as used by any ServerProxy subclass, + * it does not contain any actual logic or perform the request itself. */ -/** - * @class Ext.data.Request - * A simple Request class used internally to the data package to provide more generalized remote-requests - * to a DataProxy. - * TODO Not yet implemented. Implement in Ext.data.Store#execute - */ -Ext.data.Request = function(params) { - Ext.apply(this, params); -}; -Ext.data.Request.prototype = { - /** - * @cfg {String} action - */ - action : undefined, - /** - * @cfg {Ext.data.Record[]/Ext.data.Record} rs The Store recordset associated with the request. +Ext.define('Ext.data.Request', { + /** + * @cfg {String} action + * The name of the action this Request represents. Usually one of 'create', 'read', 'update' or 'destroy'. */ - rs : undefined, - /** - * @cfg {Object} params HTTP request params + action: undefined, + + /** + * @cfg {Object} params + * HTTP request params. The Proxy and its Writer have access to and can modify this object. */ params: undefined, - /** - * @cfg {Function} callback The function to call when request is complete + + /** + * @cfg {String} method + * The HTTP method to use on this Request. Should be one of 'GET', 'POST', 'PUT' or 'DELETE'. */ - callback : Ext.emptyFn, - /** - * @cfg {Object} scope The scope of the callback funtion + method: 'GET', + + /** + * @cfg {String} url + * The url to access on this Request */ - scope : undefined, - /** - * @cfg {Ext.data.DataReader} reader The DataReader instance which will parse the received response + url: undefined, + + /** + * Creates the Request object. + * @param {Object} [config] Config object. */ - reader : undefined -}; -+ constructor: function(config) { + Ext.apply(this, config); + } +});