|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
| enum AVERAGEATTEMPT |
Definition at line 35 of file locallib.php.
| enum FIRSTATTEMPT |
Definition at line 36 of file locallib.php.
| enum GRADEAVERAGE |
Definition at line 31 of file locallib.php.
| enum GRADEHIGHEST |
Definition at line 30 of file locallib.php.
| enum GRADESCOES |
Definition at line 29 of file locallib.php.
| enum GRADESUM |
Definition at line 32 of file locallib.php.
| enum HIGHESTATTEMPT |
Definition at line 34 of file locallib.php.
| enum LASTATTEMPT |
Definition at line 37 of file locallib.php.
| enum SCO_ALL |
Definition at line 25 of file locallib.php.
| enum SCO_DATA |
Definition at line 26 of file locallib.php.
| enum SCO_ONLY |
Definition at line 27 of file locallib.php.
Definition at line 22 of file locallib.php.
Definition at line 23 of file locallib.php.
| enum SCORM_UPDATE_NEVER |
Constants and settings for module scorm.
Definition at line 21 of file locallib.php.
| enum TOCFULLURL |
Definition at line 40 of file locallib.php.
| enum TOCJSLINK |
Definition at line 39 of file locallib.php.
| scorm_array_search | ( | $ | item, |
| $ | needle, | ||
| $ | haystacks, | ||
| $ | strict = false |
||
| ) |
| scorm_count_launchable | ( | $ | scormid, |
| $ | organization = '' |
||
| ) |
| scorm_course_format_display | ( | $ | user, |
| $ | course | ||
| ) |
| scorm_debugging | ( | $ | scorm | ) |
Figure out with this is a debug situation
| object | $scorm | a moodle scrom object - mdl_scorm |
Definition at line 1157 of file locallib.php.


| scorm_delete_attempt | ( | $ | userid, |
| $ | scorm, | ||
| $ | attemptid | ||
| ) |
Delete Scorm tracks for selected users
| int | $userid | ID of User |
| int | $scormid | ID of Scorm |
| int | $attemptid | user attempt that need to be deleted |
return bool true suceeded
Definition at line 1218 of file locallib.php.


| scorm_delete_responses | ( | $ | attemptids, |
| $ | scorm | ||
| ) |
Delete Scorm tracks for selected users
| array | $attemptids | list of attempts that need to be deleted |
| int | $scorm | instance |
return bool true deleted all responses, false failed deleting an attempt - stopped here
Definition at line 1183 of file locallib.php.


| scorm_element_cmp | ( | $ | a, |
| $ | b | ||
| ) |
Build up the JavaScript representation of an array element
| string | $a | left array element |
| string | $b | right array element |
Definition at line 990 of file locallib.php.
| scorm_external_link | ( | $ | link | ) |
Definition at line 314 of file locallib.php.
| scorm_format_duration | ( | $ | duration | ) |
Converts SCORM duration notation to human-readable format The function works with both SCORM 1.2 and SCORM 2004 time formats
| $duration | string SCORM duration |
Definition at line 1233 of file locallib.php.

| scorm_get_attempt_count | ( | $ | userid, |
| $ | scorm, | ||
| $ | attempts_only = false |
||
| ) |
Get SCORM attempt count
| object | $user | Current context user |
| object | $scorm | a moodle scrom object - mdl_scorm |
| bool | $attempts | return the list of attempts |
Definition at line 1131 of file locallib.php.


| scorm_get_attempt_status | ( | $ | user, |
| $ | scorm, | ||
| $ | cm = '' |
||
| ) |
Generate the user attempt status string
| object | $user | Current context user |
| object | $scorm | a moodle scrom object - mdl_scorm |
Definition at line 1032 of file locallib.php.

Returns an array of the array of attempt options
Definition at line 155 of file locallib.php.

| scorm_get_count_users | ( | $ | scormid, |
| $ | groupingid = null |
||
| ) |
Definition at line 861 of file locallib.php.
Returns an array of the array of what grade options
Definition at line 87 of file locallib.php.

Returns an array of the array of hide table of contents options
Definition at line 122 of file locallib.php.

| scorm_get_last_attempt | ( | $ | scormid, |
| $ | userid | ||
| ) |
Find the last attempt number for the given user id and scorm id
Definition at line 643 of file locallib.php.

| scorm_get_last_completed_attempt | ( | $ | scormid, |
| $ | userid | ||
| ) |
Find the last attempt number for the given user id and scorm id
Definition at line 658 of file locallib.php.

Returns an array of the array of popup display options
Definition at line 145 of file locallib.php.

Returns an array of the popup options for SCORM and each options default value
Definition at line 69 of file locallib.php.


| scorm_get_sco | ( | $ | id, |
| $ | what = SCO_ALL |
||
| ) |
Returns an object containing all datas relative to the given sco ID
| integer | $id | The sco ID |
Definition at line 334 of file locallib.php.

| scorm_get_sco_runtime | ( | $ | scormid, |
| $ | scoid, | ||
| $ | userid, | ||
| $ | attempt = 1 |
||
| ) |
| scorm_get_scoes | ( | $ | id, |
| $ | organisation = false |
||
| ) |
Returns an object (array) containing all the scoes data related to the given sco ID
| integer | $id | The sco ID |
| integer | $organisation | an organisation ID - defaults to false if not required |
Definition at line 359 of file locallib.php.

Returns an array of the array of skip view options
Definition at line 111 of file locallib.php.

| scorm_get_toc | ( | $ | user, |
| $ | scorm, | ||
| $ | cmid, | ||
| $ | toclink = TOCJSLINK, |
||
| $ | currentorg = '', |
||
| $ | scoid = '', |
||
| $ | mode = 'normal', |
||
| $ | attempt = '', |
||
| $ | play = false, |
||
| $ | tocheader = false |
||
| ) |
Definition at line 1265 of file locallib.php.


| scorm_get_tracks | ( | $ | scoid, |
| $ | userid, | ||
| $ | attempt = '' |
||
| ) |
Gets all tracks of specified sco and user
Definition at line 433 of file locallib.php.


Returns an array of the array of update frequency options
Definition at line 134 of file locallib.php.

| scorm_get_user_data | ( | $ | userid | ) |
Gets user info required to display the table of scorm results for report.php
Definition at line 526 of file locallib.php.

Returns an array of the array of what grade options
Definition at line 99 of file locallib.php.

| scorm_grade_user | ( | $ | scorm, |
| $ | userid | ||
| ) |
Definition at line 588 of file locallib.php.


| scorm_grade_user_attempt | ( | $ | scorm, |
| $ | userid, | ||
| $ | attempt = 1 |
||
| ) |
Definition at line 534 of file locallib.php.


| scorm_insert_track | ( | $ | userid, |
| $ | scormid, | ||
| $ | scoid, | ||
| $ | attempt, | ||
| $ | element, | ||
| $ | value, | ||
| $ | forcecompleted = false |
||
| ) |
Definition at line 383 of file locallib.php.


| scorm_parse | ( | $ | scorm, |
| $ | full | ||
| ) |
Extracts scrom package, sets up all variables. Called whenever scorm changes
| object | $scorm | instance - fields are updated and changes saved into database |
| bool | $full | force full update if true |
Definition at line 172 of file locallib.php.


| scorm_reconstitute_array_element | ( | $ | sversion, |
| $ | userdata, | ||
| $ | element_name, | ||
| $ | children | ||
| ) |
Build up the JavaScript representation of an array element
| string | $sversion | SCORM API version |
| array | $userdata | User track data |
| string | $element_name | Name of array element to get values for |
| array | $children | list of sub elements of this array element that also need instantiating |
Definition at line 892 of file locallib.php.

| scorm_repeater | ( | $ | what, |
| $ | times | ||
| ) |
| scorm_simple_play | ( | $ | scorm, |
| $ | user, | ||
| $ | context, | ||
| $ | cmid | ||
| ) |
Definition at line 819 of file locallib.php.


| scorm_view_display | ( | $ | user, |
| $ | scorm, | ||
| $ | action, | ||
| $ | cm | ||
| ) |
Definition at line 727 of file locallib.php.

