Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
SCORM module external functions. More...
Static Public Member Functions | |
static | get_scorm_access_information ($scormid) |
Return access information for a given scorm. | |
static | get_scorm_access_information_parameters () |
Describes the parameters for get_scorm_access_information. | |
static | get_scorm_access_information_returns () |
Describes the get_scorm_access_information return value. | |
static | get_scorm_attempt_count ($scormid, $userid, $ignoremissingcompletion=false) |
Return the number of attempts done by a user in the given SCORM. | |
static | get_scorm_attempt_count_parameters () |
Describes the parameters for get_scorm_attempt_count. | |
static | get_scorm_attempt_count_returns () |
Describes the get_scorm_attempt_count return value. | |
static | get_scorm_sco_tracks ($scoid, $userid, $attempt=0) |
Retrieves SCO tracking data for the given user id and attempt number. | |
static | get_scorm_sco_tracks_parameters () |
Describes the parameters for get_scorm_sco_tracks. | |
static | get_scorm_sco_tracks_returns () |
Describes the get_scorm_sco_tracks return value. | |
static | get_scorm_scoes ($scormid, $organization='') |
Returns a list containing all the scoes data related to the given scorm id. | |
static | get_scorm_scoes_parameters () |
Describes the parameters for get_scorm_scoes. | |
static | get_scorm_scoes_returns () |
Describes the get_scorm_scoes return value. | |
static | get_scorm_user_data ($scormid, $attempt) |
Retrieves user tracking and SCO data and default SCORM values. | |
static | get_scorm_user_data_parameters () |
Describes the parameters for get_scorm_user_data. | |
static | get_scorm_user_data_returns () |
Describes the get_scorm_user_data return value. | |
static | get_scorms_by_courses ($courseids=array()) |
Returns a list of scorms in a provided list of courses, if no list is provided all scorms that the user can view will be returned. | |
static | get_scorms_by_courses_parameters () |
Describes the parameters for get_scorms_by_courses. | |
static | get_scorms_by_courses_returns () |
Describes the get_scorms_by_courses return value. | |
static | insert_scorm_tracks ($scoid, $attempt, $tracks) |
Saves a SCORM tracking record. | |
static | insert_scorm_tracks_parameters () |
Describes the parameters for insert_scorm_tracks. | |
static | insert_scorm_tracks_returns () |
Describes the insert_scorm_tracks return value. | |
static | launch_sco ($scormid, $scoid=0) |
Trigger the course module viewed event. | |
static | launch_sco_parameters () |
Returns description of method parameters. | |
static | launch_sco_returns () |
Returns description of method result value. | |
static | view_scorm ($scormid) |
Trigger the course module viewed event. | |
static | view_scorm_parameters () |
Returns description of method parameters. | |
static | view_scorm_returns () |
Returns description of method result value. | |
SCORM module external functions.
|
static |
Return access information for a given scorm.
int | $scormid | scorm instance id |
array | of warnings and the access information |
moodle_exception |
|
static |
Describes the parameters for get_scorm_access_information.
external_external_function_parameters |
|
static |
Describes the get_scorm_access_information return value.
external_single_structure |
|
static |
Return the number of attempts done by a user in the given SCORM.
int | $scormid | the scorm id |
int | $userid | the user id |
bool | $ignoremissingcompletion | ignores attempts that haven't reported a grade/completion |
array | of warnings and the attempts count |
|
static |
Describes the parameters for get_scorm_attempt_count.
external_function_parameters |
|
static |
Describes the get_scorm_attempt_count return value.
external_single_structure |
|
static |
Retrieves SCO tracking data for the given user id and attempt number.
int | $scoid | the sco id |
int | $userid | the user id |
int | $attempt | the attempt number |
array | warnings and the scoes data |
|
static |
Describes the parameters for get_scorm_sco_tracks.
external_function_parameters |
|
static |
Describes the get_scorm_sco_tracks return value.
external_single_structure |
|
static |
Returns a list containing all the scoes data related to the given scorm id.
int | $scormid | the scorm id |
string | $organization | the organization id |
array | warnings and the scoes data |
|
static |
Describes the parameters for get_scorm_scoes.
external_function_parameters |
|
static |
|
static |
Retrieves user tracking and SCO data and default SCORM values.
int | $scormid | the scorm id |
int | $attempt | the attempt number |
array | warnings and the scoes data |
moodle_exception |
|
static |
Describes the parameters for get_scorm_user_data.
external_function_parameters |
|
static |
Describes the get_scorm_user_data return value.
external_single_structure |
|
static |
Returns a list of scorms in a provided list of courses, if no list is provided all scorms that the user can view will be returned.
array | $courseids | the course ids |
array | the scorm details |
|
static |
Describes the parameters for get_scorms_by_courses.
external_function_parameters |
|
static |
Describes the get_scorms_by_courses return value.
external_single_structure |
|
static |
Saves a SCORM tracking record.
It will overwrite any existing tracking data for this attempt. Validation should be performed before running the function to ensure the user will not lose any existing attempt data.
int | $scoid | the SCO id |
string | $attempt | the attempt number |
array | $tracks | the track records to be stored |
array | warnings and the scoes data |
moodle_exception |
|
static |
Describes the parameters for insert_scorm_tracks.
external_function_parameters |
|
static |
Describes the insert_scorm_tracks return value.
external_single_structure |
|
static |
Trigger the course module viewed event.
int | $scormid | the SCORM instance id |
int | $scoid | the SCO id |
array | of warnings and status result |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Trigger the course module viewed event.
int | $scormid | the scorm instance id |
array | of warnings and status result |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |