The course file uploader.
This module is used to upload files directly into the course.
- Source:
- Copyright:
- 2022 Ferran Recio
- 2022 Ferran Recio
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(static, constant) uploadFilesToCourse
Upload a file to the course.
This method will show any necesary modal to handle the request.
(inner) allHandlers :Array.<Handler>|null
all the available handlers.
Type:
- Array.<Handler> | null
(inner) courseUpdates :Map
the pending course sections updates.
Type:
- Map
(inner) errors :Object
the error messages.
Type:
- Object
(inner) handlerManagers :Object
the courseId indexed loaded handler managers.
Type:
- Object
(inner) lastHandlers :Object
the last handlers selected per each file extension.
Type:
- Object
(inner) uploadQueue :ProcessQueue
the internal uploadQueue instance.
Type:
Methods
(inner) addRefreshSection(courseId, sectionId)
Add a section to refresh.
Parameters:
Name | Type | Description |
---|---|---|
courseId |
number | the course id |
sectionId |
number | the seciton id |
(async, inner) loadCourseHandlerManager(courseId) → {Promise.<HandlerManager>}
Load and return the course handler manager instance.
Parameters:
Name | Type | Description |
---|---|---|
courseId |
Number | the course Id to load |
Returns:
promise of the the loaded handleManager
- Type
- Promise.<HandlerManager>
(async, inner) loadErrorStrings(courseId)
Load all the erros messages at once in the module "errors" variable.
Parameters:
Name | Type | Description |
---|---|---|
courseId |
Number | the course id |
Type Definitions
Handler
Properties:
Name | Type | Description |
---|---|---|
extension |
String | the handled extension or * for any |
message |
String | the handler message |
module |
String | the module name |
Type:
- Object