Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 402 and 403]

(no description)

File Size: 173 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

moodlenet_send_activity:: (4 methods):
  execute_parameters()
  execute()
  execute_returns()
  return_errors()


Class: moodlenet_send_activity  - X-Ref

The external API to send activity to MoodleNet.

execute_parameters()   X-Ref
Describes the parameters for sending the activity.

return: external_function_parameters

execute(int $issuerid, int $cmid, int $shareformat)   X-Ref
External function to send the activity to MoodleNet.

param: int $issuerid The MoodleNet OAuth 2 issuer ID
param: int $cmid The course module ID of the activity that being shared
param: int $shareformat The share format being used, as defined by \core\moodlenet\activity_sender
return: array

execute_returns()   X-Ref
Describes the data returned from the external function.

return: external_single_structure

return_errors(int $itemid, string $warningcode, string $message)   X-Ref
Handle return error.

param: int $itemid Item id
param: string $warningcode Warning code
param: string $message Message
return: array