core/moodlenet/send_resource

Description:
  • A module to handle Share operations of the MoodleNet.

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

A module to handle Share operations of the MoodleNet.

Members

(static, constant) init

Description:
  • Initialize.

Source:

Initialize.

Methods

(inner) handleAuthorization(issuerId) → {promise}

Description:
  • Handle authorization with MoodleNet server.

Source:
Parameters:
Name Type Description
issuerId int

The OAuth 2 issuer ID.

Returns:
Type
promise

(inner) registerEventListeners()

Description:
  • Register events.

Source:

(inner) responseFromMoodleNet(status, resourceUrl)

Description:
  • Handle response from MoodleNet.

Source:
Parameters:
Name Type Description
status boolean

Response status. True if successful.

resourceUrl String

Resource URL.

(inner) sendToMoodleNet(issuerId, cmId, shareFormat)

Description:
  • Handle send to MoodleNet.

Source:
Parameters:
Name Type Description
issuerId int

The OAuth 2 issuer ID.

cmId int

The course module ID.

shareFormat int

The share format.