core_courseformat/local/courseeditor/fileuploader

Description:
  • 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

The course file uploader.

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

Members

(static, constant) uploadFilesToCourse

Description:
  • Upload a file to the course.

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

Source:

Upload a file to the course.

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

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

Description:
  • all the available handlers.

Source:

all the available handlers.

Type:

(inner) courseUpdates :Map

Description:
  • the pending course sections updates.

Source:

the pending course sections updates.

Type:
  • Map

(inner) errors :Object

Description:
  • the error messages.

Source:

the error messages.

Type:
  • Object

(inner) handlerManagers :Object

Description:
  • the courseId indexed loaded handler managers.

Source:

the courseId indexed loaded handler managers.

Type:
  • Object

(inner) lastHandlers :Object

Description:
  • the last handlers selected per each file extension.

Source:

the last handlers selected per each file extension.

Type:
  • Object

(inner) uploadQueue :ProcessQueue

Description:
  • the internal uploadQueue instance.

Source:

the internal uploadQueue instance.

Type:
  • ProcessQueue

Methods

(inner) addRefreshSection(courseId, sectionId)

Description:
  • Add a section to refresh.

Source:
Parameters:
Name Type Description
courseId number

the course id

sectionId number

the seciton id

(async, inner) loadCourseHandlerManager(courseId) → {Promise.<HandlerManager>}

Description:
  • Load and return the course handler manager instance.

Source:
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)

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

Source:
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