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) handleModal

Description:
  • Handle modal.

Source:

Handle modal.

(static, constant) init

Description:
  • Initialize.

Source:

Initialize.

(static, constant) sendToMoodleNet

Description:
  • Handle send to MoodleNet.

Source:

Handle send to MoodleNet.

Methods

(inner) registerEventListeners()

Description:
  • Register events.

Source:

(async, inner) renderModal(data, selectedActivities)

Description:
  • Render the modal to send resource to MoodleNet.

Source:
Parameters:
Name Type Description
data object

The data of the resource to be shared.

selectedActivities array

Selected activities.

(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.