Extends
- AbstractModule
Members
courseCache :DataCache
- Description:
- Cache for course ID lookups
- Source:
Cache for course ID lookups
Type:
- DataCache
registeredModules :Array.<AbstractModule>
- Description:
- Store of all modules registered to use this plugin
- Source:
Store of all modules registered to use this plugin
Type:
- Array.<AbstractModule>
schemaName :String
- Description:
- Name of the schema extension
- Source:
Name of the schema extension
Type:
- String
userCache :DataCache
- Description:
- Cache for user existence checks
- Source:
Cache for user existence checks
Type:
- DataCache
Methods
(async) init()
(async) registerModule(mod, options)
- Description:
- Registers a module for use with this plugin
- Source:
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
mod |
AbstractApiModule | |||||||
options |
Object |
Properties
|
(async) registerSchemas()
- Description:
- Adds schema extensions
- Source:
(async) updateAuthor(req) → {Promise}
- Description:
- Function to update author on data change
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
req |
external:ExpressRequest |
Returns:
Resolves with the modified data
- Type
- Promise
(async) updateTimestamps(action, data) → {Promise}
- Description:
- Function to update authored timestamp on data change
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
String | |
data |
Object |
Returns:
- Type
- Promise