Methods
(async, inner) fetchAll() → {Array}
Fetch all competencies. If cached,
return from cache, otherwise, fetch from
database and cache the values.
- Source:
Returns:
all competency objects
- Type
- Array
(async, inner) fetchAllByParent(parentId) → {Array}
Fetch all competencies based on input parent id.
If competencies are cached, return from cache,
otherwise, fetch from database.
A parent of a competency refers to the higher level
grouping: 'categories'.
Parameters:
Name | Type | Description |
---|---|---|
parentId |
Number |
- Source:
Returns:
matching competency objects
- Type
- Array
(async, inner) fetchById(id) → {Object}
Fetch a competency object by id from database.
Parameters:
Name | Type | Description |
---|---|---|
id |
Number |
- Source:
Returns:
competency object
- Type
- Object
(async, inner) fetchByKeyword(keyword) → {Array}
Fetch competencies based on input keyword.
If competencies are cached, return from cache,
otherwise, fetch from database.
Parameters:
Name | Type | Description |
---|---|---|
keyword |
String |
- Source:
Returns:
matching competency objects
- Type
- Array