comparison app/model/Base.js @ 324:7f5f74e62658

Removed documentation of things which are already documented in the Ext model class.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 08:46:47 +0200
parents aeeb0f534411
children 8bc067b5f9c5
comparison
equal deleted inserted replaced
323:83db862d0f3f 324:7f5f74e62658
3 */ 3 */
4 Ext.define('Lada.model.Base', { 4 Ext.define('Lada.model.Base', {
5 extend: 'Ext.data.Model', 5 extend: 'Ext.data.Model',
6 requires: ['Lada.lib.Helpers'], 6 requires: ['Lada.lib.Helpers'],
7 /** 7 /**
8 * Define fields in the model
9 */
10 fields: [],
11 /**
12 * Define the property which is used as unique attribute in the model.
13 * This might cause problems whith combined PK in the database. See
14 * https://roundup-intern.intevation.de/bfs/issue30
15 */
16 idProperty: null,
17 /**
18 * Define the URL of the (REST) ressource where to query for this model
19 */
20 proxyUrl: null,
21 /**
22 * The Proxy used for this model. Defaults to a REST proxy which returns
23 * JSON. The payload is expected to be in a "data" node. The url of the
24 * proxy is configured in the proxyUrl attribute.
25 */
26 proxy: {
27 type: 'rest',
28 appendId: true, //default
29 url: this.proxyUrl,
30 reader: {
31 type: 'json',
32 root: 'data'
33 }
34 },
35 /**
36 * Helper function to build an ID which is used in the proxy calls. This 8 * Helper function to build an ID which is used in the proxy calls. This
37 * function is a workaround for 9 * function is a workaround for
38 * https://roundup-intern.intevation.de/bfs/issue30 10 * https://roundup-intern.intevation.de/bfs/issue30
39 * as some items can not be identified with a singe id. 11 * as some items can not be identified with a singe id.
40 */ 12 */
41 getEidi: function() { 13 getEidi: function() {
42 var kid = this.get('kId'); 14 return "/" + idProperty;
43 var probeId = this.get('probeId');
44 return "/" + kid + "/" + probeId;
45 } 15 }
46 }); 16 });

http://lada.wald.intevation.org