Go to the source code of this file.
Namespaces |
| namespace | mod |
| | Local Library of functions for module scorm.
|
Functions |
| | imscp_supports ($feature) |
| | imscp_get_extra_capabilities () |
| | imscp_reset_userdata ($data) |
| | imscp_get_view_actions () |
| | imscp_get_post_actions () |
| | imscp_add_instance ($data, $mform) |
| | imscp_update_instance ($data, $mform) |
| | imscp_delete_instance ($id) |
| | imscp_user_outline ($course, $user, $mod, $imscp) |
| | imscp_user_complete ($course, $user, $mod, $imscp) |
| | imscp_get_participants ($imscpid) |
| | imscp_get_file_areas ($course, $cm, $context) |
| | imscp_get_file_info ($browser, $areas, $course, $cm, $context, $filearea, $itemid, $filepath, $filename) |
| | imscp_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload) |
| | imscp_extend_navigation ($navigation, $course, $module, $cm) |
| | imscp_page_type_list ($pagetype, $parentcontext, $currentcontext) |
Function Documentation
Add imscp instance.
- Parameters:
-
- Returns:
- int new imscp instance id
Definition at line 90 of file lib.php.
Delete imscp instance.
- Parameters:
-
- Returns:
- bool true
Definition at line 185 of file lib.php.
This function extends the global navigation for the site. It is important to note that you should not rely on PAGE objects within this body of code as there is no guarantee that during an AJAX request they are available
- Parameters:
-
| navigation_node | $navigation | The imscp node within the global navigation |
| stdClass | $course | The course object returned from the DB |
| stdClass | $module | The module object returned from the DB |
| stdClass | $cm | The course module instance returned from the DB |
This is currently just a stub so that it can be easily expanded upon. When expanding just remove this comment and the line below and then add you content.
Definition at line 396 of file lib.php.
Returns all other caps used in module
- Returns:
- array
Definition at line 55 of file lib.php.
Lists all browsable file areas
- Parameters:
-
| object | $course | |
| object | $cm | |
| object | $context | |
- Returns:
- array
Definition at line 269 of file lib.php.
| imscp_get_file_info |
( |
$ |
browser, |
|
|
$ |
areas, |
|
|
$ |
course, |
|
|
$ |
cm, |
|
|
$ |
context, |
|
|
$ |
filearea, |
|
|
$ |
itemid, |
|
|
$ |
filepath, |
|
|
$ |
filename |
|
) |
| |
File browsing support for imscp module ontent area.
- Parameters:
-
| object | $browser | |
| object | $areas | |
| object | $course | |
| object | $cm | |
| object | $context | |
| string | $filearea | |
| int | $itemid | |
| string | $filepath | |
| string | $filename | |
- Returns:
- object file_info instance or null if not found
Definition at line 291 of file lib.php.
Returns the users with data in one imscp
- Todo:
- : deprecated - to be deleted in 2.2
- Parameters:
-
- Returns:
- bool false
Definition at line 258 of file lib.php.
List of update style log actions
- Returns:
- array
Definition at line 80 of file lib.php.
List of view style log actions
- Returns:
- array
Definition at line 72 of file lib.php.
Return a list of page types
- Parameters:
-
| string | $pagetype | current page type |
| stdClass | $parentcontext | Block's parent context |
| stdClass | $currentcontext | Current context of block |
Definition at line 411 of file lib.php.
| imscp_pluginfile |
( |
$ |
course, |
|
|
$ |
cm, |
|
|
$ |
context, |
|
|
$ |
filearea, |
|
|
$ |
args, |
|
|
$ |
forcedownload |
|
) |
| |
Serves the imscp files.
- Parameters:
-
| object | $course | |
| object | $cm | |
| object | $context | |
| string | $filearea | |
| array | $args | |
| bool | $forcedownload | |
- Returns:
- bool false if file not found, does not return if found - justsend the file
Definition at line 334 of file lib.php.
This function is used by the reset_course_userdata function in moodlelib.
- Parameters:
-
| $data | the data submitted from the reset course. |
- Returns:
- array status array
Definition at line 64 of file lib.php.
List of features supported in IMS CP module
- Parameters:
-
| string | $feature | FEATURE_xx constant for requested feature |
- Returns:
- mixed True if module supports feature, false if not, null if doesn't know
Definition at line 34 of file lib.php.
Update imscp instance.
- Parameters:
-
- Returns:
- bool true
Definition at line 127 of file lib.php.
Return use complete
- Parameters:
-
| object | $course | |
| object | $user | |
| object | $mod | |
| object | $imscp | |
Definition at line 232 of file lib.php.
Return use outline
- Parameters:
-
| object | $course | |
| object | $user | |
| object | $mod | |
| object | $imscp | |
- Returns:
- object|null
Definition at line 207 of file lib.php.