Extensions
Managers
Manages the API methods of data models and holds its cache.
class MyManager extends Qulity.Manager
Key | Type | Description |
---|---|---|
iterable? | Array, Object | Optional initial values of this Manager. |
holds? | Function | An optional data stricture belonging to this Manager. @implements Collection |
Cached dataset entries of this Manager. [Read Only]
Type {Collection}
A structure belonging to this Manager. [Read Only]
Type {Function?}
Inserts an instance into this Manager's cache.
Key Type Description identifier String Identifier string for the address of this model. model Function, Any A data model to add to this Manager. Returns {Manager}
Removes an instance from this Manager's cache.
Key Type Description identifier String Identifier string of the instance. Returns {Manager}
Resolves an instance of this Manager.
Key Type Description idOrInstance String, Function, Any Identifier to resolve from this Manager. Returns {Function|Any} A data model resolved from this Manager's cache.