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: 147 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

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


Class: moodlenet_auth_check  - X-Ref

The external API to check whether a user has authorized for a given MoodleNet OAuth 2 issuer.

execute_parameters()   X-Ref
Returns description of parameters.

return: external_function_parameters

execute(int $issuerid, int $courseid)   X-Ref
External function to check if the user is already authorized with MoodleNet.

param: int $issuerid Issuer Id.
param: int $courseid The course ID that contains the activity which being shared
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