Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Private resource module utility functions. More...
Classes | |
class | resource_content_file_info |
File browsing support class. More... | |
Functions | |
resource_display_embed ($resource, $cm, $course, $file) | |
Display embedded resource file. More... | |
resource_display_frame ($resource, $cm, $course, $file) | |
Display resource frames. More... | |
resource_get_clicktodownload ($file, $revision) | |
Internal function - create click to open text with link. | |
resource_get_clicktoopen ($file, $revision, $extra='') | |
Internal function - create click to open text with link. | |
resource_get_file_details ($resource, $cm) | |
Gets details of the file to cache in course cache to be displayed using resource_get_optional_details(). More... | |
resource_get_final_display_type ($resource) | |
Decide the best display format. More... | |
resource_get_optional_details ($resource, $cm) | |
Gets optional details for a resource, depending on resource settings. More... | |
resource_print_filenotfound ($resource, $cm, $course) | |
Print warning that file can not be found. More... | |
resource_print_header ($resource, $cm, $course) | |
Print resource header. More... | |
resource_print_heading ($resource, $cm, $course, $notused=false) | |
Print resource heading. More... | |
resource_print_intro ($resource, $cm, $course, $ignoresettings=false) | |
Print resource introduction. More... | |
resource_print_tobemigrated ($resource, $cm, $course) | |
Print warning that instance not migrated yet. More... | |
resource_print_workaround ($resource, $cm, $course, $file) | |
Print resource info and workaround link when JS not available. More... | |
resource_redirect_if_migrated ($oldid, $cmid) | |
Redirected to migrated resource if needed, return if incorrect parameters specified. More... | |
resource_set_mainfile ($data) | |
Private resource module utility functions.