core_courseformat/local/courseeditor/fileuploader

The course file uploader.

This module is used to upload files directly into the course.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) uploadFilesToCourse

Source:

Upload a file to the course.

This method will show any necesary modal to handle the request.

(inner) allHandlers :Array.<Handler>|null

Source:

all the available handlers.

Type:

(inner) courseUpdates :Map

Source:

the pending course sections updates.

Type:
  • Map

(inner) errors :Object

Source:

the error messages.

Type:
  • Object

(inner) handlerManagers :Object

Source:

the courseId indexed loaded handler managers.

Type:
  • Object

(inner) lastHandlers :Object

Source:

the last handlers selected per each file extension.

Type:
  • Object

(inner) uploadQueue :ProcessQueue

Source:

the internal uploadQueue instance.

Type:

Methods

(inner) addRefreshSection(courseId, sectionId)

Source:

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>}

Source:

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)

Source:

Load all the erros messages at once in the module "errors" variable.

Parameters:
Name Type Description
courseId Number

the course id

Type Definitions

Handler

Source:
Properties:
Name Type Description
extension String

the handled extension or * for any

message String

the handler message

module String

the module name

Type:
  • Object