Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / output / Ext.data.Model.js
1 Ext.data.JsonP.Ext_data_Model({
2   "allMixins": [
3     "Ext.util.Observable"
4   ],
5   "deprecated": null,
6   "docauthor": null,
7   "members": {
8     "cfg": [
9       {
10         "type": "String",
11         "deprecated": null,
12         "alias": null,
13         "protected": false,
14         "tagname": "cfg",
15         "href": "Model.html#Ext-data-Model-cfg-idProperty",
16         "static": false,
17         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
18         "private": false,
19         "name": "idProperty",
20         "owner": "Ext.data.Model",
21         "doc": "<p>The name of the field treated as this Model's unique id (defaults to 'id').</p>\n",
22         "linenr": 521,
23         "html_filename": "Model.html"
24       },
25       {
26         "type": "Object",
27         "deprecated": null,
28         "alias": null,
29         "protected": false,
30         "tagname": "cfg",
31         "href": "Observable.html#Ext-util-Observable-cfg-listeners",
32         "shortDoc": "A config object containing one or more event handlers to be added to this object during initialization. ...",
33         "static": false,
34         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
35         "private": false,
36         "name": "listeners",
37         "owner": "Ext.util.Observable",
38         "doc": "<p>A config object containing one or more event handlers to be added to this object during initialization. This\nshould be a valid listeners config object as specified in the <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a> example for attaching multiple\nhandlers at once.</p>\n\n<p><strong>DOM events from ExtJS <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a></strong></p>\n\n<p>While <em>some</em> ExtJs Component classes export selected DOM events (e.g. \"click\", \"mouseover\" etc), this is usually\nonly done when extra value can be added. For example the <a href=\"#/api/Ext.view.View\" rel=\"Ext.view.View\" class=\"docClass\">DataView</a>'s <strong><code><a href=\"#/api/Ext.view.View-event-itemclick\" rel=\"Ext.view.View-event-itemclick\" class=\"docClass\">itemclick</a></code></strong> event passing the node clicked on. To access DOM events directly from a\nchild element of a Component, we need to specify the <code>element</code> option to identify the Component property to add a\nDOM listener to:</p>\n\n<pre><code>new Ext.panel.Panel({\n    width: 400,\n    height: 200,\n    dockedItems: [{\n        xtype: 'toolbar'\n    }],\n    listeners: {\n        click: {\n            element: 'el', //bind to the underlying el property on the panel\n            fn: function(){ console.log('click el'); }\n        },\n        dblclick: {\n            element: 'body', //bind to the underlying body property on the panel\n            fn: function(){ console.log('dblclick body'); }\n        }\n    }\n});\n</code></pre>\n",
39         "linenr": 102,
40         "html_filename": "Observable.html"
41       },
42       {
43         "type": "String",
44         "deprecated": null,
45         "alias": null,
46         "protected": false,
47         "tagname": "cfg",
48         "href": "Model.html#Ext-data-Model-cfg-persistenceProperty",
49         "shortDoc": "The property on this Persistable object that its data is saved to. ...",
50         "static": false,
51         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
52         "private": false,
53         "name": "persistenceProperty",
54         "owner": "Ext.data.Model",
55         "doc": "<p>The property on this Persistable object that its data is saved to.\nDefaults to 'data' (e.g. all persistable data resides in this.data.)</p>\n",
56         "linenr": 503,
57         "html_filename": "Model.html"
58       }
59     ],
60     "method": [
61       {
62         "deprecated": null,
63         "alias": null,
64         "href": "Model.html#Ext-data-Model-method-constructor",
65         "tagname": "method",
66         "protected": false,
67         "shortDoc": " ...",
68         "static": false,
69         "params": [
70           {
71             "type": "Object",
72             "optional": false,
73             "doc": "<p>An object containing keys corresponding to this model's fields, and their associated values</p>\n",
74             "name": "data"
75           },
76           {
77             "type": "Number",
78             "optional": true,
79             "doc": "<p>(optional) Unique ID to assign to this model instance</p>\n",
80             "name": "id"
81           }
82         ],
83         "private": false,
84         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
85         "doc": "\n",
86         "owner": "Ext.data.Model",
87         "name": "Model",
88         "html_filename": "Model.html",
89         "return": {
90           "type": "Object",
91           "doc": "\n"
92         },
93         "linenr": 1
94       },
95       {
96         "deprecated": null,
97         "alias": null,
98         "protected": false,
99         "tagname": "method",
100         "href": "Observable.html#Ext-util-Observable-method-addEvents",
101         "shortDoc": "Adds the specified events to the list of events which this Observable may fire. ...",
102         "static": false,
103         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
104         "private": false,
105         "params": [
106           {
107             "type": "Object/String",
108             "optional": false,
109             "doc": "<p>Either an object with event names as properties with a value of <code>true</code> or the first\nevent name string if multiple event names are being passed as separate parameters. Usage:</p>\n\n<pre><code>this.addEvents({\n    storeloaded: true,\n    storecleared: true\n});\n</code></pre>\n",
110             "name": "o"
111           },
112           {
113             "type": "String...",
114             "optional": false,
115             "doc": "<p>Optional additional event names if multiple event names are being passed as separate\nparameters. Usage:</p>\n\n<pre><code>this.addEvents('storeloaded', 'storecleared');\n</code></pre>\n",
116             "name": "more"
117           }
118         ],
119         "name": "addEvents",
120         "owner": "Ext.util.Observable",
121         "doc": "<p>Adds the specified events to the list of events which this Observable may fire.</p>\n",
122         "linenr": 494,
123         "return": {
124           "type": "void",
125           "doc": "\n"
126         },
127         "html_filename": "Observable.html"
128       },
129       {
130         "deprecated": null,
131         "alias": null,
132         "protected": false,
133         "tagname": "method",
134         "href": "Observable.html#Ext-util-Observable-method-addListener",
135         "shortDoc": "Appends an event handler to this object. ...",
136         "static": false,
137         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
138         "private": false,
139         "params": [
140           {
141             "type": "String",
142             "optional": false,
143             "doc": "<p>The name of the event to listen for. May also be an object who's property names are\nevent names.</p>\n",
144             "name": "eventName"
145           },
146           {
147             "type": "Function",
148             "optional": false,
149             "doc": "<p>The method the event invokes.  Will be called with arguments given to\n<a href=\"#/api/Ext.data.Model-method-fireEvent\" rel=\"Ext.data.Model-method-fireEvent\" class=\"docClass\">fireEvent</a> plus the <code>options</code> parameter described below.</p>\n",
150             "name": "handler"
151           },
152           {
153             "type": "Object",
154             "optional": true,
155             "doc": "<p>(optional) The scope (<code>this</code> reference) in which the handler function is executed. <strong>If\nomitted, defaults to the object which fired the event.</strong></p>\n",
156             "name": "scope"
157           },
158           {
159             "type": "Object",
160             "optional": true,
161             "doc": "<p>(optional) An object containing handler configuration.</p>\n\n<p><strong>Note:</strong> Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler.</p>\n\n<p>This object may contain any of the following properties:</p>\n\n<ul>\n<li><p><strong>scope</strong> : Object</p>\n\n<p>The scope (<code>this</code> reference) in which the handler function is executed. <strong>If omitted, defaults to the object\nwhich fired the event.</strong></p></li>\n<li><p><strong>delay</strong> : Number</p>\n\n<p>The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>\n<li><p><strong>single</strong> : Boolean</p>\n\n<p>True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>\n<li><p><strong>buffer</strong> : Number</p>\n\n<p>Causes the handler to be scheduled to run in an <a href=\"#/api/Ext.util.DelayedTask\" rel=\"Ext.util.DelayedTask\" class=\"docClass\">Ext.util.DelayedTask</a> delayed by the specified number of\nmilliseconds. If the event fires again within that time, the original handler is <em>not</em> invoked, but the new\nhandler is scheduled in its place.</p></li>\n<li><p><strong>target</strong> : Observable</p>\n\n<p>Only call the handler if the event was fired on the target Observable, <em>not</em> if the event was bubbled up from a\nchild Observable.</p></li>\n<li><p><strong>element</strong> : String</p>\n\n<p><strong>This option is only valid for listeners bound to <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a>.</strong> The name of a Component\nproperty which references an element to add a listener to.</p>\n\n<p>This option is useful during Component construction to add DOM event listeners to elements of\n<a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a> which will exist only after the Component is rendered.\nFor example, to add a click listener to a Panel's body:</p>\n\n<pre><code>new Ext.panel.Panel({\n    title: 'The title',\n    listeners: {\n        click: this.handlePanelClick,\n        element: 'body'\n    }\n});\n</code></pre></li>\n</ul>\n\n\n<p><strong>Combining Options</strong></p>\n\n<p>Using the options argument, it is possible to combine different types of listeners:</p>\n\n<p>A delayed, one-time listener.</p>\n\n<pre><code>myPanel.on('hide', this.handleClick, this, {\n    single: true,\n    delay: 100\n});\n</code></pre>\n\n<p><strong>Attaching multiple handlers in 1 call</strong></p>\n\n<p>The method also allows for a single argument to be passed which is a config object containing properties which\nspecify multiple events. For example:</p>\n\n<pre><code>myGridPanel.on({\n    cellClick: this.onCellClick,\n    mouseover: this.onMouseOver,\n    mouseout: this.onMouseOut,\n    scope: this // Important. Ensure \"this\" is correct during handler execution\n});\n</code></pre>\n\n<p>One can also specify options for each event handler separately:</p>\n\n<pre><code>myGridPanel.on({\n    cellClick: {fn: this.onCellClick, scope: this, single: true},\n    mouseover: {fn: panel.onMouseOver, scope: panel}\n});\n</code></pre>\n",
162             "name": "options"
163           }
164         ],
165         "name": "addListener",
166         "owner": "Ext.util.Observable",
167         "doc": "<p>Appends an event handler to this object.</p>\n",
168         "linenr": 278,
169         "return": {
170           "type": "void",
171           "doc": "\n"
172         },
173         "html_filename": "Observable.html"
174       },
175       {
176         "deprecated": null,
177         "alias": null,
178         "protected": false,
179         "tagname": "method",
180         "href": "Observable.html#Ext-util-Observable-method-addManagedListener",
181         "shortDoc": "Adds listeners to any Observable object (or Element) which are automatically removed when this Component is\ndestroyed. ...",
182         "static": false,
183         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
184         "private": false,
185         "params": [
186           {
187             "type": "Observable/Element",
188             "optional": false,
189             "doc": "<p>The item to which to add a listener/listeners.</p>\n",
190             "name": "item"
191           },
192           {
193             "type": "Object/String",
194             "optional": false,
195             "doc": "<p>The event name, or an object containing event name properties.</p>\n",
196             "name": "ename"
197           },
198           {
199             "type": "Function",
200             "optional": true,
201             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the handler function.</p>\n",
202             "name": "fn"
203           },
204           {
205             "type": "Object",
206             "optional": true,
207             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the scope (<code>this</code> reference)\nin which the handler function is executed.</p>\n",
208             "name": "scope"
209           },
210           {
211             "type": "Object",
212             "optional": true,
213             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the\n<a href=\"#/api/Ext.util.Observable-method-addListener\" rel=\"Ext.util.Observable-method-addListener\" class=\"docClass\">addListener</a> options.</p>\n",
214             "name": "opt"
215           }
216         ],
217         "name": "addManagedListener",
218         "owner": "Ext.util.Observable",
219         "doc": "<p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component is\ndestroyed.</p>\n",
220         "linenr": 156,
221         "return": {
222           "type": "void",
223           "doc": "\n"
224         },
225         "html_filename": "Observable.html"
226       },
227       {
228         "deprecated": null,
229         "alias": null,
230         "protected": false,
231         "tagname": "method",
232         "href": "Base3.html#Ext-Base-method-addStatics",
233         "shortDoc": "Add / override static properties of this class. ...",
234         "static": true,
235         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
236         "private": false,
237         "params": [
238           {
239             "type": "Object",
240             "optional": false,
241             "doc": "\n",
242             "name": "members"
243           }
244         ],
245         "name": "addStatics",
246         "owner": "Ext.Base",
247         "doc": "<p>Add / override static properties of this class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n</code></pre>\n",
248         "linenr": 388,
249         "return": {
250           "type": "Ext.Base",
251           "doc": "<p>this</p>\n"
252         },
253         "html_filename": "Base3.html"
254       },
255       {
256         "deprecated": null,
257         "alias": null,
258         "protected": false,
259         "tagname": "method",
260         "href": "Model.html#Ext-data-Model-method-beginEdit",
261         "shortDoc": "Begin an edit. ...",
262         "static": false,
263         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
264         "private": false,
265         "params": [
266
267         ],
268         "name": "beginEdit",
269         "owner": "Ext.data.Model",
270         "doc": "<p>Begin an edit. While in edit mode, no events (e.g.. the <code>update</code> event)\nare relayed to the containing store. When an edit has begun, it must be followed\nby either <a href=\"#/api/Ext.data.Model-method-endEdit\" rel=\"Ext.data.Model-method-endEdit\" class=\"docClass\">endEdit</a> or <a href=\"#/api/Ext.data.Model-method-cancelEdit\" rel=\"Ext.data.Model-method-cancelEdit\" class=\"docClass\">cancelEdit</a>.</p>\n",
271         "linenr": 725,
272         "return": {
273           "type": "void",
274           "doc": "\n"
275         },
276         "html_filename": "Model.html"
277       },
278       {
279         "deprecated": null,
280         "alias": null,
281         "protected": false,
282         "tagname": "method",
283         "href": "Base3.html#Ext-Base-method-callOverridden",
284         "shortDoc": "Call the original method that was previously overridden with Ext.Base.override\n\nExt.define('My.Cat', {\n    constructo...",
285         "static": false,
286         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
287         "private": false,
288         "params": [
289           {
290             "type": "Array/Arguments",
291             "optional": false,
292             "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
293             "name": "args"
294           }
295         ],
296         "name": "callOverridden",
297         "owner": "Ext.Base",
298         "doc": "<p>Call the original method that was previously overridden with <a href=\"#/api/Ext.Base-method-override\" rel=\"Ext.Base-method-override\" class=\"docClass\">Ext.Base.override</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
299         "linenr": 269,
300         "return": {
301           "type": "Mixed",
302           "doc": "<p>Returns the result after calling the overridden method</p>\n"
303         },
304         "html_filename": "Base3.html"
305       },
306       {
307         "deprecated": null,
308         "alias": null,
309         "protected": true,
310         "tagname": "method",
311         "href": "Base3.html#Ext-Base-method-callParent",
312         "shortDoc": "Call the parent's overridden method. ...",
313         "static": false,
314         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
315         "private": false,
316         "params": [
317           {
318             "type": "Array/Arguments",
319             "optional": false,
320             "doc": "<p>The arguments, either an array or the <code>arguments</code> object\nfrom the current method, for example: <code>this.callParent(arguments)</code></p>\n",
321             "name": "args"
322           }
323         ],
324         "name": "callParent",
325         "owner": "Ext.Base",
326         "doc": "<p>Call the parent's overridden method. For example:</p>\n\n<pre><code>Ext.define('My.own.A', {\n    constructor: function(test) {\n        alert(test);\n    }\n});\n\nExt.define('My.own.B', {\n    extend: 'My.own.A',\n\n    constructor: function(test) {\n        alert(test);\n\n        this.callParent([test + 1]);\n    }\n});\n\nExt.define('My.own.C', {\n    extend: 'My.own.B',\n\n    constructor: function() {\n        alert(\"Going to call parent's overriden constructor...\");\n\n        this.callParent(arguments);\n    }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n                         // alerts '2', then alerts '3'\n</code></pre>\n",
327         "linenr": 124,
328         "return": {
329           "type": "Mixed",
330           "doc": "<p>Returns the result from the superclass' method</p>\n"
331         },
332         "html_filename": "Base3.html"
333       },
334       {
335         "deprecated": null,
336         "alias": null,
337         "protected": false,
338         "tagname": "method",
339         "href": "Model.html#Ext-data-Model-method-cancelEdit",
340         "shortDoc": "Cancels all changes made in the current edit operation. ...",
341         "static": false,
342         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
343         "private": false,
344         "params": [
345
346         ],
347         "name": "cancelEdit",
348         "owner": "Ext.data.Model",
349         "doc": "<p>Cancels all changes made in the current edit operation.</p>\n",
350         "linenr": 740,
351         "return": {
352           "type": "void",
353           "doc": "\n"
354         },
355         "html_filename": "Model.html"
356       },
357       {
358         "deprecated": null,
359         "alias": null,
360         "protected": false,
361         "tagname": "method",
362         "href": "Observable.html#Ext-util-Observable-method-capture",
363         "shortDoc": "Starts capture on the specified Observable. ...",
364         "static": true,
365         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
366         "private": false,
367         "params": [
368           {
369             "type": "Observable",
370             "optional": false,
371             "doc": "<p>The Observable to capture events from.</p>\n",
372             "name": "o"
373           },
374           {
375             "type": "Function",
376             "optional": false,
377             "doc": "<p>The function to call when an event is fired.</p>\n",
378             "name": "fn"
379           },
380           {
381             "type": "Object",
382             "optional": true,
383             "doc": "<p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to\nthe Observable firing the event.</p>\n",
384             "name": "scope"
385           }
386         ],
387         "name": "capture",
388         "owner": "Ext.util.Observable",
389         "doc": "<p>Starts capture on the specified Observable. All events will be passed to the supplied function with the event\nname + standard signature of the event <strong>before</strong> the event is fired. If the supplied function returns false,\nthe event will not fire.</p>\n",
390         "linenr": 54,
391         "return": {
392           "type": "void",
393           "doc": "\n"
394         },
395         "html_filename": "Observable.html"
396       },
397       {
398         "deprecated": null,
399         "alias": null,
400         "protected": false,
401         "tagname": "method",
402         "href": "Observable.html#Ext-util-Observable-method-clearListeners",
403         "shortDoc": "Removes all listeners for this object including the managed listeners ...",
404         "static": false,
405         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
406         "private": false,
407         "params": [
408
409         ],
410         "name": "clearListeners",
411         "owner": "Ext.util.Observable",
412         "doc": "<p>Removes all listeners for this object including the managed listeners</p>\n",
413         "linenr": 425,
414         "return": {
415           "type": "void",
416           "doc": "\n"
417         },
418         "html_filename": "Observable.html"
419       },
420       {
421         "deprecated": null,
422         "alias": null,
423         "protected": false,
424         "tagname": "method",
425         "href": "Observable.html#Ext-util-Observable-method-clearManagedListeners",
426         "shortDoc": "Removes all managed listeners for this object. ...",
427         "static": false,
428         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
429         "private": false,
430         "params": [
431
432         ],
433         "name": "clearManagedListeners",
434         "owner": "Ext.util.Observable",
435         "doc": "<p>Removes all managed listeners for this object.</p>\n",
436         "linenr": 454,
437         "return": {
438           "type": "void",
439           "doc": "\n"
440         },
441         "html_filename": "Observable.html"
442       },
443       {
444         "deprecated": null,
445         "alias": null,
446         "protected": false,
447         "tagname": "method",
448         "href": "Model.html#Ext-data-Model-method-commit",
449         "shortDoc": "Usually called by the Ext.data.Store which owns the model instance. ...",
450         "static": false,
451         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
452         "private": false,
453         "params": [
454           {
455             "type": "Boolean",
456             "optional": true,
457             "doc": "<p>(optional) True to skip notification of the owning\nstore of the change (defaults to false)</p>\n",
458             "name": "silent"
459           }
460         ],
461         "name": "commit",
462         "owner": "Ext.data.Model",
463         "doc": "<p>Usually called by the <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a> which owns the model instance.\nCommits all changes made to the instance since either creation or the last commit operation.</p>\n\n<p>Developers should subscribe to the <a href=\"#/api/Ext.data.Store-event-update\" rel=\"Ext.data.Store-event-update\" class=\"docClass\">Ext.data.Store.update</a> event\nto have their code notified of commit operations.</p>\n\n",
464         "linenr": 866,
465         "return": {
466           "type": "void",
467           "doc": "\n"
468         },
469         "html_filename": "Model.html"
470       },
471       {
472         "deprecated": null,
473         "alias": null,
474         "protected": false,
475         "tagname": "method",
476         "href": "Model.html#Ext-data-Model-method-copy",
477         "shortDoc": "Creates a copy (clone) of this Model instance. ...",
478         "static": false,
479         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
480         "private": false,
481         "params": [
482           {
483             "type": "String",
484             "optional": true,
485             "doc": "<p>(optional) A new id, defaults to the id\nof the instance being copied. See <code><a href=\"#/api/Ext.data.Model-method-id\" rel=\"Ext.data.Model-method-id\" class=\"docClass\">id</a></code>.\nTo generate a phantom instance with a new id use:</p>\n\n<pre><code>var rec = record.copy(); // clone the record\nExt.data.Model.id(rec); // automatically generate a unique sequential id\n</code></pre>\n\n",
486             "name": "id"
487           }
488         ],
489         "name": "copy",
490         "owner": "Ext.data.Model",
491         "doc": "<p>Creates a copy (clone) of this Model instance.</p>\n",
492         "linenr": 887,
493         "return": {
494           "type": "Record",
495           "doc": "\n"
496         },
497         "html_filename": "Model.html"
498       },
499       {
500         "deprecated": null,
501         "alias": null,
502         "protected": false,
503         "tagname": "method",
504         "href": "Base3.html#Ext-Base-method-create",
505         "shortDoc": "Create a new instance of this Class. ...",
506         "static": true,
507         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
508         "private": false,
509         "params": [
510
511         ],
512         "name": "create",
513         "owner": "Ext.Base",
514         "doc": "<p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n</code></pre>\n\n<p>All parameters are passed to the constructor of the class.</p>\n",
515         "linenr": 329,
516         "return": {
517           "type": "Object",
518           "doc": "<p>the created instance.</p>\n"
519         },
520         "html_filename": "Base3.html"
521       },
522       {
523         "deprecated": null,
524         "alias": null,
525         "protected": false,
526         "tagname": "method",
527         "href": "Base3.html#Ext-Base-method-createAlias",
528         "shortDoc": "Create aliases for existing prototype methods. ...",
529         "static": true,
530         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
531         "private": false,
532         "params": [
533           {
534             "type": "String/Object",
535             "optional": false,
536             "doc": "<p>The new method name, or an object to set multiple aliases. See\n<a href=\"#/api/Ext.Function-method-flexSetter\" rel=\"Ext.Function-method-flexSetter\" class=\"docClass\">flexSetter</a></p>\n",
537             "name": "alias"
538           },
539           {
540             "type": "String/Object",
541             "optional": false,
542             "doc": "<p>The original method name</p>\n",
543             "name": "origin"
544           }
545         ],
546         "name": "createAlias",
547         "owner": "Ext.Base",
548         "doc": "<p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -&gt; test.method1()\n</code></pre>\n",
549         "linenr": 648,
550         "return": {
551           "type": "void",
552           "doc": "\n"
553         },
554         "html_filename": "Base3.html"
555       },
556       {
557         "deprecated": null,
558         "alias": null,
559         "protected": false,
560         "tagname": "method",
561         "href": "Model.html#Ext-data-Model-method-destroy",
562         "shortDoc": "Destroys the model using the configured proxy ...",
563         "static": false,
564         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
565         "private": false,
566         "params": [
567           {
568             "type": "Object",
569             "optional": false,
570             "doc": "<p>Options to pass to the proxy</p>\n",
571             "name": "options"
572           }
573         ],
574         "name": "destroy",
575         "owner": "Ext.data.Model",
576         "doc": "<p>Destroys the model using the configured proxy</p>\n",
577         "linenr": 1015,
578         "return": {
579           "type": "Ext.data.Model",
580           "doc": "<p>The Model instance</p>\n"
581         },
582         "html_filename": "Model.html"
583       },
584       {
585         "deprecated": null,
586         "alias": null,
587         "protected": false,
588         "tagname": "method",
589         "href": "Observable.html#Ext-util-Observable-method-enableBubble",
590         "shortDoc": "Enables events fired by this Observable to bubble up an owner hierarchy by calling this.getBubbleTarget() if\npresent. ...",
591         "static": false,
592         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
593         "private": false,
594         "params": [
595           {
596             "type": "String/[String]",
597             "optional": false,
598             "doc": "<p>The event name to bubble, or an Array of event names.</p>\n",
599             "name": "events"
600           }
601         ],
602         "name": "enableBubble",
603         "owner": "Ext.util.Observable",
604         "doc": "<p>Enables events fired by this Observable to bubble up an owner hierarchy by calling <code>this.getBubbleTarget()</code> if\npresent. There is no implementation in the Observable base class.</p>\n\n<p>This is commonly used by Ext.Components to bubble events to owner Containers.\nSee <a href=\"#/api/Ext.Component-method-getBubbleTarget\" rel=\"Ext.Component-method-getBubbleTarget\" class=\"docClass\">Ext.Component.getBubbleTarget</a>. The default implementation in <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Ext.Component</a> returns the\nComponent's immediate owner. But if a known target is required, this can be overridden to access the\nrequired target more quickly.</p>\n\n<p>Example:</p>\n\n<pre><code>Ext.override(Ext.form.field.Base, {\n    //  Add functionality to Field's initComponent to enable the change event to bubble\n    initComponent : Ext.Function.createSequence(Ext.form.field.Base.prototype.initComponent, function() {\n        this.enableBubble('change');\n    }),\n\n    //  We know that we want Field's events to bubble directly to the FormPanel.\n    getBubbleTarget : function() {\n        if (!this.formPanel) {\n            this.formPanel = this.findParentByType('form');\n        }\n        return this.formPanel;\n    }\n});\n\nvar myForm = new Ext.formPanel({\n    title: 'User Details',\n    items: [{\n        ...\n    }],\n    listeners: {\n        change: function() {\n            // Title goes red if form has been modified.\n            myForm.header.setStyle('color', 'red');\n        }\n    }\n});\n</code></pre>\n",
605         "linenr": 609,
606         "return": {
607           "type": "void",
608           "doc": "\n"
609         },
610         "html_filename": "Observable.html"
611       },
612       {
613         "deprecated": null,
614         "alias": null,
615         "protected": false,
616         "tagname": "method",
617         "href": "Model.html#Ext-data-Model-method-endEdit",
618         "shortDoc": "End an edit. ...",
619         "static": false,
620         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
621         "private": false,
622         "params": [
623           {
624             "type": "Boolean",
625             "optional": false,
626             "doc": "<p>True to not notify the store of the change</p>\n",
627             "name": "silent"
628           }
629         ],
630         "name": "endEdit",
631         "owner": "Ext.data.Model",
632         "doc": "<p>End an edit. If any data was modified, the containing store is notified\n(ie, the store's <code>update</code> event will fire).</p>\n",
633         "linenr": 757,
634         "return": {
635           "type": "void",
636           "doc": "\n"
637         },
638         "html_filename": "Model.html"
639       },
640       {
641         "deprecated": null,
642         "alias": null,
643         "protected": false,
644         "tagname": "method",
645         "href": "Observable.html#Ext-util-Observable-method-fireEvent",
646         "shortDoc": "Fires the specified event with the passed parameters (minus the event name, plus the options object passed\nto addList...",
647         "static": false,
648         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
649         "private": false,
650         "params": [
651           {
652             "type": "String",
653             "optional": false,
654             "doc": "<p>The name of the event to fire.</p>\n",
655             "name": "eventName"
656           },
657           {
658             "type": "Object...",
659             "optional": false,
660             "doc": "<p>Variable number of parameters are passed to handlers.</p>\n",
661             "name": "args"
662           }
663         ],
664         "name": "fireEvent",
665         "owner": "Ext.util.Observable",
666         "doc": "<p>Fires the specified event with the passed parameters (minus the event name, plus the <code>options</code> object passed\nto <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a>).</p>\n\n<p>An event may be set to bubble up an Observable parent hierarchy (See <a href=\"#/api/Ext.Component-method-getBubbleTarget\" rel=\"Ext.Component-method-getBubbleTarget\" class=\"docClass\">Ext.Component.getBubbleTarget</a>) by\ncalling <a href=\"#/api/Ext.data.Model-method-enableBubble\" rel=\"Ext.data.Model-method-enableBubble\" class=\"docClass\">enableBubble</a>.</p>\n",
667         "linenr": 233,
668         "return": {
669           "type": "Boolean",
670           "doc": "<p>returns false if any of the handlers return false otherwise it returns true.</p>\n"
671         },
672         "html_filename": "Observable.html"
673       },
674       {
675         "deprecated": null,
676         "alias": null,
677         "protected": false,
678         "tagname": "method",
679         "href": "Model.html#Ext-data-Model-method-get",
680         "shortDoc": "Returns the value of the given field ...",
681         "static": false,
682         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
683         "private": false,
684         "params": [
685           {
686             "type": "String",
687             "optional": false,
688             "doc": "<p>The field to fetch the value for</p>\n",
689             "name": "fieldName"
690           }
691         ],
692         "name": "get",
693         "owner": "Ext.data.Model",
694         "doc": "<p>Returns the value of the given field</p>\n",
695         "linenr": 625,
696         "return": {
697           "type": "Mixed",
698           "doc": "<p>The value</p>\n"
699         },
700         "html_filename": "Model.html"
701       },
702       {
703         "deprecated": null,
704         "alias": null,
705         "protected": false,
706         "tagname": "method",
707         "href": "Model.html#Ext-data-Model-method-getAssociatedData",
708         "shortDoc": "Gets all of the data from this Models loaded associations. ...",
709         "static": false,
710         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
711         "private": false,
712         "params": [
713
714         ],
715         "name": "getAssociatedData",
716         "owner": "Ext.data.Model",
717         "doc": "<p>Gets all of the data from this Models <em>loaded</em> associations.\nIt does this recursively - for example if we have a User which\nhasMany Orders, and each Order hasMany OrderItems, it will return an object like this:\n{</p>\n\n<pre><code>orders: [\n    {\n        id: 123,\n        status: 'shipped',\n        orderItems: [\n            ...\n        ]\n    }\n]\n</code></pre>\n\n<p>}</p>\n",
718         "linenr": 1126,
719         "return": {
720           "type": "Object",
721           "doc": "<p>The nested data set for the Model's loaded associations</p>\n"
722         },
723         "html_filename": "Model.html"
724       },
725       {
726         "deprecated": null,
727         "alias": null,
728         "protected": false,
729         "tagname": "method",
730         "href": "Model.html#Ext-data-Model-method-getChanges",
731         "shortDoc": "Gets a hash of only the fields that have been modified since this Model was created or commited. ...",
732         "static": false,
733         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
734         "private": false,
735         "params": [
736
737         ],
738         "name": "getChanges",
739         "owner": "Ext.data.Model",
740         "doc": "<p>Gets a hash of only the fields that have been modified since this Model was created or commited.</p>\n",
741         "linenr": 775,
742         "return": {
743           "type": "void",
744           "doc": "<p>Object</p>\n"
745         },
746         "html_filename": "Model.html"
747       },
748       {
749         "deprecated": null,
750         "alias": null,
751         "protected": false,
752         "tagname": "method",
753         "href": "Model.html#Ext-data-Model-method-getId",
754         "shortDoc": "Returns the unique ID allocated to this model instance as defined by idProperty ...",
755         "static": false,
756         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
757         "private": false,
758         "params": [
759
760         ],
761         "name": "getId",
762         "owner": "Ext.data.Model",
763         "doc": "<p>Returns the unique ID allocated to this model instance as defined by <a href=\"#/api/Ext.data.Model-cfg-idProperty\" rel=\"Ext.data.Model-cfg-idProperty\" class=\"docClass\">idProperty</a></p>\n",
764         "linenr": 1048,
765         "return": {
766           "type": "Number",
767           "doc": "<p>The id</p>\n"
768         },
769         "html_filename": "Model.html"
770       },
771       {
772         "deprecated": null,
773         "alias": null,
774         "protected": false,
775         "tagname": "method",
776         "href": "Base3.html#Ext-Base-method-getName",
777         "shortDoc": "Get the current class' name in string format. ...",
778         "static": false,
779         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
780         "private": false,
781         "params": [
782
783         ],
784         "name": "getName",
785         "owner": "Ext.Base",
786         "doc": "<p>Get the current class' name in string format.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n</code></pre>\n",
787         "linenr": 631,
788         "return": {
789           "type": "String",
790           "doc": "<p>className</p>\n"
791         },
792         "html_filename": "Base3.html"
793       },
794       {
795         "deprecated": null,
796         "alias": null,
797         "protected": false,
798         "tagname": "method",
799         "href": "Model.html#Ext-data-Model-method-getProxy",
800         "shortDoc": "Returns the configured Proxy for this Model ...",
801         "static": false,
802         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
803         "private": false,
804         "params": [
805
806         ],
807         "name": "getProxy",
808         "owner": "Ext.data.Model",
809         "doc": "<p>Returns the configured Proxy for this Model</p>\n",
810         "linenr": 924,
811         "return": {
812           "type": "Ext.data.proxy.Proxy",
813           "doc": "<p>The proxy</p>\n"
814         },
815         "html_filename": "Model.html"
816       },
817       {
818         "deprecated": null,
819         "alias": null,
820         "protected": false,
821         "tagname": "method",
822         "href": "Observable.html#Ext-util-Observable-method-hasListener",
823         "shortDoc": "Checks to see if this object has any listeners for a specified event ...",
824         "static": false,
825         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
826         "private": false,
827         "params": [
828           {
829             "type": "String",
830             "optional": false,
831             "doc": "<p>The name of the event to check for</p>\n",
832             "name": "eventName"
833           }
834         ],
835         "name": "hasListener",
836         "owner": "Ext.util.Observable",
837         "doc": "<p>Checks to see if this object has any listeners for a specified event</p>\n",
838         "linenr": 530,
839         "return": {
840           "type": "Boolean",
841           "doc": "<p>True if the event is being listened for, else false</p>\n"
842         },
843         "html_filename": "Observable.html"
844       },
845       {
846         "deprecated": null,
847         "alias": null,
848         "protected": false,
849         "tagname": "method",
850         "href": "Model.html#Ext-data-Model-method-id",
851         "shortDoc": "Generates a sequential id. ...",
852         "static": true,
853         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
854         "private": false,
855         "params": [
856           {
857             "type": "Ext.data.Model",
858             "optional": false,
859             "doc": "<p>The record being created.  The record does not exist, it's a <a href=\"#/api/Ext.data.Model-property-phantom\" rel=\"Ext.data.Model-property-phantom\" class=\"docClass\">phantom</a>.</p>\n",
860             "name": "rec"
861           }
862         ],
863         "name": "id",
864         "owner": "Ext.data.Model",
865         "doc": "<p>Generates a sequential id. This method is typically called when a record is <a href=\"#/api/Ext.data.Model-method-create\" rel=\"Ext.data.Model-method-create\" class=\"docClass\">create</a>d\nand no id has been specified. The id will automatically be assigned\nto the record. The returned id takes the form:\n<tt>&#123;PREFIX}-&#123;AUTO_ID}</tt>.<div class=\"mdetail-params\"><ul>\n<li><b><tt>PREFIX</tt></b> : String<p class=\"sub-desc\"><tt>Ext.data.Model.PREFIX</tt>\n(defaults to <tt>'ext-record'</tt>)</p></li>\n<li><b><tt>AUTO_ID</tt></b> : String<p class=\"sub-desc\"><tt>Ext.data.Model.AUTO_ID</tt>\n(defaults to <tt>1</tt> initially)</p></li>\n</ul></div></p>\n",
866         "linenr": 468,
867         "return": {
868           "type": "String",
869           "doc": "<p>auto-generated string id, <tt>\"ext-record-i++'</tt>;</p>\n"
870         },
871         "html_filename": "Model.html"
872       },
873       {
874         "deprecated": null,
875         "alias": null,
876         "protected": false,
877         "tagname": "method",
878         "href": "Base3.html#Ext-Base-method-implement",
879         "shortDoc": "Add methods / properties to the prototype of this class. ...",
880         "static": true,
881         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
882         "private": false,
883         "params": [
884           {
885             "type": "Object",
886             "optional": false,
887             "doc": "\n",
888             "name": "members"
889           }
890         ],
891         "name": "implement",
892         "owner": "Ext.Base",
893         "doc": "<p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.implement({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n</code></pre>\n",
894         "linenr": 415,
895         "return": {
896           "type": "void",
897           "doc": "\n"
898         },
899         "html_filename": "Base3.html"
900       },
901       {
902         "deprecated": null,
903         "alias": null,
904         "protected": true,
905         "tagname": "method",
906         "href": "Base3.html#Ext-Base-method-initConfig",
907         "shortDoc": "Initialize configuration for this class. ...",
908         "static": false,
909         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
910         "private": false,
911         "params": [
912           {
913             "type": "Object",
914             "optional": false,
915             "doc": "\n",
916             "name": "config"
917           }
918         ],
919         "name": "initConfig",
920         "owner": "Ext.Base",
921         "doc": "<p>Initialize configuration for this class. a typical example:</p>\n\n<pre><code>Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n\n        return this;\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n</code></pre>\n",
922         "linenr": 63,
923         "return": {
924           "type": "Object",
925           "doc": "<p>mixins The mixin prototypes as key - value pairs</p>\n"
926         },
927         "html_filename": "Base3.html"
928       },
929       {
930         "deprecated": null,
931         "alias": null,
932         "protected": false,
933         "tagname": "method",
934         "href": "Model.html#Ext-data-Model-method-isModified",
935         "shortDoc": "Returns true if the passed field name has been modified\nsince the load or last commit. ...",
936         "static": false,
937         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
938         "private": false,
939         "params": [
940           {
941             "type": "String",
942             "optional": false,
943             "doc": "<p><a href=\"#/api/Ext.data.Field-cfg-name\" rel=\"Ext.data.Field-cfg-name\" class=\"docClass\">Ext.data.Field.name</a></p>\n",
944             "name": "fieldName"
945           }
946         ],
947         "name": "isModified",
948         "owner": "Ext.data.Model",
949         "doc": "<p>Returns <tt>true</tt> if the passed field name has been <code><a href=\"#/api/Ext.data.Model-property-modified\" rel=\"Ext.data.Model-property-modified\" class=\"docClass\">modified</a></code>\nsince the load or last commit.</p>\n",
950         "linenr": 793,
951         "return": {
952           "type": "Boolean",
953           "doc": "\n"
954         },
955         "html_filename": "Model.html"
956       },
957       {
958         "deprecated": null,
959         "alias": null,
960         "protected": false,
961         "tagname": "method",
962         "href": "Model.html#Ext-data-Model-method-isValid",
963         "shortDoc": "Checks if the model is valid. ...",
964         "static": false,
965         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
966         "private": false,
967         "params": [
968
969         ],
970         "name": "isValid",
971         "owner": "Ext.data.Model",
972         "doc": "<p>Checks if the model is valid. See <a href=\"#/api/Ext.data.Model-method-validate\" rel=\"Ext.data.Model-method-validate\" class=\"docClass\">validate</a>.</p>\n",
973         "linenr": 964,
974         "return": {
975           "type": "Boolean",
976           "doc": "<p>True if the model is valid.</p>\n"
977         },
978         "html_filename": "Model.html"
979       },
980       {
981         "deprecated": null,
982         "alias": null,
983         "protected": false,
984         "tagname": "method",
985         "href": "Model.html#Ext-data-Model-method-join",
986         "shortDoc": "Tells this model instance that it has been added to a store ...",
987         "static": false,
988         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
989         "private": false,
990         "params": [
991           {
992             "type": "Ext.data.Store",
993             "optional": false,
994             "doc": "<p>The store that the model has been added to</p>\n",
995             "name": "store"
996           }
997         ],
998         "name": "join",
999         "owner": "Ext.data.Model",
1000         "doc": "<p>Tells this model instance that it has been added to a store</p>\n",
1001         "linenr": 1064,
1002         "return": {
1003           "type": "void",
1004           "doc": "\n"
1005         },
1006         "html_filename": "Model.html"
1007       },
1008       {
1009         "deprecated": null,
1010         "alias": null,
1011         "protected": false,
1012         "tagname": "method",
1013         "href": "Model.html#Ext-data-Model-method-load",
1014         "shortDoc": "Static. ...",
1015         "static": true,
1016         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1017         "private": false,
1018         "params": [
1019           {
1020             "type": "Number",
1021             "optional": false,
1022             "doc": "<p>The id of the model to load</p>\n",
1023             "name": "id"
1024           },
1025           {
1026             "type": "Object",
1027             "optional": false,
1028             "doc": "<p>Optional config object containing success, failure and callback functions, plus optional scope</p>\n",
1029             "name": "config"
1030           }
1031         ],
1032         "name": "load",
1033         "owner": "Ext.data.Model",
1034         "doc": "<p><b>Static</b>. Asynchronously loads a model instance by id. Sample usage:</p>\n\n<pre><code>    MyApp.User = Ext.define('User', {\n        extend: 'Ext.data.Model',\n        fields: [\n            {name: 'id', type: 'int'},\n            {name: 'name', type: 'string'}\n        ]\n    });\n\n    MyApp.User.load(10, {\n        scope: this,\n        failure: function(record, operation) {\n            //do something if the load failed\n        },\n        success: function(record, operation) {\n            //do something if the load succeeded\n        },\n        callback: function(record, operation) {\n            //do something whether the load succeeded or failed\n        }\n    });\n    </code></pre>\n\n",
1035         "linenr": 405,
1036         "return": {
1037           "type": "void",
1038           "doc": "\n"
1039         },
1040         "html_filename": "Model.html"
1041       },
1042       {
1043         "deprecated": null,
1044         "alias": {
1045           "tagname": "alias",
1046           "cls": "Ext.util.Observable",
1047           "doc": null,
1048           "owner": "addManagedListener"
1049         },
1050         "protected": false,
1051         "tagname": "method",
1052         "href": "Observable.html#Ext-util-Observable-method-mon",
1053         "shortDoc": "Shorthand for addManagedListener. ...",
1054         "static": false,
1055         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1056         "private": false,
1057         "params": [
1058           {
1059             "type": "Observable/Element",
1060             "optional": false,
1061             "doc": "<p>The item to which to add a listener/listeners.</p>\n",
1062             "name": "item"
1063           },
1064           {
1065             "type": "Object/String",
1066             "optional": false,
1067             "doc": "<p>The event name, or an object containing event name properties.</p>\n",
1068             "name": "ename"
1069           },
1070           {
1071             "type": "Function",
1072             "optional": true,
1073             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the handler function.</p>\n",
1074             "name": "fn"
1075           },
1076           {
1077             "type": "Object",
1078             "optional": true,
1079             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the scope (<code>this</code> reference)\nin which the handler function is executed.</p>\n",
1080             "name": "scope"
1081           },
1082           {
1083             "type": "Object",
1084             "optional": true,
1085             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the\n<a href=\"#/api/Ext.util.Observable-method-addListener\" rel=\"Ext.util.Observable-method-addListener\" class=\"docClass\">addListener</a> options.</p>\n",
1086             "name": "opt"
1087           }
1088         ],
1089         "name": "mon",
1090         "owner": "Ext.util.Observable",
1091         "doc": "<p>Shorthand for <a href=\"#/api/Ext.data.Model-method-addManagedListener\" rel=\"Ext.data.Model-method-addManagedListener\" class=\"docClass\">addManagedListener</a>.</p>\n\n<p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component is\ndestroyed.</p>\n",
1092         "linenr": 681,
1093         "return": {
1094           "type": "void",
1095           "doc": "\n"
1096         },
1097         "html_filename": "Observable.html"
1098       },
1099       {
1100         "deprecated": null,
1101         "alias": {
1102           "tagname": "alias",
1103           "cls": "Ext.util.Observable",
1104           "doc": null,
1105           "owner": "removeManagedListener"
1106         },
1107         "protected": false,
1108         "tagname": "method",
1109         "href": "Observable.html#Ext-util-Observable-method-mun",
1110         "shortDoc": "Shorthand for removeManagedListener. ...",
1111         "static": false,
1112         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1113         "private": false,
1114         "params": [
1115           {
1116             "type": "Observable|Element",
1117             "optional": false,
1118             "doc": "<p>The item from which to remove a listener/listeners.</p>\n",
1119             "name": "item"
1120           },
1121           {
1122             "type": "Object|String",
1123             "optional": false,
1124             "doc": "<p>The event name, or an object containing event name properties.</p>\n",
1125             "name": "ename"
1126           },
1127           {
1128             "type": "Function",
1129             "optional": false,
1130             "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this is the handler function.</p>\n",
1131             "name": "fn"
1132           },
1133           {
1134             "type": "Object",
1135             "optional": false,
1136             "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this is the scope (<code>this</code> reference)\nin which the handler function is executed.</p>\n",
1137             "name": "scope"
1138           }
1139         ],
1140         "name": "mun",
1141         "owner": "Ext.util.Observable",
1142         "doc": "<p>Shorthand for <a href=\"#/api/Ext.data.Model-method-removeManagedListener\" rel=\"Ext.data.Model-method-removeManagedListener\" class=\"docClass\">removeManagedListener</a>.</p>\n\n<p>Removes listeners that were added by the <a href=\"#/api/Ext.data.Model-method-mon\" rel=\"Ext.data.Model-method-mon\" class=\"docClass\">mon</a> method.</p>\n",
1143         "linenr": 687,
1144         "return": {
1145           "type": "void",
1146           "doc": "\n"
1147         },
1148         "html_filename": "Observable.html"
1149       },
1150       {
1151         "deprecated": null,
1152         "alias": null,
1153         "protected": false,
1154         "tagname": "method",
1155         "href": "Observable.html#Ext-util-Observable-method-observe",
1156         "shortDoc": "Sets observability on the passed class constructor. ...",
1157         "static": true,
1158         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1159         "private": false,
1160         "params": [
1161           {
1162             "type": "Function",
1163             "optional": false,
1164             "doc": "<p>The class constructor to make observable.</p>\n",
1165             "name": "c"
1166           },
1167           {
1168             "type": "Object",
1169             "optional": false,
1170             "doc": "<p>An object containing a series of listeners to add. See <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a>.</p>\n",
1171             "name": "listeners"
1172           }
1173         ],
1174         "name": "observe",
1175         "owner": "Ext.util.Observable",
1176         "doc": "<p>Sets observability on the passed class constructor.</p>\n\n<p>This makes any event fired on any instance of the passed class also fire a single event through\nthe <strong>class</strong> allowing for central handling of events on many instances at once.</p>\n\n<p>Usage:</p>\n\n<pre><code>Ext.util.Observable.observe(Ext.data.Connection);\nExt.data.Connection.on('beforerequest', function(con, options) {\n    console.log('Ajax request made to ' + options.url);\n});\n</code></pre>\n",
1177         "linenr": 69,
1178         "return": {
1179           "type": "void",
1180           "doc": "\n"
1181         },
1182         "html_filename": "Observable.html"
1183       },
1184       {
1185         "deprecated": null,
1186         "alias": {
1187           "tagname": "alias",
1188           "cls": "Ext.util.Observable",
1189           "doc": null,
1190           "owner": "addListener"
1191         },
1192         "protected": false,
1193         "tagname": "method",
1194         "href": "Observable.html#Ext-util-Observable-method-on",
1195         "shortDoc": "Shorthand for addListener. ...",
1196         "static": false,
1197         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1198         "private": false,
1199         "params": [
1200           {
1201             "type": "String",
1202             "optional": false,
1203             "doc": "<p>The name of the event to listen for. May also be an object who's property names are\nevent names.</p>\n",
1204             "name": "eventName"
1205           },
1206           {
1207             "type": "Function",
1208             "optional": false,
1209             "doc": "<p>The method the event invokes.  Will be called with arguments given to\n<a href=\"#/api/Ext.data.Model-method-fireEvent\" rel=\"Ext.data.Model-method-fireEvent\" class=\"docClass\">fireEvent</a> plus the <code>options</code> parameter described below.</p>\n",
1210             "name": "handler"
1211           },
1212           {
1213             "type": "Object",
1214             "optional": true,
1215             "doc": "<p>(optional) The scope (<code>this</code> reference) in which the handler function is executed. <strong>If\nomitted, defaults to the object which fired the event.</strong></p>\n",
1216             "name": "scope"
1217           },
1218           {
1219             "type": "Object",
1220             "optional": true,
1221             "doc": "<p>(optional) An object containing handler configuration.</p>\n\n<p><strong>Note:</strong> Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler.</p>\n\n<p>This object may contain any of the following properties:</p>\n\n<ul>\n<li><p><strong>scope</strong> : Object</p>\n\n<p>The scope (<code>this</code> reference) in which the handler function is executed. <strong>If omitted, defaults to the object\nwhich fired the event.</strong></p></li>\n<li><p><strong>delay</strong> : Number</p>\n\n<p>The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>\n<li><p><strong>single</strong> : Boolean</p>\n\n<p>True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>\n<li><p><strong>buffer</strong> : Number</p>\n\n<p>Causes the handler to be scheduled to run in an <a href=\"#/api/Ext.util.DelayedTask\" rel=\"Ext.util.DelayedTask\" class=\"docClass\">Ext.util.DelayedTask</a> delayed by the specified number of\nmilliseconds. If the event fires again within that time, the original handler is <em>not</em> invoked, but the new\nhandler is scheduled in its place.</p></li>\n<li><p><strong>target</strong> : Observable</p>\n\n<p>Only call the handler if the event was fired on the target Observable, <em>not</em> if the event was bubbled up from a\nchild Observable.</p></li>\n<li><p><strong>element</strong> : String</p>\n\n<p><strong>This option is only valid for listeners bound to <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a>.</strong> The name of a Component\nproperty which references an element to add a listener to.</p>\n\n<p>This option is useful during Component construction to add DOM event listeners to elements of\n<a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a> which will exist only after the Component is rendered.\nFor example, to add a click listener to a Panel's body:</p>\n\n<pre><code>new Ext.panel.Panel({\n    title: 'The title',\n    listeners: {\n        click: this.handlePanelClick,\n        element: 'body'\n    }\n});\n</code></pre></li>\n</ul>\n\n\n<p><strong>Combining Options</strong></p>\n\n<p>Using the options argument, it is possible to combine different types of listeners:</p>\n\n<p>A delayed, one-time listener.</p>\n\n<pre><code>myPanel.on('hide', this.handleClick, this, {\n    single: true,\n    delay: 100\n});\n</code></pre>\n\n<p><strong>Attaching multiple handlers in 1 call</strong></p>\n\n<p>The method also allows for a single argument to be passed which is a config object containing properties which\nspecify multiple events. For example:</p>\n\n<pre><code>myGridPanel.on({\n    cellClick: this.onCellClick,\n    mouseover: this.onMouseOver,\n    mouseout: this.onMouseOut,\n    scope: this // Important. Ensure \"this\" is correct during handler execution\n});\n</code></pre>\n\n<p>One can also specify options for each event handler separately:</p>\n\n<pre><code>myGridPanel.on({\n    cellClick: {fn: this.onCellClick, scope: this, single: true},\n    mouseover: {fn: panel.onMouseOver, scope: panel}\n});\n</code></pre>\n",
1222             "name": "options"
1223           }
1224         ],
1225         "name": "on",
1226         "owner": "Ext.util.Observable",
1227         "doc": "<p>Shorthand for <a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a>.</p>\n\n<p>Appends an event handler to this object.</p>\n",
1228         "linenr": 669,
1229         "return": {
1230           "type": "void",
1231           "doc": "\n"
1232         },
1233         "html_filename": "Observable.html"
1234       },
1235       {
1236         "deprecated": null,
1237         "alias": null,
1238         "protected": false,
1239         "tagname": "method",
1240         "href": "Base3.html#Ext-Base-method-override",
1241         "shortDoc": "Override prototype members of this class. ...",
1242         "static": true,
1243         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
1244         "private": false,
1245         "params": [
1246           {
1247             "type": "Object",
1248             "optional": false,
1249             "doc": "\n",
1250             "name": "members"
1251           }
1252         ],
1253         "name": "override",
1254         "owner": "Ext.Base",
1255         "doc": "<p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">Ext.Base.callOverridden</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
1256         "linenr": 518,
1257         "return": {
1258           "type": "Ext.Base",
1259           "doc": "<p>this</p>\n"
1260         },
1261         "html_filename": "Base3.html"
1262       },
1263       {
1264         "deprecated": null,
1265         "alias": null,
1266         "protected": false,
1267         "tagname": "method",
1268         "href": "Model.html#Ext-data-Model-method-reject",
1269         "shortDoc": "Usually called by the Ext.data.Store to which this model instance has been joined. ...",
1270         "static": false,
1271         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1272         "private": false,
1273         "params": [
1274           {
1275             "type": "Boolean",
1276             "optional": true,
1277             "doc": "<p>(optional) True to skip notification of the owning\nstore of the change (defaults to false)</p>\n",
1278             "name": "silent"
1279           }
1280         ],
1281         "name": "reject",
1282         "owner": "Ext.data.Model",
1283         "doc": "<p>Usually called by the <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a> to which this model instance has been <a href=\"#/api/Ext.data.Model-method-join\" rel=\"Ext.data.Model-method-join\" class=\"docClass\">joined</a>.\nRejects all changes made to the model instance since either creation, or the last commit operation.\nModified fields are reverted to their original values.</p>\n\n<p>Developers should subscribe to the <a href=\"#/api/Ext.data.Store-event-update\" rel=\"Ext.data.Store-event-update\" class=\"docClass\">Ext.data.Store.update</a> event\nto have their code notified of reject operations.</p>\n\n",
1284         "linenr": 835,
1285         "return": {
1286           "type": "void",
1287           "doc": "\n"
1288         },
1289         "html_filename": "Model.html"
1290       },
1291       {
1292         "deprecated": null,
1293         "alias": null,
1294         "protected": false,
1295         "tagname": "method",
1296         "href": "Observable.html#Ext-util-Observable-method-relayEvents",
1297         "shortDoc": "Relays selected events from the specified Observable as if the events were fired by this. ...",
1298         "static": false,
1299         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1300         "private": false,
1301         "params": [
1302           {
1303             "type": "Object",
1304             "optional": false,
1305             "doc": "<p>The Observable whose events this object is to relay.</p>\n",
1306             "name": "origin"
1307           },
1308           {
1309             "type": "[String]",
1310             "optional": false,
1311             "doc": "<p>Array of event names to relay.</p>\n",
1312             "name": "events"
1313           },
1314           {
1315             "type": "Object",
1316             "optional": false,
1317             "doc": "\n",
1318             "name": "prefix"
1319           }
1320         ],
1321         "name": "relayEvents",
1322         "owner": "Ext.util.Observable",
1323         "doc": "<p>Relays selected events from the specified Observable as if the events were fired by <code>this</code>.</p>\n",
1324         "linenr": 573,
1325         "return": {
1326           "type": "void",
1327           "doc": "\n"
1328         },
1329         "html_filename": "Observable.html"
1330       },
1331       {
1332         "deprecated": null,
1333         "alias": null,
1334         "protected": false,
1335         "tagname": "method",
1336         "href": "Observable.html#Ext-util-Observable-method-releaseCapture",
1337         "shortDoc": "Removes all added captures from the Observable. ...",
1338         "static": true,
1339         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1340         "private": false,
1341         "params": [
1342           {
1343             "type": "Observable",
1344             "optional": false,
1345             "doc": "<p>The Observable to release</p>\n",
1346             "name": "o"
1347           }
1348         ],
1349         "name": "releaseCapture",
1350         "owner": "Ext.util.Observable",
1351         "doc": "<p>Removes <strong>all</strong> added captures from the Observable.</p>\n",
1352         "linenr": 44,
1353         "return": {
1354           "type": "void",
1355           "doc": "\n"
1356         },
1357         "html_filename": "Observable.html"
1358       },
1359       {
1360         "deprecated": null,
1361         "alias": null,
1362         "protected": false,
1363         "tagname": "method",
1364         "href": "Observable.html#Ext-util-Observable-method-removeListener",
1365         "shortDoc": "Removes an event handler. ...",
1366         "static": false,
1367         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1368         "private": false,
1369         "params": [
1370           {
1371             "type": "String",
1372             "optional": false,
1373             "doc": "<p>The type of event the handler was associated with.</p>\n",
1374             "name": "eventName"
1375           },
1376           {
1377             "type": "Function",
1378             "optional": false,
1379             "doc": "<p>The handler to remove. <strong>This must be a reference to the function passed into the\n<a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a> call.</strong></p>\n",
1380             "name": "handler"
1381           },
1382           {
1383             "type": "Object",
1384             "optional": true,
1385             "doc": "<p>(optional) The scope originally specified for the handler.</p>\n",
1386             "name": "scope"
1387           }
1388         ],
1389         "name": "removeListener",
1390         "owner": "Ext.util.Observable",
1391         "doc": "<p>Removes an event handler.</p>\n",
1392         "linenr": 392,
1393         "return": {
1394           "type": "void",
1395           "doc": "\n"
1396         },
1397         "html_filename": "Observable.html"
1398       },
1399       {
1400         "deprecated": null,
1401         "alias": null,
1402         "protected": false,
1403         "tagname": "method",
1404         "href": "Observable.html#Ext-util-Observable-method-removeManagedListener",
1405         "shortDoc": "Removes listeners that were added by the mon method. ...",
1406         "static": false,
1407         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1408         "private": false,
1409         "params": [
1410           {
1411             "type": "Observable|Element",
1412             "optional": false,
1413             "doc": "<p>The item from which to remove a listener/listeners.</p>\n",
1414             "name": "item"
1415           },
1416           {
1417             "type": "Object|String",
1418             "optional": false,
1419             "doc": "<p>The event name, or an object containing event name properties.</p>\n",
1420             "name": "ename"
1421           },
1422           {
1423             "type": "Function",
1424             "optional": false,
1425             "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this is the handler function.</p>\n",
1426             "name": "fn"
1427           },
1428           {
1429             "type": "Object",
1430             "optional": false,
1431             "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this is the scope (<code>this</code> reference)\nin which the handler function is executed.</p>\n",
1432             "name": "scope"
1433           }
1434         ],
1435         "name": "removeManagedListener",
1436         "owner": "Ext.util.Observable",
1437         "doc": "<p>Removes listeners that were added by the <a href=\"#/api/Ext.data.Model-method-mon\" rel=\"Ext.data.Model-method-mon\" class=\"docClass\">mon</a> method.</p>\n",
1438         "linenr": 197,
1439         "return": {
1440           "type": "void",
1441           "doc": "\n"
1442         },
1443         "html_filename": "Observable.html"
1444       },
1445       {
1446         "deprecated": null,
1447         "alias": null,
1448         "protected": false,
1449         "tagname": "method",
1450         "href": "Observable.html#Ext-util-Observable-method-resumeEvents",
1451         "shortDoc": "Resumes firing events (see suspendEvents). ...",
1452         "static": false,
1453         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1454         "private": false,
1455         "params": [
1456
1457         ],
1458         "name": "resumeEvents",
1459         "owner": "Ext.util.Observable",
1460         "doc": "<p>Resumes firing events (see <a href=\"#/api/Ext.data.Model-method-suspendEvents\" rel=\"Ext.data.Model-method-suspendEvents\" class=\"docClass\">suspendEvents</a>).</p>\n\n<p>If events were suspended using the <code>**queueSuspended**</code> parameter, then all events fired\nduring event suspension will be sent to any listeners now.</p>\n",
1461         "linenr": 554,
1462         "return": {
1463           "type": "void",
1464           "doc": "\n"
1465         },
1466         "html_filename": "Observable.html"
1467       },
1468       {
1469         "deprecated": null,
1470         "alias": null,
1471         "protected": false,
1472         "tagname": "method",
1473         "href": "Model.html#Ext-data-Model-method-save",
1474         "shortDoc": "Saves the model instance using the configured proxy ...",
1475         "static": false,
1476         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1477         "private": false,
1478         "params": [
1479           {
1480             "type": "Object",
1481             "optional": false,
1482             "doc": "<p>Options to pass to the proxy</p>\n",
1483             "name": "options"
1484           }
1485         ],
1486         "name": "save",
1487         "owner": "Ext.data.Model",
1488         "doc": "<p>Saves the model instance using the configured proxy</p>\n",
1489         "linenr": 972,
1490         "return": {
1491           "type": "Ext.data.Model",
1492           "doc": "<p>The Model instance</p>\n"
1493         },
1494         "html_filename": "Model.html"
1495       },
1496       {
1497         "deprecated": null,
1498         "alias": null,
1499         "protected": false,
1500         "tagname": "method",
1501         "href": "Model.html#Ext-data-Model-method-set",
1502         "shortDoc": "Sets the given field to the given value, marks the instance as dirty ...",
1503         "static": false,
1504         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1505         "private": false,
1506         "params": [
1507           {
1508             "type": "String|Object",
1509             "optional": false,
1510             "doc": "<p>The field to set, or an object containing key/value pairs</p>\n",
1511             "name": "fieldName"
1512           },
1513           {
1514             "type": "Mixed",
1515             "optional": false,
1516             "doc": "<p>The value to set</p>\n",
1517             "name": "value"
1518           }
1519         ],
1520         "name": "set",
1521         "owner": "Ext.data.Model",
1522         "doc": "<p>Sets the given field to the given value, marks the instance as dirty</p>\n",
1523         "linenr": 634,
1524         "return": {
1525           "type": "void",
1526           "doc": "\n"
1527         },
1528         "html_filename": "Model.html"
1529       },
1530       {
1531         "deprecated": null,
1532         "alias": null,
1533         "protected": false,
1534         "tagname": "method",
1535         "href": "Model.html#Ext-data-Model-method-setDirty",
1536         "shortDoc": "Marks this Record as dirty. ...",
1537         "static": false,
1538         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1539         "private": false,
1540         "params": [
1541
1542         ],
1543         "name": "setDirty",
1544         "owner": "Ext.data.Model",
1545         "doc": "<p>Marks this <b>Record</b> as <code><a href=\"#/api/Ext.data.Model-property-dirty\" rel=\"Ext.data.Model-property-dirty\" class=\"docClass\">dirty</a></code>.  This method\nis used interally when adding <code><a href=\"#/api/Ext.data.Model-property-phantom\" rel=\"Ext.data.Model-property-phantom\" class=\"docClass\">phantom</a></code> records to a\nwriter enabled store.</p>\n\n\n<br><p>Marking a record <code><a href=\"#/api/Ext.data.Model-property-dirty\" rel=\"Ext.data.Model-property-dirty\" class=\"docClass\">dirty</a></code> causes the phantom to\n\n\n<p>be returned by Ext.data.Store.getModifiedRecords where it will\nhave a create action composed for it during store save\noperations.</p></p>\n",
1546         "linenr": 803,
1547         "return": {
1548           "type": "void",
1549           "doc": "\n"
1550         },
1551         "html_filename": "Model.html"
1552       },
1553       {
1554         "deprecated": null,
1555         "alias": null,
1556         "protected": false,
1557         "tagname": "method",
1558         "href": "Model.html#Ext-data-Model-method-setId",
1559         "shortDoc": "Sets the model instance's id field to the given id ...",
1560         "static": false,
1561         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1562         "private": false,
1563         "params": [
1564           {
1565             "type": "Number",
1566             "optional": false,
1567             "doc": "<p>The new id</p>\n",
1568             "name": "id"
1569           }
1570         ],
1571         "name": "setId",
1572         "owner": "Ext.data.Model",
1573         "doc": "<p>Sets the model instance's id field to the given id</p>\n",
1574         "linenr": 1056,
1575         "return": {
1576           "type": "void",
1577           "doc": "\n"
1578         },
1579         "html_filename": "Model.html"
1580       },
1581       {
1582         "deprecated": null,
1583         "alias": null,
1584         "protected": false,
1585         "tagname": "method",
1586         "href": "Model.html#Ext-data-Model-method-setProxy",
1587         "shortDoc": "Sets the Proxy to use for this model. ...",
1588         "static": true,
1589         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1590         "private": false,
1591         "params": [
1592           {
1593             "type": "String/Object/Ext.data.proxy.Proxy",
1594             "optional": false,
1595             "doc": "<p>The proxy</p>\n",
1596             "name": "proxy"
1597           }
1598         ],
1599         "name": "setProxy",
1600         "owner": "Ext.data.Model",
1601         "doc": "<p>Sets the Proxy to use for this model. Accepts any options that can be accepted by <a href=\"#/api/Ext-method-createByAlias\" rel=\"Ext-method-createByAlias\" class=\"docClass\">Ext.createByAlias</a></p>\n",
1602         "linenr": 903,
1603         "return": {
1604           "type": "void",
1605           "doc": "\n"
1606         },
1607         "html_filename": "Model.html"
1608       },
1609       {
1610         "deprecated": null,
1611         "alias": null,
1612         "protected": true,
1613         "tagname": "method",
1614         "href": "Base3.html#Ext-Base-method-statics",
1615         "shortDoc": "Get the reference to the class from which this object was instantiated. ...",
1616         "static": false,
1617         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
1618         "private": false,
1619         "params": [
1620
1621         ],
1622         "name": "statics",
1623         "owner": "Ext.Base",
1624         "doc": "<p>Get the reference to the class from which this object was instantiated. Note that unlike <a href=\"#/api/Ext.Base-property-self\" rel=\"Ext.Base-property-self\" class=\"docClass\">Ext.Base.self</a>,\n<code>this.statics()</code> is scope-independent and it always returns the class from which it was called, regardless of what\n<code>this</code> points to during run-time</p>\n\n<pre><code>Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n\n        return this;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n</code></pre>\n",
1625         "linenr": 199,
1626         "return": {
1627           "type": "Class",
1628           "doc": "\n"
1629         },
1630         "html_filename": "Base3.html"
1631       },
1632       {
1633         "deprecated": null,
1634         "alias": null,
1635         "protected": false,
1636         "tagname": "method",
1637         "href": "Observable.html#Ext-util-Observable-method-suspendEvents",
1638         "shortDoc": "Suspends the firing of all events. ...",
1639         "static": false,
1640         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1641         "private": false,
1642         "params": [
1643           {
1644             "type": "Boolean",
1645             "optional": false,
1646             "doc": "<p>Pass as true to queue up suspended events to be fired\nafter the <a href=\"#/api/Ext.data.Model-method-resumeEvents\" rel=\"Ext.data.Model-method-resumeEvents\" class=\"docClass\">resumeEvents</a> call instead of discarding all suspended events.</p>\n",
1647             "name": "queueSuspended"
1648           }
1649         ],
1650         "name": "suspendEvents",
1651         "owner": "Ext.util.Observable",
1652         "doc": "<p>Suspends the firing of all events. (see <a href=\"#/api/Ext.data.Model-method-resumeEvents\" rel=\"Ext.data.Model-method-resumeEvents\" class=\"docClass\">resumeEvents</a>)</p>\n",
1653         "linenr": 541,
1654         "return": {
1655           "type": "void",
1656           "doc": "\n"
1657         },
1658         "html_filename": "Observable.html"
1659       },
1660       {
1661         "deprecated": null,
1662         "alias": {
1663           "tagname": "alias",
1664           "cls": "Ext.util.Observable",
1665           "doc": null,
1666           "owner": "removeListener"
1667         },
1668         "protected": false,
1669         "tagname": "method",
1670         "href": "Observable.html#Ext-util-Observable-method-un",
1671         "shortDoc": "Shorthand for removeListener. ...",
1672         "static": false,
1673         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1674         "private": false,
1675         "params": [
1676           {
1677             "type": "String",
1678             "optional": false,
1679             "doc": "<p>The type of event the handler was associated with.</p>\n",
1680             "name": "eventName"
1681           },
1682           {
1683             "type": "Function",
1684             "optional": false,
1685             "doc": "<p>The handler to remove. <strong>This must be a reference to the function passed into the\n<a href=\"#/api/Ext.data.Model-method-addListener\" rel=\"Ext.data.Model-method-addListener\" class=\"docClass\">addListener</a> call.</strong></p>\n",
1686             "name": "handler"
1687           },
1688           {
1689             "type": "Object",
1690             "optional": true,
1691             "doc": "<p>(optional) The scope originally specified for the handler.</p>\n",
1692             "name": "scope"
1693           }
1694         ],
1695         "name": "un",
1696         "owner": "Ext.util.Observable",
1697         "doc": "<p>Shorthand for <a href=\"#/api/Ext.data.Model-method-removeListener\" rel=\"Ext.data.Model-method-removeListener\" class=\"docClass\">removeListener</a>.</p>\n\n<p>Removes an event handler.</p>\n",
1698         "linenr": 675,
1699         "return": {
1700           "type": "void",
1701           "doc": "\n"
1702         },
1703         "html_filename": "Observable.html"
1704       },
1705       {
1706         "deprecated": null,
1707         "alias": null,
1708         "protected": false,
1709         "tagname": "method",
1710         "href": "Model.html#Ext-data-Model-method-unjoin",
1711         "shortDoc": "Tells this model instance that it has been removed from the store ...",
1712         "static": false,
1713         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1714         "private": false,
1715         "params": [
1716
1717         ],
1718         "name": "unjoin",
1719         "owner": "Ext.data.Model",
1720         "doc": "<p>Tells this model instance that it has been removed from the store</p>\n",
1721         "linenr": 1077,
1722         "return": {
1723           "type": "void",
1724           "doc": "\n"
1725         },
1726         "html_filename": "Model.html"
1727       },
1728       {
1729         "deprecated": null,
1730         "alias": null,
1731         "protected": false,
1732         "tagname": "method",
1733         "href": "Model.html#Ext-data-Model-method-validate",
1734         "shortDoc": "Validates the current data against all of its configured validations and returns an\nErrors object ...",
1735         "static": false,
1736         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1737         "private": false,
1738         "params": [
1739
1740         ],
1741         "name": "validate",
1742         "owner": "Ext.data.Model",
1743         "doc": "<p>Validates the current data against all of its configured validations and returns an\n<a href=\"#/api/Ext.data.Errors\" rel=\"Ext.data.Errors\" class=\"docClass\">Errors</a> object</p>\n",
1744         "linenr": 932,
1745         "return": {
1746           "type": "Ext.data.Errors",
1747           "doc": "<p>The errors object</p>\n"
1748         },
1749         "html_filename": "Model.html"
1750       }
1751     ],
1752     "property": [
1753       {
1754         "type": "String",
1755         "deprecated": null,
1756         "alias": null,
1757         "protected": false,
1758         "tagname": "property",
1759         "href": "Model.html#Ext-data-Model-property-defaultProxyType",
1760         "shortDoc": "The string type of the default Model Proxy. ...",
1761         "static": false,
1762         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1763         "private": false,
1764         "name": "defaultProxyType",
1765         "owner": "Ext.data.Model",
1766         "doc": "<p>The string type of the default Model Proxy. Defaults to 'ajax'</p>\n",
1767         "linenr": 526,
1768         "html_filename": "Model.html"
1769       },
1770       {
1771         "type": "Boolean",
1772         "deprecated": null,
1773         "alias": null,
1774         "protected": false,
1775         "tagname": "property",
1776         "href": "Model.html#Ext-data-Model-property-dirty",
1777         "static": false,
1778         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1779         "private": false,
1780         "name": "dirty",
1781         "owner": "Ext.data.Model",
1782         "doc": "<p>Readonly flag - true if this Record has been modified.</p>\n",
1783         "linenr": 497,
1784         "html_filename": "Model.html"
1785       },
1786       {
1787         "type": "Boolean",
1788         "deprecated": null,
1789         "alias": null,
1790         "protected": false,
1791         "tagname": "property",
1792         "href": "Model.html#Ext-data-Model-property-editing",
1793         "shortDoc": "Internal flag used to track whether or not the model instance is currently being edited. ...",
1794         "static": false,
1795         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1796         "private": false,
1797         "name": "editing",
1798         "owner": "Ext.data.Model",
1799         "doc": "<p>Internal flag used to track whether or not the model instance is currently being edited. Read-only</p>\n",
1800         "linenr": 490,
1801         "html_filename": "Model.html"
1802       },
1803       {
1804         "type": "Array",
1805         "deprecated": null,
1806         "alias": null,
1807         "protected": false,
1808         "tagname": "property",
1809         "href": "Model.html#Ext-data-Model-property-fields",
1810         "static": false,
1811         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1812         "private": false,
1813         "name": "fields",
1814         "owner": "Ext.data.Model",
1815         "doc": "<p>An array of the fields defined on this model</p>\n",
1816         "linenr": 533,
1817         "html_filename": "Model.html"
1818       },
1819       {
1820         "type": "Object",
1821         "deprecated": null,
1822         "alias": null,
1823         "protected": false,
1824         "tagname": "property",
1825         "href": "Model.html#Ext-data-Model-property-modified",
1826         "static": false,
1827         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1828         "private": false,
1829         "name": "modified",
1830         "owner": "Ext.data.Model",
1831         "doc": "<p>Key: value pairs of all fields whose values have changed</p>\n",
1832         "linenr": 571,
1833         "html_filename": "Model.html"
1834       },
1835       {
1836         "type": "Boolean",
1837         "deprecated": null,
1838         "alias": null,
1839         "protected": false,
1840         "tagname": "property",
1841         "href": "Model.html#Ext-data-Model-property-phantom",
1842         "shortDoc": "true when the record does not yet exist in a server-side database (see\nsetDirty). ...",
1843         "static": false,
1844         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1845         "private": false,
1846         "name": "phantom",
1847         "owner": "Ext.data.Model",
1848         "doc": "<p><tt>true</tt> when the record does not yet exist in a server-side database (see\n<a href=\"#/api/Ext.data.Model-method-setDirty\" rel=\"Ext.data.Model-method-setDirty\" class=\"docClass\">setDirty</a>).  Any record which has a real database pk set as its id property\nis NOT a phantom -- it's real.</p>\n",
1849         "linenr": 512,
1850         "html_filename": "Model.html"
1851       },
1852       {
1853         "type": "Object",
1854         "deprecated": null,
1855         "alias": null,
1856         "protected": false,
1857         "tagname": "property",
1858         "href": "Model.html#Ext-data-Model-property-raw",
1859         "static": false,
1860         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1861         "private": false,
1862         "name": "raw",
1863         "owner": "Ext.data.Model",
1864         "doc": "<p>The raw data used to create this model if created via a reader.</p>\n",
1865         "linenr": 560,
1866         "html_filename": "Model.html"
1867       },
1868       {
1869         "type": "Class",
1870         "deprecated": null,
1871         "alias": null,
1872         "protected": true,
1873         "tagname": "property",
1874         "href": "Base3.html#Ext-Base-property-self",
1875         "shortDoc": "Get the reference to the current class from which this object was instantiated. ...",
1876         "static": false,
1877         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
1878         "private": false,
1879         "name": "self",
1880         "owner": "Ext.Base",
1881         "doc": "<p>Get the reference to the current class from which this object was instantiated. Unlike <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>,\n<code>this.self</code> is scope-dependent and it's meant to be used for dynamic inheritance. See <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>\nfor a detailed comparison</p>\n\n<pre><code>Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); / dependent on 'this'\n\n        return this;\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n</code></pre>\n",
1882         "linenr": 18,
1883         "html_filename": "Base3.html"
1884       },
1885       {
1886         "type": "Ext.data.Store",
1887         "deprecated": null,
1888         "alias": null,
1889         "protected": false,
1890         "tagname": "property",
1891         "href": "Model.html#Ext-data-Model-property-store",
1892         "static": false,
1893         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1894         "private": false,
1895         "name": "store",
1896         "owner": "Ext.data.Model",
1897         "doc": "<p>The <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a> to which this Record belongs.</p>\n",
1898         "linenr": 1069,
1899         "html_filename": "Model.html"
1900       }
1901     ],
1902     "cssVar": [
1903
1904     ],
1905     "cssMixin": [
1906
1907     ],
1908     "event": [
1909
1910     ]
1911   },
1912   "singleton": false,
1913   "alias": null,
1914   "superclasses": [
1915     "Ext.Base"
1916   ],
1917   "protected": false,
1918   "tagname": "class",
1919   "mixins": [
1920     "Ext.util.Observable"
1921   ],
1922   "href": "Model.html#Ext-data-Model",
1923   "subclasses": [
1924     "Ext.grid.property.Property"
1925   ],
1926   "static": false,
1927   "author": "Ed Spencer",
1928   "component": false,
1929   "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Model.js",
1930   "private": false,
1931   "alternateClassNames": [
1932     "Ext.data.Record"
1933   ],
1934   "name": "Ext.data.Model",
1935   "doc": "<p>A Model represents some object that your application manages. For example, one might define a Model for Users, Products,\nCars, or any other real-world object that we want to model in the system. Models are registered via the <a href=\"#/api/Ext.ModelManager\" rel=\"Ext.ModelManager\" class=\"docClass\">model manager</a>,\nand are used by <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">stores</a>, which are in turn used by many of the data-bound components in Ext.</p>\n\n\n\n\n<p>Models are defined as a set of fields and any arbitrary methods and properties relevant to the model. For example:</p>\n\n\n\n\n<pre><code>Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: [\n        {name: 'name',  type: 'string'},\n        {name: 'age',   type: 'int'},\n        {name: 'phone', type: 'string'},\n        {name: 'alive', type: 'boolean', defaultValue: true}\n    ],\n\n    changeName: function() {\n        var oldName = this.get('name'),\n            newName = oldName + \" The Barbarian\";\n\n        this.set('name', newName);\n    }\n});\n</code></pre>\n\n\n\n\n<p>The fields array is turned into a <a href=\"#/api/Ext.util.MixedCollection\" rel=\"Ext.util.MixedCollection\" class=\"docClass\">MixedCollection</a> automatically by the <a href=\"#/api/Ext.ModelManager\" rel=\"Ext.ModelManager\" class=\"docClass\">ModelManager</a>, and all\nother functions and properties are copied to the new Model's prototype.</p>\n\n\n\n\n<p>Now we can create instances of our User model and call any model logic we defined:</p>\n\n\n\n\n<pre><code>var user = Ext.ModelManager.create({\n    name : 'Conan',\n    age  : 24,\n    phone: '555-555-5555'\n}, 'User');\n\nuser.changeName();\nuser.get('name'); //returns \"Conan The Barbarian\"\n</code></pre>\n\n\n\n\n<p><u>Validations</u></p>\n\n\n\n\n<p>Models have built-in support for validations, which are executed against the validator functions in\n<a href=\"#/api/Ext.data.validations\" rel=\"Ext.data.validations\" class=\"docClass\">Ext.data.validations</a> (<a href=\"#/api/Ext.data.validations\" rel=\"Ext.data.validations\" class=\"docClass\">see all validation functions</a>). Validations are easy to add to models:</p>\n\n\n\n\n<pre><code>Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: [\n        {name: 'name',     type: 'string'},\n        {name: 'age',      type: 'int'},\n        {name: 'phone',    type: 'string'},\n        {name: 'gender',   type: 'string'},\n        {name: 'username', type: 'string'},\n        {name: 'alive',    type: 'boolean', defaultValue: true}\n    ],\n\n    validations: [\n        {type: 'presence',  field: 'age'},\n        {type: 'length',    field: 'name',     min: 2},\n        {type: 'inclusion', field: 'gender',   list: ['Male', 'Female']},\n        {type: 'exclusion', field: 'username', list: ['Admin', 'Operator']},\n        {type: 'format',    field: 'username', matcher: /([a-z]+)[0-9]{2,3}/}\n    ]\n});\n</code></pre>\n\n\n\n\n<p>The validations can be run by simply calling the <a href=\"#/api/Ext.data.Model-method-validate\" rel=\"Ext.data.Model-method-validate\" class=\"docClass\">validate</a> function, which returns a <a href=\"#/api/Ext.data.Errors\" rel=\"Ext.data.Errors\" class=\"docClass\">Ext.data.Errors</a>\nobject:</p>\n\n\n\n\n<pre><code>var instance = Ext.ModelManager.create({\n    name: 'Ed',\n    gender: 'Male',\n    username: 'edspencer'\n}, 'User');\n\nvar errors = instance.validate();\n</code></pre>\n\n\n\n\n<p><u>Associations</u></p>\n\n\n\n\n<p>Models can have associations with other Models via <a href=\"#/api/Ext.data.BelongsToAssociation\" rel=\"Ext.data.BelongsToAssociation\" class=\"docClass\">belongsTo</a> and\n<a href=\"#/api/Ext.data.HasManyAssociation\" rel=\"Ext.data.HasManyAssociation\" class=\"docClass\">hasMany</a> associations. For example, let's say we're writing a blog administration\napplication which deals with Users, Posts and Comments. We can express the relationships between these models like this:</p>\n\n\n\n\n<pre><code>Ext.define('Post', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'user_id'],\n\n    belongsTo: 'User',\n    hasMany  : {model: 'Comment', name: 'comments'}\n});\n\nExt.define('Comment', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'user_id', 'post_id'],\n\n    belongsTo: 'Post'\n});\n\nExt.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id'],\n\n    hasMany: [\n        'Post',\n        {model: 'Comment', name: 'comments'}\n    ]\n});\n</code></pre>\n\n\n\n\n<p>See the docs for <a href=\"#/api/Ext.data.BelongsToAssociation\" rel=\"Ext.data.BelongsToAssociation\" class=\"docClass\">Ext.data.BelongsToAssociation</a> and <a href=\"#/api/Ext.data.HasManyAssociation\" rel=\"Ext.data.HasManyAssociation\" class=\"docClass\">Ext.data.HasManyAssociation</a> for details on the usage\nand configuration of associations. Note that associations can also be specified like this:</p>\n\n\n\n\n<pre><code>Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id'],\n\n    associations: [\n        {type: 'hasMany', model: 'Post',    name: 'posts'},\n        {type: 'hasMany', model: 'Comment', name: 'comments'}\n    ]\n});\n</code></pre>\n\n\n\n\n<p><u>Using a Proxy</u></p>\n\n\n\n\n<p>Models are great for representing types of data and relationships, but sooner or later we're going to want to\nload or save that data somewhere. All loading and saving of data is handled via a <a href=\"#/api/Ext.data.proxy.Proxy\" rel=\"Ext.data.proxy.Proxy\" class=\"docClass\">Proxy</a>,\nwhich can be set directly on the Model:</p>\n\n\n\n\n<pre><code>Ext.define('User', {\n    extend: 'Ext.data.Model',\n    fields: ['id', 'name', 'email'],\n\n    proxy: {\n        type: 'rest',\n        url : '/users'\n    }\n});\n</code></pre>\n\n\n\n\n<p>Here we've set up a <a href=\"#/api/Ext.data.proxy.Rest\" rel=\"Ext.data.proxy.Rest\" class=\"docClass\">Rest Proxy</a>, which knows how to load and save data to and from a\nRESTful backend. Let's see how this works:</p>\n\n\n\n\n<pre><code>var user = Ext.ModelManager.create({name: 'Ed Spencer', email: 'ed@sencha.com'}, 'User');\n\nuser.save(); //POST /users\n</code></pre>\n\n\n\n\n<p>Calling <a href=\"#/api/Ext.data.Model-method-save\" rel=\"Ext.data.Model-method-save\" class=\"docClass\">save</a> on the new Model instance tells the configured RestProxy that we wish to persist this\nModel's data onto our server. RestProxy figures out that this Model hasn't been saved before because it doesn't\nhave an id, and performs the appropriate action - in this case issuing a POST request to the url we configured\n(/users). We configure any Proxy on any Model and always follow this API - see <a href=\"#/api/Ext.data.proxy.Proxy\" rel=\"Ext.data.proxy.Proxy\" class=\"docClass\">Ext.data.proxy.Proxy</a> for a full\nlist.</p>\n\n\n\n\n<p>Loading data via the Proxy is equally easy:</p>\n\n\n\n\n<pre><code>//get a reference to the User model class\nvar User = Ext.ModelManager.getModel('User');\n\n//Uses the configured RestProxy to make a GET request to /users/123\nUser.load(123, {\n    success: function(user) {\n        console.log(user.getId()); //logs 123\n    }\n});\n</code></pre>\n\n\n\n\n<p>Models can also be updated and destroyed easily:</p>\n\n\n\n\n<pre><code>//the user Model we loaded in the last snippet:\nuser.set('name', 'Edward Spencer');\n\n//tells the Proxy to save the Model. In this case it will perform a PUT request to /users/123 as this Model already has an id\nuser.save({\n    success: function() {\n        console.log('The User was updated');\n    }\n});\n\n//tells the Proxy to destroy the Model. Performs a DELETE request to /users/123\nuser.destroy({\n    success: function() {\n        console.log('The User was destroyed!');\n    }\n});\n</code></pre>\n\n\n\n\n<p><u>Usage in Stores</u></p>\n\n\n\n\n<p>It is very common to want to load a set of Model instances to be displayed and manipulated in the UI. We do this\nby creating a <a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Store</a>:</p>\n\n\n\n\n<pre><code>var store = new Ext.data.Store({\n    model: 'User'\n});\n\n//uses the Proxy we set up on Model to load the Store data\nstore.load();\n</code></pre>\n\n\n\n\n<p>A Store is just a collection of Model instances - usually loaded from a server somewhere. Store can also maintain\na set of added, updated and removed Model instances to be synchronized with the server via the Proxy. See the\n<a href=\"#/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Store docs</a> for more information on Stores.</p>\n\n",
1936   "mixedInto": [
1937
1938   ],
1939   "linenr": 1,
1940   "xtypes": [
1941
1942   ],
1943   "html_filename": "Model.html",
1944   "extends": "Ext.Base"
1945 });