X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/src/data/proxy/Server.js?ds=sidebyside diff --git a/src/data/proxy/Server.js b/src/data/proxy/Server.js index a7186bbb..4f984395 100644 --- a/src/data/proxy/Server.js +++ b/src/data/proxy/Server.js @@ -1,3 +1,17 @@ +/* + +This file is part of Ext JS 4 + +Copyright (c) 2011 Sencha Inc + +Contact: http://www.sencha.com/contact + +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. + +*/ /** * @author Ed Spencer * @class Ext.data.proxy.Server @@ -90,30 +104,31 @@ Ext.define('Ext.data.proxy.Server', { cacheString: "_dc", /** - * @cfg {Number} timeout (optional) The number of milliseconds to wait for a response. Defaults to 30 seconds. + * @cfg {Number} timeout (optional) The number of milliseconds to wait for a response. + * Defaults to 30000 milliseconds (30 seconds). */ timeout : 30000, /** * @cfg {Object} api - * Specific urls to call on CRUD action methods "read", "create", "update" and "destroy". + * Specific urls to call on CRUD action methods "create", "read", "update" and "destroy". * Defaults to:

 api: {
-    read    : undefined,
     create  : undefined,
+    read    : undefined,
     update  : undefined,
     destroy : undefined
 }
      * 
- *

The url is built based upon the action being executed [load|create|save|destroy] + *

The url is built based upon the action being executed [create|read|update|destroy] * using the commensurate {@link #api} property, or if undefined default to the * configured {@link Ext.data.Store}.{@link Ext.data.proxy.Server#url url}.


*

For example:

*

 api: {
-    load :    '/controller/load',
-    create :  '/controller/new',
-    save :    '/controller/update',
+    create  : '/controller/new',
+    read    : '/controller/load',
+    update  : '/controller/update',
     destroy : '/controller/destroy_action'
 }
      * 
@@ -459,3 +474,4 @@ api: { Ext.destroy(this.reader, this.writer); } }); +