You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
66 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. This file is part of Ext JS 3.4
  3. Copyright (c) 2011-2013 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as
  7. published by the Free Software Foundation and appearing in the file LICENSE included in the
  8. packaging of this file.
  9. Please review the following information to ensure the GNU General Public License version 3.0
  10. requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  11. If you are unsure which license is appropriate for your use, please contact the sales department
  12. at http://www.sencha.com/contact.
  13. Build date: 2013-04-03 15:07:25
  14. */
  15. Ext.data.JsonP.Ext_data_DataProxy({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.data.DirectProxy","Ext.data.HttpProxy","Ext.data.MemoryProxy","Ext.data.ScriptTagProxy"],"extends":"Ext.util.Observable","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><strong>Ext.data.DataProxy</strong></div></div><h4>Subclasses</h4><div class='dependency'><a href='#!/api/Ext.data.DirectProxy' rel='Ext.data.DirectProxy' class='docClass'>Ext.data.DirectProxy</a></div><div class='dependency'><a href='#!/api/Ext.data.HttpProxy' rel='Ext.data.HttpProxy' class='docClass'>Ext.data.HttpProxy</a></div><div class='dependency'><a href='#!/api/Ext.data.MemoryProxy' rel='Ext.data.MemoryProxy' class='docClass'>Ext.data.MemoryProxy</a></div><div class='dependency'><a href='#!/api/Ext.data.ScriptTagProxy' rel='Ext.data.ScriptTagProxy' class='docClass'>Ext.data.ScriptTagProxy</a></div><h4>Files</h4><div class='dependency'><a href='source/DataProxy.html#Ext-data-DataProxy' target='_blank'>DataProxy.js</a></div></pre><div class='doc-contents'><p>Abstract base class for implementations which provide retrieval of unformatted data objects.\nThis class is intended to be extended and should not be created directly. For existing implementations,\nsee <a href=\"#!/api/Ext.data.DirectProxy\" rel=\"Ext.data.DirectProxy\" class=\"docClass\">Ext.data.DirectProxy</a>, <a href=\"#!/api/Ext.data.HttpProxy\" rel=\"Ext.data.HttpProxy\" class=\"docClass\">Ext.data.HttpProxy</a>, <a href=\"#!/api/Ext.data.ScriptTagProxy\" rel=\"Ext.data.ScriptTagProxy\" class=\"docClass\">Ext.data.ScriptTagProxy</a> and\n<a href=\"#!/api/Ext.data.MemoryProxy\" rel=\"Ext.data.MemoryProxy\" class=\"docClass\">Ext.data.MemoryProxy</a>.</p>\n\n\n<p>DataProxy implementations are usually used in conjunction with an implementation of <a href=\"#!/api/Ext.data.DataReader\" rel=\"Ext.data.DataReader\" class=\"docClass\">Ext.data.DataReader</a>\n(of the appropriate type which knows how to parse the data object) to provide a block of\nExt.data.Records to an <a href=\"#!/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a>.</p>\n\n\n<p>The parameter to a DataProxy constructor may be an <a href=\"#!/api/Ext.data.Connection\" rel=\"Ext.data.Connection\" class=\"docClass\">Ext.data.Connection</a> or can also be the\nconfig object to an <a href=\"#!/api/Ext.data.Connection\" rel=\"Ext.data.Connection\" class=\"docClass\">Ext.data.Connection</a>.</p>\n\n\n<p>Custom implementations must implement either the <code><b>doRequest</b></code> method (preferred) or the\n<code>load</code> method (deprecated). See\n<a href=\"#!/api/Ext.data.HttpProxy\" rel=\"Ext.data.HttpProxy\" class=\"docClass\">Ext.data.HttpProxy</a>.<a href=\"#!/api/Ext.data.HttpProxy-method-doRequest\" rel=\"Ext.data.HttpProxy-method-doRequest\" class=\"docClass\">doRequest</a> or\n<a href=\"#!/api/Ext.data.HttpProxy\" rel=\"Ext.data.HttpProxy\" class=\"docClass\">Ext.data.HttpProxy</a>.<a href=\"#!/api/Ext.data.HttpProxy-event-load\" rel=\"Ext.data.HttpProxy-event-load\" class=\"docClass\">load</a> for additional details.</p>\n\n\n<p><b><u>Example 1</u></b></p>\n\n\n<pre><code>proxy: new <a href=\"#!/api/Ext.data.ScriptTagProxy\" rel=\"Ext.data.ScriptTagProxy\" class=\"docClass\">Ext.data.ScriptTagProxy</a>({\n <a href=\"#!/api/Ext.data.Connection-cfg-url\" rel=\"Ext.data.Connection-cfg-url\" class=\"docClass\">url</a>: 'http://extjs.com/forum/topics-remote.php'\n}),\n</code></pre>\n\n\n<p><b><u>Example 2</u></b></p>\n\n\n<pre><code>proxy : new <a href=\"#!/api/Ext.data.HttpProxy\" rel=\"Ext.data.HttpProxy\" class=\"docClass\">Ext.data.HttpProxy</a>({\n <a href=\"#!/api/Ext.data.Connection-cfg-method\" rel=\"Ext.data.Connection-cfg-method\" class=\"docClass\">method</a>: 'GET',\n prettyUrls: false,\n <a href=\"#!/api/Ext.data.Connection-cfg-url\" rel=\"Ext.data.Connection