|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Data Structures | |
| class | resource_content_file_info |
Namespaces | |
| namespace | mod |
Local Library of functions for module scorm. | |
Functions | |
| resource_redirect_if_migrated ($oldid, $cmid) | |
| resource_display_embed ($resource, $cm, $course, $file) | |
| resource_display_frame ($resource, $cm, $course, $file) | |
| resource_get_clicktoopen ($file, $revision, $extra='') | |
| resource_get_clicktodownload ($file, $revision) | |
| resource_print_workaround ($resource, $cm, $course, $file) | |
| resource_print_header ($resource, $cm, $course) | |
| resource_print_heading ($resource, $cm, $course, $ignoresettings=false) | |
| resource_print_intro ($resource, $cm, $course, $ignoresettings=false) | |
| resource_print_tobemigrated ($resource, $cm, $course) | |
| resource_print_filenotfound ($resource, $cm, $course) | |
| resource_get_final_display_type ($resource) | |
| resource_set_mainfile ($data) | |
| resource_display_embed | ( | $ | resource, |
| $ | cm, | ||
| $ | course, | ||
| $ | file | ||
| ) |
Display embedded resource file.
| object | $resource | |
| object | $cm | |
| object | $course | |
| stored_file | $file | main file |
Definition at line 64 of file locallib.php.

| resource_display_frame | ( | $ | resource, |
| $ | cm, | ||
| $ | course, | ||
| $ | file | ||
| ) |
Display resource frames.
| object | $resource | |
| object | $cm | |
| object | $course | |
| stored_file | $file | main file |
Definition at line 137 of file locallib.php.

| resource_get_clicktodownload | ( | $ | file, |
| $ | revision | ||
| ) |
Internal function - create click to open text with link.
Definition at line 199 of file locallib.php.


| resource_get_clicktoopen | ( | $ | file, |
| $ | revision, | ||
| $ | extra = '' |
||
| ) |
Internal function - create click to open text with link.
Definition at line 184 of file locallib.php.


| resource_get_final_display_type | ( | $ | resource | ) |
Decide the best diaply format.
| object | $resource |
Definition at line 362 of file locallib.php.


| resource_print_filenotfound | ( | $ | resource, |
| $ | cm, | ||
| $ | course | ||
| ) |
Print warning that file can not be found.
| object | $resource | |
| object | $cm | |
| object | $course |
Definition at line 341 of file locallib.php.

| resource_print_header | ( | $ | resource, |
| $ | cm, | ||
| $ | course | ||
| ) |
Print resource header.
| object | $resource | |
| object | $cm | |
| object | $course |
Definition at line 267 of file locallib.php.


| resource_print_heading | ( | $ | resource, |
| $ | cm, | ||
| $ | course, | ||
| $ | ignoresettings = false |
||
| ) |
Print resource heading.
| object | $resource | |
| object | $cm | |
| object | $course | |
| bool | $ignoresettings | print even if not specified in modedit |
Definition at line 285 of file locallib.php.


| resource_print_intro | ( | $ | resource, |
| $ | cm, | ||
| $ | course, | ||
| $ | ignoresettings = false |
||
| ) |
Print resource introduction.
| object | $resource | |
| object | $cm | |
| object | $course | |
| bool | $ignoresettings | print even if not specified in modedit |
Definition at line 302 of file locallib.php.


| resource_print_tobemigrated | ( | $ | resource, |
| $ | cm, | ||
| $ | course | ||
| ) |
Print warning that instance not migrated yet.
| object | $resource | |
| object | $cm | |
| object | $course |
Definition at line 322 of file locallib.php.

| resource_print_workaround | ( | $ | resource, |
| $ | cm, | ||
| $ | course, | ||
| $ | file | ||
| ) |
Print resource info and workaround link when JS not available.
| object | $resource | |
| object | $cm | |
| object | $course | |
| stored_file | $file | main file |
Definition at line 219 of file locallib.php.

| resource_redirect_if_migrated | ( | $ | oldid, |
| $ | cmid | ||
| ) |
Redirected to migrated resource if needed, return if incorrect parameters specified
| int | $oldid | |
| int | $cmid |
Definition at line 40 of file locallib.php.

| resource_set_mainfile | ( | $ | data | ) |
Definition at line 412 of file locallib.php.

