Mercurial > lada > lada-client
annotate app/model/Base.js @ 337:39297b8e5ba2
Added docstring
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 13 Aug 2013 09:13:26 +0200 |
parents | 7f5f74e62658 |
children | 8bc067b5f9c5 |
rev | line source |
---|---|
310
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 /** |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 * Base class for models |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 */ |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.model.Base', { |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 extend: 'Ext.data.Model', |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 requires: ['Lada.lib.Helpers'], |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 /** |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 * Helper function to build an ID which is used in the proxy calls. This |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 * function is a workaround for |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 * https://roundup-intern.intevation.de/bfs/issue30 |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 * as some items can not be identified with a singe id. |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 */ |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 getEidi: function() { |
324
7f5f74e62658
Removed documentation of things which are already documented in the Ext model
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
310
diff
changeset
|
14 return "/" + idProperty; |
310
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 } |
aeeb0f534411
Added Base model class
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 }); |