Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core\external\moodlenet_send_course Class Reference
Inheritance diagram for core\external\moodlenet_send_course:

Static Public Member Functions

static execute (int $issuerid, int $courseid, int $shareformat, array $cmids=[],)
 External function to send the course to MoodleNet.
 
static execute_parameters ()
 Describes the parameters for sending the course.
 
static execute_returns ()
 Describes the data returned from the external function.
 

Static Protected Member Functions

static return_errors (int $itemid, string $warningcode, string $message)
 Handle return error.
 

Member Function Documentation

◆ execute()

static core\external\moodlenet_send_course::execute ( int $issuerid,
int $courseid,
int $shareformat,
array $cmids = [] )
static

External function to send the course to MoodleNet.

Parameters
int$issueridThe MoodleNet OAuth 2 issuer ID
int$courseidThe course ID
int$shareformatThe share format being used, as defined by core\moodlenet\course_sender
array$cmidsThe course module ids
Return values
array

◆ execute_parameters()

static core\external\moodlenet_send_course::execute_parameters ( )
static

Describes the parameters for sending the course.

Return values
external_function_parameters

◆ execute_returns()

static core\external\moodlenet_send_course::execute_returns ( )
static

Describes the data returned from the external function.

Return values
external_single_structure

◆ return_errors()

static core\external\moodlenet_send_course::return_errors ( int $itemid,
string $warningcode,
string $message )
staticprotected

Handle return error.

Parameters
int$itemidItem id
string$warningcodeWarning code
string$messageMessage
Return values
array

The documentation for this class was generated from the following file: