Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / output / Ext.data.writer.Writer.js
diff --git a/docs/output/Ext.data.writer.Writer.js b/docs/output/Ext.data.writer.Writer.js
new file mode 100644 (file)
index 0000000..462adf7
--- /dev/null
@@ -0,0 +1,153 @@
+Ext.data.JsonP.Ext_data_writer_Writer({
+  "tagname": "class",
+  "name": "Ext.data.writer.Writer",
+  "doc": "<p>Base Writer class used by most subclasses of <a href=\"#/api/Ext.data.proxy.Server\" rel=\"Ext.data.proxy.Server\" class=\"docClass\">Ext.data.proxy.Server</a>. This class is\nresponsible for taking a set of <a href=\"#/api/Ext.data.Operation\" rel=\"Ext.data.Operation\" class=\"docClass\">Ext.data.Operation</a> objects and a <a href=\"#/api/Ext.data.Request\" rel=\"Ext.data.Request\" class=\"docClass\">Ext.data.Request</a>\nobject and modifying that request based on the Operations.</p>\n\n\n\n\n<p>For example a <a href=\"#/api/Ext.data.writer.Json\" rel=\"Ext.data.writer.Json\" class=\"docClass\">Ext.data.writer.Json</a> would format the Operations and their <a href=\"#/api/Ext.data.Model\" rel=\"Ext.data.Model\" class=\"docClass\">Ext.data.Model</a> \ninstances based on the config options passed to the JsonWriter's constructor.</p>\n\n\n\n\n<p>Writers are not needed for any kind of local storage - whether via a\n<a href=\"#/api/Ext.data.proxy.WebStorage\" rel=\"Ext.data.proxy.WebStorage\" class=\"docClass\">Web Storage proxy</a> (see <a href=\"#/api/Ext.data.proxy.LocalStorage\" rel=\"Ext.data.proxy.LocalStorage\" class=\"docClass\">localStorage</a>\nand <a href=\"#/api/Ext.data.proxy.SessionStorage\" rel=\"Ext.data.proxy.SessionStorage\" class=\"docClass\">sessionStorage</a>) or just in memory via a\n<a href=\"#/api/Ext.data.proxy.Memory\" rel=\"Ext.data.proxy.Memory\" class=\"docClass\">MemoryProxy</a>.</p>\n\n",
+  "extends": "Object",
+  "mixins": [
+
+  ],
+  "alternateClassNames": [
+    "Ext.data.DataWriter",
+    "Ext.data.Writer"
+  ],
+  "xtype": null,
+  "author": "Ed Spencer",
+  "docauthor": null,
+  "singleton": false,
+  "private": false,
+  "cfg": [
+    {
+      "tagname": "cfg",
+      "name": "nameProperty",
+      "member": "Ext.data.writer.Writer",
+      "type": "String",
+      "doc": "<p>This property is used to read the key for each value that will be sent to the server.\nFor example:</p>\n\n<pre><code>Ext.define('Person', {\n    extend: 'Ext.data.Model',\n    fields: [{\n        name: 'first',\n        mapping: 'firstName'\n    }, {\n        name: 'last',\n        mapping: 'lastName'\n    }, {\n        name: 'age'\n    }]\n});\nnew Ext.data.writer.Writer({\n    writeAllFields: true,\n    nameProperty: 'mapping'\n});\n\n// This will be sent to the server\n{\n    firstName: 'first name value',\n    lastName: 'last name value',\n    age: 1\n}\n\n</code></pre>\n\n\n<p>Defaults to <tt>name</tt>. If the value is not present, the field name will always be used.</p>\n",
+      "private": false,
+      "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/writer/Writer.js",
+      "linenr": 32,
+      "html_filename": "Writer.html",
+      "href": "Writer.html#Ext-data-writer-Writer-cfg-nameProperty",
+      "shortDoc": "This property is used to read the key for each value that will be sent to the server.\nFor example:\n\nExt.define('Perso..."
+    },
+    {
+      "tagname": "cfg",
+      "name": "writeAllFields",
+      "member": "Ext.data.writer.Writer",
+      "type": "Boolean",
+      "doc": "<p>True to write all fields from the record to the server. If set to false it\nwill only send the fields that were modified. Defaults to <tt>true</tt>. Note that any fields that have\n<a href=\"#/api/Ext.data.Field-cfg-persist\" rel=\"Ext.data.Field-cfg-persist\" class=\"docClass\">Ext.data.Field.persist</a> set to false will still be ignored.</p>\n",
+      "private": false,
+      "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/writer/Writer.js",
+      "linenr": 25,
+      "html_filename": "Writer.html",
+      "href": "Writer.html#Ext-data-writer-Writer-cfg-writeAllFields",
+      "shortDoc": "True to write all fields from the record to the server. If set to false it\nwill only send the fields that were modifi..."
+    }
+  ],
+  "method": [
+    {
+      "tagname": "method",
+      "name": "Writer",
+      "member": "Ext.data.writer.Writer",
+      "doc": "\n",
+      "params": [
+        {
+          "type": "Object",
+          "name": "config",
+          "doc": "<p>Optional config object</p>\n",
+          "optional": false
+        }
+      ],
+      "return": {
+        "type": "void",
+        "doc": "\n"
+      },
+      "private": false,
+      "static": false,
+      "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/writer/Writer.js",
+      "linenr": 1,
+      "html_filename": "Writer.html",
+      "href": "Writer.html#Ext-data-writer-Writer-method-constructor",
+      "shortDoc": "\n"
+    },
+    {
+      "tagname": "method",
+      "name": "getRecordData",
+      "member": "Ext.data.writer.Writer",
+      "doc": "<p>Formats the data for each record before sending it to the server. This\nmethod should be overridden to format the data in a way that differs from the default.</p>\n",
+      "params": [
+        {
+          "type": "Object",
+          "name": "record",
+          "doc": "<p>The record that we are writing to the server.</p>\n",
+          "optional": false
+        }
+      ],
+      "return": {
+        "type": "Object",
+        "doc": "<p>An object literal of name/value keys to be written to the server.\nBy default this method returns the data property on the record.</p>\n"
+      },
+      "private": false,
+      "static": false,
+      "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/writer/Writer.js",
+      "linenr": 87,
+      "html_filename": "Writer.html",
+      "href": "Writer.html#Ext-data-writer-Writer-method-getRecordData",
+      "shortDoc": "Formats the data for each record before sending it to the server. This\nmethod should be overridden to format the data..."
+    },
+    {
+      "tagname": "method",
+      "name": "write",
+      "member": "Ext.data.writer.Writer",
+      "doc": "<p>Prepares a Proxy's <a href=\"#/api/Ext.data.Request\" rel=\"Ext.data.Request\" class=\"docClass\">Ext.data.Request</a> object</p>\n",
+      "params": [
+        {
+          "type": "Ext.data.Request",
+          "name": "request",
+          "doc": "<p>The request object</p>\n",
+          "optional": false
+        }
+      ],
+      "return": {
+        "type": "Ext.data.Request",
+        "doc": "<p>The modified request object</p>\n"
+      },
+      "private": false,
+      "static": false,
+      "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/writer/Writer.js",
+      "linenr": 69,
+      "html_filename": "Writer.html",
+      "href": "Writer.html#Ext-data-writer-Writer-method-write",
+      "shortDoc": "<p>Prepares a Proxy's <a href=\"#/api/Ext.data.Request\" rel=\"Ext.data.Request\" class=\"docClass\">Ext.data.Request</a> object</p>\n"
+    }
+  ],
+  "property": [
+
+  ],
+  "event": [
+
+  ],
+  "filename": "/Users/nick/Projects/sencha/SDK/platform/src/data/writer/Writer.js",
+  "linenr": 1,
+  "html_filename": "Writer.html",
+  "href": "Writer.html#Ext-data-writer-Writer",
+  "cssVar": [
+
+  ],
+  "cssMixin": [
+
+  ],
+  "component": false,
+  "superclasses": [
+
+  ],
+  "subclasses": [
+    "Ext.data.writer.Json",
+    "Ext.data.writer.Xml"
+  ],
+  "mixedInto": [
+
+  ],
+  "allMixins": [
+
+  ]
+});
\ No newline at end of file