X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Request.html diff --git a/docs/source/Request.html b/docs/source/Request.html index eff6bab8..d20a61d9 100644 --- a/docs/source/Request.html +++ b/docs/source/Request.html @@ -1,46 +1,56 @@ - - - - The source code - - - - -
/** + + + + + The source code + + + + + + +
/**
+ * @author Ed Spencer
  * @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
+ * @extends Object
+ * 
+ * <p>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.</p>
+ * 
+ * @constructor
+ * @param {Object} config Optional config object
  */
-Ext.data.Request = function(params) {
-    Ext.apply(this, params);
-};
-Ext.data.Request.prototype = {
-    
/** - * @cfg {String} action +Ext.define('Ext.data.Request', { + /** + * @cfg {String} action The name of the action this Request represents. Usually one of 'create', 'read', 'update' or 'destroy' */ - action : undefined, -
/** - * @cfg {Ext.data.Record[]/Ext.data.Record} rs The Store recordset associated with the request. - */ - 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 - */ - callback : Ext.emptyFn, -
/** - * @cfg {Object} scope The scope of the callback funtion + + /** + * @cfg {String} method The HTTP method to use on this Request (defaults to 'GET'). Should be one of 'GET', 'POST', 'PUT' or 'DELETE' */ - scope : undefined, -
/** - * @cfg {Ext.data.DataReader} reader The DataReader instance which will parse the received response + method: 'GET', + + /** + * @cfg {String} url The url to access on this Request */ - reader : undefined -}; -
- - \ No newline at end of file + url: undefined, + + constructor: function(config) { + Ext.apply(this, config); + } +});
+ +