Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / src / data / Request.js
1 /*!
2  * Ext JS Library 3.2.0
3  * Copyright(c) 2006-2010 Ext JS, Inc.
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 /**
8  * @class Ext.data.Request
9  * A simple Request class used internally to the data package to provide more generalized remote-requests
10  * to a DataProxy.
11  * TODO Not yet implemented.  Implement in Ext.data.Store#execute
12  */
13 Ext.data.Request = function(params) {
14     Ext.apply(this, params);
15 };
16 Ext.data.Request.prototype = {
17     /**
18      * @cfg {String} action
19      */
20     action : undefined,
21     /**
22      * @cfg {Ext.data.Record[]/Ext.data.Record} rs The Store recordset associated with the request.
23      */
24     rs : undefined,
25     /**
26      * @cfg {Object} params HTTP request params
27      */
28     params: undefined,
29     /**
30      * @cfg {Function} callback The function to call when request is complete
31      */
32     callback : Ext.emptyFn,
33     /**
34      * @cfg {Object} scope The scope of the callback funtion
35      */
36     scope : undefined,
37     /**
38      * @cfg {Ext.data.DataReader} reader The DataReader instance which will parse the received response
39      */
40     reader : undefined
41 };