|
Moodle APIs 4.1
Moodle 4.1.9+ (Build: 20240402)
|
Recourse module like helper functions. More...
Functions | |
| resourcelib_embed_general ($fullurl, $title, $clicktoopen, $mimetype) | |
| Returns general link or file embedding html. | |
| resourcelib_embed_image ($fullurl, $title) | |
| Returns image embedding html. | |
| resourcelib_embed_pdf ($fullurl, $title, $clicktoopen) | |
| Returns general link or pdf embedding html. | |
| resourcelib_get_displayoptions (array $enabled, $current=null) | |
| Returns list of available display options. | |
| resourcelib_get_extension ($fullurl) | |
| Looks for the extension. | |
| resourcelib_guess_url_mimetype ($fullurl) | |
| Tries to guess correct mimetype for arbitrary URL. | |
| resourcelib_try_file_migration ($filepath, $cmid, $courseid, $component, $filearea, $itemid) | |
| Try on demand migration of file from old course files. | |
Recourse module like helper functions.
@subpackage lib