changeset 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 83db862d0f3f
children 4c4f03c87d49
files app/model/Base.js
diffstat 1 files changed, 1 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/app/model/Base.js	Tue Aug 13 08:05:33 2013 +0200
+++ b/app/model/Base.js	Tue Aug 13 08:46:47 2013 +0200
@@ -5,42 +5,12 @@
     extend: 'Ext.data.Model',
     requires: ['Lada.lib.Helpers'],
     /**
-     * Define fields in the model
-     */
-    fields: [],
-    /**
-     * Define the property which is used as unique attribute in the model.
-     * This might cause problems whith combined PK in the database. See
-     * https://roundup-intern.intevation.de/bfs/issue30
-     */
-    idProperty: null,
-    /**
-     * Define the URL of the (REST) ressource where to query for this model
-     */
-    proxyUrl: null,
-    /**
-     * The Proxy used for this model. Defaults to a REST proxy which returns
-     * JSON. The payload is expected to be in a "data" node. The url of the
-     * proxy is configured in the proxyUrl attribute.
-     */
-    proxy: {
-        type: 'rest',
-        appendId: true, //default
-        url: this.proxyUrl,
-        reader: {
-            type: 'json',
-            root: 'data'
-        }
-    },
-    /**
      * Helper function to build an ID which is used in the proxy calls. This
      * function is a workaround for
      * https://roundup-intern.intevation.de/bfs/issue30
      * as some items can not be identified with a singe id.
      */
     getEidi: function() {
-        var kid =  this.get('kId');
-        var probeId = this.get('probeId');
-        return "/" + kid + "/" + probeId;
+        return "/" + idProperty;
     }
 });

http://lada.wald.intevation.org