Code coverage report for api/locales/ELanguages.js

Statements: 100% (10 / 10)      Branches: 50% (1 / 2)      Functions: 100% (2 / 2)      Lines: 100% (10 / 10)      Ignored: none     

All files » api/locales/ » ELanguages.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 451 1                       1 36 36   36 36     1                                 6225         1  
var Collection = require("./../Collection").Collection;
var FieldDBObject = require("./../FieldDBObject").FieldDBObject;
 
/**
 * @class Collection of Datum validation states
 
 * @name  ELanguages
 * @description The ELanguages is a minimal customization of the Collection
 * to add a primary key of iso.
 *
 * @extends Collection
 * @constructs
 */
var ELanguages = function ELanguages(options) {
  Eif (!this._fieldDBtype) {
    this._fieldDBtype = "ELanguages";
  }
  this.debug("Constructing ELanguages ", options);
  Collection.apply(this, arguments);
};
 
ELanguages.prototype = Object.create(Collection.prototype, /** @lends ELanguages.prototype */ {
  constructor: {
    value: ELanguages
  },
 
  primaryKey: {
    value: "iso"
  },
 
  INTERNAL_MODELS: {
    value: {
      item: FieldDBObject /* TODO use normal object? */
    }
  },
 
  sanitizeStringForPrimaryKey: {
    value: function(value) {
      return value;
    }
  }
 
});
exports.ELanguages = ELanguages;