X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/output/Ext.data.DataWriter.html diff --git a/docs/output/Ext.data.DataWriter.html b/docs/output/Ext.data.DataWriter.html deleted file mode 100644 index c053c4d9..00000000 --- a/docs/output/Ext.data.DataWriter.html +++ /dev/null @@ -1,47 +0,0 @@ -
Properties Methods Events Config Options Direct Link

Class Ext.data.DataWriter

Package:Ext.data
Defined In:DataWriter.js
Class:DataWriter
Subclasses:JsonWriter, XmlWriter
Extends:Object

Ext.data.DataWriter facilitates create, update, and destroy actions between -an Ext.data.Store and a server-side framework. A Writer enabled Store will -automatically manage the Ajax requests to perform CRUD actions on a Store.

-

Ext.data.DataWriter is an abstract base class which is intended to be extended -and should not be created directly. For existing implementations, see -Ext.data.JsonWriter.

-

Creating a writer is simple:

-
var writer = new Ext.data.JsonWriter();
-

The proxy for a writer enabled store can be configured with a simple url:

-
// Create a standard HttpProxy instance.
-var proxy = new Ext.data.HttpProxy({
-    url: 'app.php/users'
-});
-

For finer grained control, the proxy may also be configured with an api:

-
// Use the api specification
-var proxy = new Ext.data.HttpProxy({
-    api: {
-        read    : 'app.php/users/read',
-        create  : 'app.php/users/create',
-        update  : 'app.php/users/update',
-        destroy : 'app.php/users/destroy'
-    }
-});
-

Creating a Writer enabled store:

-
var store = new Ext.data.Store({
-    proxy: proxy,
-    reader: reader,
-    writer: writer
-});

Config Options

Config OptionsDefined By
 createRecord : Function
Abstract method that should be implemented in all subclasses -(e.g.: JsonWriter.createRecord)
DataWriter
 destroyRecord : Function
Abstract method that should be implemented in all subclasses -(e.g.: JsonWriter.destroyRecord)
DataWriter
 saveRecord : Function
Abstract method that should be implemented in all subclasses -(e.g.: JsonWriter.saveRecord
DataWriter

Public Properties

PropertyDefined By
 meta : Mixed
This DataWriter's configured metadata as passed to the constructor.
DataWriter

Public Methods

MethodDefined By

Public Events

This class has no public events.
\ No newline at end of file