DataWriterXmlWriter
| Package: | Ext.data |
| Defined In: | XmlWriter.js |
| Class: | XmlWriter |
| Extends: | DataWriter |
| 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,
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 | |
| root : String [records] The name of the root element when writing multiple records to the server. Each
xml-record written to the s... [records] The name of the root element when writing multiple records to the server. Each
xml-record written to the server will be wrapped in an element named after Ext.data.XmlReader.record property.
eg:
However, when multiple records are written in a batch-operation, these records must be wrapped in a containing
Element.
eg:
Defaults to records | XmlWriter | |
| tpl : String The xml template. Defaults to
<?xml version="{version}" encoding="{encoding}"?>
<tpl if="{[values.nodes.l... The xml template. Defaults to
| XmlWriter | |
| 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
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 | |
| xmlEncoding : String [ISO-8859-15] The encoding written to header of xml documents.
| XmlWriter | |
| xmlVersion : String [1.0] The version written to header of xml documents.
| XmlWriter | |
| Method | Defined By | |
|---|---|---|
destroyRecord( Ext.data.Record rec )
:
StringdestroyRecord destroyRecord Parameters:
| XmlWriter | |
render( String action, Ext.data.Record/Ext.data.Record[] rs, Object http, Object/Object[] rendered )
:
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. Parameters:
| XmlWriter | |
write( String action, Object params, Record/Record[] rs )
:
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. Parameters:
| DataWriter | |