annotate app/model/Query.js @ 320:bc87e080ad05

Added docstring
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 08:05:33 +0200
parents 5e4d926d7717
children 6964cd97d35f
rev   line source
320
bc87e080ad05 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 306
diff changeset
1 /**
bc87e080ad05 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 306
diff changeset
2 * Model class for SQL-Querys
bc87e080ad05 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 306
diff changeset
3 */
235
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 Ext.define('Lada.model.Query', {
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 extend: 'Ext.data.Model',
306
5e4d926d7717 Use ts2date function from lib.Helpers. Remove old code
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 248
diff changeset
6 requires: ['Lada.lib.Helpers'],
235
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 fields: [
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 {name: "id"},
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 {name: "name"},
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 {name: "description"},
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 {name: "sql"},
248
d40a552382a3 Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 244
diff changeset
12 {name: "results"},
244
7097182150d9 Added filter attribute and added comments.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 235
diff changeset
13 {name: "filters"},
235
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 ],
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 proxy: {
248
d40a552382a3 Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 244
diff changeset
16 type: 'rest',
d40a552382a3 Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 244
diff changeset
17 url: 'server/rest/query',
235
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 reader: {
248
d40a552382a3 Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 244
diff changeset
19 type: 'json',
d40a552382a3 Changed proxy to load data from the server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 244
diff changeset
20 root: 'data'
235
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 }
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 }
78134e20e62d Added new model and store for Queries.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 });

http://lada.wald.intevation.org