| createRecord : FunctionAbstract method that should be implemented in all subclasses
+ DataWriter extension for writing an array or single Ext.data.Record object(s) in preparation for executing a remote CRUD action. Config Options|
| createRecord : Function | DataWriter | | destroyRecord : Function | DataWriter | | encode : Booleantrue to encode the
hashed data. Defaults to true. When using
@@ -11,20 +11,33 @@ instead of params. When using a JsonWriter | | listful : Booleanfalse 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 | | returnJson : Boolean | JsonWriter | | updateRecord : Function Abstract method that should be implemented in all subclasses
+even when acting upon a single record. | DataWriter | | returnJson : Boolean | JsonWriter | | updateRecord : Function | DataWriter | | writeAllFields : Booleanfalse 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 |
Public PropertiesThis class has no public properties. Public Methods|
| createRecord( Ext.data.Record rec )
+false to have DataWriter only request modified fields from a record. | DataWriter |
Public PropertiesThis class has no public properties. Public Methods|
| 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... | DataWriter | | createRecord( Ext.data.Record rec )
:
ObjectImplements abstract Ext.data.DataWriter#createRecord Implements abstract Ext.data.DataWriter#createRecord | JsonWriter | | destroyRecord( Ext.data.Record rec )
:
- ObjectImplements abstract Ext.data.DataWriter#destroyRecord Implements abstract Ext.data.DataWriter#destroyRecord | JsonWriter | | render( String action , Record[] rs , Object http , Object data )
+ ObjectImplements abstract Ext.data.DataWriter#destroyRecord Implements abstract Ext.data.DataWriter#destroyRecord | JsonWriter | | render( Object http , Object baseParams , Object/Object[] data )
+ :
+ voidFinal action of a write event. Apply the written data-object to params. Final action of a write event. Apply the written data-object to params. | JsonWriter | | toArray( Hash data )
:
- voidFinal action of a write event. Apply the written data-object to params. Final action of a write event. Apply the written data-object to params. | JsonWriter | | updateRecord( Ext.data.Record rec )
+ [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:
+ <tpl for="."><{name}>{value}</{name}</tpl>
+eg, non-phantom:
+ {id: 1, first: 'foo', last: 'bar'} --> [{name: 'id', value: 1}, {name: 'first', value: 'foo'}, {name: 'last', value: 'bar'}]
+ Phantom records will have had their idProperty omitted in toHash if determined to be auto-generated.
+Non AUTOINCREMENT pks should have been protected. | DataWriter | | toHash( Ext.data.Record , Object config )
:
- ObjectImplements abstract Ext.data.DataWriter#updateRecord Implements abstract Ext.data.DataWriter#updateRecord | JsonWriter | | write( String action , Object params , Record/Record[] rs )
+ ObjectConverts a Record to a hash, taking into account the state of the Ext.data.Record along with configuration properties... | DataWriter | | updateRecord( Ext.data.Record rec )
:
- voidWrites data in preparation for server-write action. Simply proxies to DataWriter#update, DataWriter#create
-DataWrite... Writes data in preparation for server-write action. Simply proxies to DataWriter#update, DataWriter#create
-DataWriter#destroy. | DataWriter |
Public EventsThis class has no public events.
\ No newline at end of file
+ Object Implements abstract Ext.data.DataWriter#updateRecord Implements abstract Ext.data.DataWriter#updateRecord | JsonWriter |