base¶
-
class
BaseCollection()¶ BaseCollection which should be used by ALL collections
-
class
BaseModel()¶ BaseModel which should be used by ALL models
- Extends
Backbone.Model()
-
BaseModel.app.models.base.BaseModel.idAttribute¶ Overwriting the idAttribute
- Type
uri
-
BaseModel.getId()¶ Alias for .get(‘id’) || .get(‘@id’) || .cid
- Return type
string
-
BaseModel.getNumericId()¶ Get the numeric id from the id string
- Return type
number
finds '30' if the id is 'local:ModelName/30'
-
class
RelationsCollection()¶ Collection of relationships to objects which “exist” in another BaseCollection, but the relationships are not materialized. So add/remove should not create/delete object, but relation.