X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.data.DataProxy.html diff --git a/docs/output/Ext.data.DataProxy.html b/docs/output/Ext.data.DataProxy.html index 9d83ee01..e218121c 100644 --- a/docs/output/Ext.data.DataProxy.html +++ b/docs/output/Ext.data.DataProxy.html @@ -1,87 +1,110 @@ -
Properties Methods Events Config Options Direct Link
Observable
  DataProxy

Class Ext.data.DataProxy

Package:Ext.data
Defined In:DataProxy.js
Class:DataProxy
Subclasses:DirectProxy, HttpProxy, MemoryProxy, ScriptTagProxy
Extends:Observable

Abstract base class for implementations which provide retrieval of unformatted data objects. -This class is intended to be extended and should not be created directly. For existing implementations, -see Ext.data.DirectProxy, Ext.data.HttpProxy, Ext.data.ScriptTagProxy and -Ext.data.MemoryProxy.

-

DataProxy implementations are usually used in conjunction with an implementation of Ext.data.DataReader -(of the appropriate type which knows how to parse the data object) to provide a block of -Ext.data.Records to an Ext.data.Store.

-

The parameter to a DataProxy constructor may be an Ext.data.Connection or can also be the -config object to an Ext.data.Connection.

-

Custom implementations must implement either the doRequest method (preferred) or the -load method (deprecated). See -Ext.data.HttpProxy.doRequest or -Ext.data.HttpProxy.load for additional details.

-

Example 1

-
proxy: new Ext.data.ScriptTagProxy({
-    url: 'http://extjs.com/forum/topics-remote.php'

-}),
-

Example 2

-
proxy : new Ext.data.HttpProxy({
-    method: 'GET',
-    prettyUrls: false,
-    url: 'local/default.php', // see options parameter for Ext.Ajax.request

-    api: {
-        // all actions except the following will use above url

-        create  : 'local/new.php',
-        update  : 'local/update.php'
-    }
-}),

Config Options

Config OptionsDefined By
 doRequest : Function
Abstract method that should be implemented in all subclasses -(e.g.: HttpProxy.doRequest, -DirectProxy.doRequest).
DataProxy
\ No newline at end of file