X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..ddde20c4d4ac6a8d53de079761155de813845b3c:/docs/output/Ext.data.DataWriter.html?ds=inline diff --git a/docs/output/Ext.data.DataWriter.html b/docs/output/Ext.data.DataWriter.html index db797d04..9d702c88 100644 --- a/docs/output/Ext.data.DataWriter.html +++ b/docs/output/Ext.data.DataWriter.html @@ -1,4 +1,4 @@ -
Package: | Ext.data |
Defined In: | DataWriter.js |
Class: | DataWriter |
Subclasses: | JsonWriter, XmlWriter |
Extends: | Object |
Ext.data.DataWriter facilitates create, update, and destroy actions between +
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 @@ -59,33 +59,33 @@ store.remove(drec); // Push the button! store.save();
Config Options | Defined 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 | |
listful : Boolean false by default. Set true to have the DataWriter always write HTTP params as a list,
+(e.g.: JsonWriter.destroyRecord) | DataWriter | |
listful : Boolean false by default. Set true to have the DataWriter always write HTTP params as a list,
even when acting upon a single... false by default. Set true to have the DataWriter always write HTTP params as a list,
even when acting upon a single record. | DataWriter | |
updateRecord : Function Abstract method that should be implemented in all subclasses
-(e.g.: JsonWriter.updateRecord | DataWriter | |
writeAllFields : Boolean false by default. Set true to have DataWriter return ALL fields of a modified
+(e.g.: JsonWriter.updateRecord | DataWriter | |
writeAllFields : Boolean false by default. Set true to have DataWriter return ALL fields of a modified
record -- not just those that changed.... false by default. Set true to have DataWriter return ALL fields of a modified
record -- not just those that changed.
-false to have DataWriter only request modified fields from a record. | DataWriter |
Method | Defined By | |
---|---|---|
DataWriter( Object meta , Object recordType )
+false to have DataWriter only request modified fields from a record. | DataWriter |
Method | Defined By | |
---|---|---|
DataWriter( Object meta , Object recordType )
Create a new DataWriter Create a new DataWriter Parameters:
| DataWriter | |
apply( Object params , Object baseParams , String action , Record/Record[] rs )
- :
+using Ext.data.Record.create.Returns:
| DataWriter | |
apply( Object params , Object baseParams , String action , Record/Record[] rs )
+ :
voidCompiles a Store recordset into a data-format defined by an extension such as Ext.data.JsonWriter or Ext.data.XmlWrit... Compiles a Store recordset into a data-format defined by an extension such as Ext.data.JsonWriter or Ext.data.XmlWriter in preparation for a server-write action. The first two params are similar similar in nature to Ext.apply,
-Where the first parameter is the receiver of paramaters and the second, baseParams, the source. Parameters:
| DataWriter | |
render( String action , Record[] rs , Object params , Object data )
- :
+Where the first parameter is the receiver of paramaters and the second, baseParams, the source.Parameters:
| DataWriter | |
render( String action , Record[] rs , Object params , Object data )
+ :
voidabstract method meant to be overridden by all DataWriter extensions. It's the extension's job to apply the "data" to... abstract method meant to be overridden by all DataWriter extensions. It's the extension's job to apply the "data" to the "params".
-The data-object provided to render is populated with data according to the meta-info defined in the user's DataReader config, Parameters:
| DataWriter | |
toArray( Hash data )
- :
- [Object]Converts a Hashed Ext.data.Record to fields-array array suitable
-for encoding to xml via XTemplate, eg:
+The data-object provided to render is populated with data according to the meta-info defined in the user's DataReader config, Parameters:
| DataWriter | |
toArray( Hash data )
+ :
+ [Object]Converts a Hashed Ext.data.Record to fields-array array suitable
+for encoding to xml via XTemplate, eg:
<tpl for="... Converts a Hashed Ext.data.Record to fields-array array suitable
for encoding to xml via XTemplate, eg:
eg, non-phantom:
Phantom records will have had their idProperty omitted in toHash if determined to be auto-generated.
-Non AUTOINCREMENT pks should have been protected.Parameters:
| DataWriter | |
toHash( Ext.data.Record , Object config )
- :
+Non AUTOINCREMENT pks should have been protected.Parameters:
| DataWriter | |
toHash( Ext.data.Record rec , Object config )
+ :
ObjectConverts a Record to a hash, taking into account the state of the Ext.data.Record along with configuration properties... Converts a Record to a hash, taking into account the state of the Ext.data.Record along with configuration properties
related to its rendering, such as writeAllFields, phantom, getChanges and
-idProperty Parameters:
| DataWriter |
rec
: Ext.data.Recordconfig
: ObjectObject