1 Ext.data.JsonP.Ext_ModelManager({
17 "href": "ModelManager.html#Ext-ModelManager-method-create",
18 "shortDoc": "Creates a new instance of a Model using the given data. ...",
20 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/ModelManager.js",
26 "doc": "<p>Data to initialize the Model's fields with</p>\n",
32 "doc": "<p>The name of the model to create</p>\n",
38 "doc": "<p>Optional unique id of the Model instance (see <a href=\"#/api/Ext.data.Model\" rel=\"Ext.data.Model\" class=\"docClass\">Ext.data.Model</a>)</p>\n",
43 "owner": "Ext.ModelManager",
44 "doc": "<p>Creates a new instance of a Model using the given data.</p>\n",
50 "html_filename": "ModelManager.html"
57 "href": "AbstractManager.html#Ext-AbstractManager-method-each",
58 "shortDoc": "Executes the specified function once for each item in the collection. ...",
60 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
66 "doc": "<p>The function to execute.</p>\n",
72 "doc": "<p>The scope to execute in. Defaults to <tt>this</tt>.</p>\n",
77 "owner": "Ext.AbstractManager",
78 "doc": "<p>Executes the specified function once for each item in the collection.\nReturning false from the function will cease iteration.</p>\n\n<p>The paramaters passed to the function are:</p>\n\n<div class=\"mdetail-params\"><ul>\n<li><b>key</b> : String<p class=\"sub-desc\">The key of the item</p></li>\n<li><b>value</b> : Number<p class=\"sub-desc\">The value of the item</p></li>\n<li><b>length</b> : Number<p class=\"sub-desc\">The total number of items in the collection</p></li>\n</ul></div>\n\n",
84 "html_filename": "AbstractManager.html"
91 "href": "AbstractManager.html#Ext-AbstractManager-method-get",
92 "shortDoc": "Returns an item by id. ...",
94 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
100 "doc": "<p>The id of the item</p>\n",
105 "owner": "Ext.AbstractManager",
106 "doc": "<p>Returns an item by id.\nFor additional details see <a href=\"#/api/Ext.util.HashMap-method-get\" rel=\"Ext.util.HashMap-method-get\" class=\"docClass\">Ext.util.HashMap.get</a>.</p>\n",
110 "doc": "<p>The item, <code>undefined</code> if not found.</p>\n"
112 "html_filename": "AbstractManager.html"
119 "href": "AbstractManager.html#Ext-AbstractManager-method-getCount",
120 "shortDoc": "Gets the number of items in the collection. ...",
122 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
128 "owner": "Ext.AbstractManager",
129 "doc": "<p>Gets the number of items in the collection.</p>\n",
133 "doc": "<p>The number of items in the collection.</p>\n"
135 "html_filename": "AbstractManager.html"
142 "href": "ModelManager.html#Ext-ModelManager-method-getModel",
143 "shortDoc": "Returns the Ext.data.Model for a given model name ...",
145 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/ModelManager.js",
149 "type": "String/Object",
151 "doc": "<p>The id of the model or the model instance.</p>\n",
156 "owner": "Ext.ModelManager",
157 "doc": "<p>Returns the <a href=\"#/api/Ext.data.Model\" rel=\"Ext.data.Model\" class=\"docClass\">Ext.data.Model</a> for a given model name</p>\n",
163 "html_filename": "ModelManager.html"
170 "href": "AbstractManager.html#Ext-AbstractManager-method-isRegistered",
171 "shortDoc": "Checks if an item type is registered. ...",
173 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
179 "doc": "<p>The mnemonic string by which the class may be looked up</p>\n",
183 "name": "isRegistered",
184 "owner": "Ext.AbstractManager",
185 "doc": "<p>Checks if an item type is registered.</p>\n",
189 "doc": "<p>Whether the type is registered.</p>\n"
191 "html_filename": "AbstractManager.html"
198 "href": "AbstractManager.html#Ext-AbstractManager-method-onAvailable",
199 "shortDoc": "Registers a function that will be called when an item with the specified id is added to the manager. ...",
201 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
207 "doc": "<p>The item id</p>\n",
213 "doc": "<p>The callback function. Called with a single parameter, the item.</p>\n",
219 "doc": "<p>The scope (<code>this</code> reference) in which the callback is executed. Defaults to the item.</p>\n",
223 "name": "onAvailable",
224 "owner": "Ext.AbstractManager",
225 "doc": "<p>Registers a function that will be called when an item with the specified id is added to the manager. This will happen on instantiation.</p>\n",
231 "html_filename": "AbstractManager.html"
238 "href": "AbstractManager.html#Ext-AbstractManager-method-register",
239 "shortDoc": "Registers an item to be managed ...",
241 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
247 "doc": "<p>The item to register</p>\n",
252 "owner": "Ext.AbstractManager",
253 "doc": "<p>Registers an item to be managed</p>\n",
259 "html_filename": "AbstractManager.html"
266 "href": "AbstractManager.html#Ext-AbstractManager-method-registerType",
267 "shortDoc": "Registers a new item constructor, keyed by a type key. ...",
269 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
275 "doc": "<p>The mnemonic string by which the class may be looked up.</p>\n",
279 "type": "Constructor",
281 "doc": "<p>The new instance class.</p>\n",
285 "name": "registerType",
286 "owner": "Ext.AbstractManager",
287 "doc": "<p>Registers a new item constructor, keyed by a type key.\n\n",
293 "html_filename": "AbstractManager.html"
300 "href": "AbstractManager.html#Ext-AbstractManager-method-unregister",
301 "shortDoc": "Unregisters an item by removing it from this manager ...",
303 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
309 "doc": "<p>The item to unregister</p>\n",
313 "name": "unregister",
314 "owner": "Ext.AbstractManager",
315 "doc": "<p>Unregisters an item by removing it from this manager</p>\n",
321 "html_filename": "AbstractManager.html"
326 "type": "Ext.util.MixedCollection",
330 "tagname": "property",
331 "href": "AbstractManager.html#Ext-AbstractManager-property-all",
333 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/AbstractManager.js",
336 "owner": "Ext.AbstractManager",
337 "doc": "<p>Contains all of the items currently managed</p>\n",
339 "html_filename": "AbstractManager.html"
346 "tagname": "property",
347 "href": "ModelManager.html#Ext-ModelManager-property-associationStack",
349 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/ModelManager.js",
351 "name": "associationStack",
352 "owner": "Ext.ModelManager",
353 "doc": "<p>Private stack of associations that must be created once their associated model has been defined</p>\n",
355 "html_filename": "ModelManager.html"
371 "Ext.AbstractManager"
378 "href": "ModelManager.html#Ext-ModelManager",
383 "author": "Ed Spencer",
385 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/ModelManager.js",
387 "alternateClassNames": [
390 "name": "Ext.ModelManager",
391 "doc": "<p>The ModelManager keeps track of all <a href=\"#/api/Ext.data.Model\" rel=\"Ext.data.Model\" class=\"docClass\">Ext.data.Model</a> types defined in your application.</p>\n\n<p><strong>Creating Model Instances</strong>\nModel instances can be created by using the <a href=\"#/api/Ext.ModelManager-method-create\" rel=\"Ext.ModelManager-method-create\" class=\"docClass\">create</a> function. It is also possible to do\nthis by using the Model type directly. The following snippets are equivalent:</p>\n\n<pre><code>Ext.define('User', {\n extend: 'Ext.data.Model',\n fields: ['first', 'last']\n});\n\n// method 1, create through the manager\nExt.ModelManager.create({\n first: 'Ed',\n last: 'Spencer'\n}, 'User');\n\n// method 2, create on the type directly\nnew User({\n first: 'Ed',\n last: 'Spencer'\n});\n</code></pre>\n\n<p><strong>Accessing Model Types</strong>\nA reference to a Model type can be obtained by using the <a href=\"#/api/Ext.ModelManager-method-getModel\" rel=\"Ext.ModelManager-method-getModel\" class=\"docClass\">getModel</a> function. Since models types\nare normal classes, you can access the type directly. The following snippets are equivalent:</p>\n\n<pre><code>Ext.define('User', {\n extend: 'Ext.data.Model',\n fields: ['first', 'last']\n});\n\n// method 1, access model type through the manager\nvar UserType = Ext.ModelManager.getModel('User');\n\n// method 2, reference the type directly\nvar UserType = User;\n</code></pre>\n",
399 "html_filename": "ModelManager.html",
400 "extends": "Ext.AbstractManager"