view app/model/Base.js @ 325:4c4f03c87d49

Inherit from model.Base
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 08:47:01 +0200
parents 7f5f74e62658
children 8bc067b5f9c5
line wrap: on
line source
/**
 * Base class for models
 */
Ext.define('Lada.model.Base', {
    extend: 'Ext.data.Model',
    requires: ['Lada.lib.Helpers'],
    /**
     * 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() {
        return "/" + idProperty;
    }
});

http://lada.wald.intevation.org