Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Functions
lib.php File Reference

Functions

 mod_resource_core_calendar_provide_event_action (calendar_event $event, core_calendar\action_factory $factory, $userid=0)
 This function receives a calendar event and returns the action associated with it, or null if there is none. More...
 
 mod_resource_get_path_from_pluginfile (string $filearea, array $args)
 Given an array with a file path, it returns the itemid and the filepath for the defined filearea. More...
 
 resource_add_instance ($data, $mform)
 Add resource instance. More...
 
 resource_check_updates_since (cm_info $cm, $from, $filter=array())
 Check if the module has any update that affects the current user since a given time. More...
 
 resource_cm_info_view (cm_info $cm)
 Called when viewing course page. More...
 
 resource_delete_instance ($id)
 Delete resource instance. More...
 
 resource_dndupload_handle ($uploadinfo)
 Handle a file that has been uploaded. More...
 
 resource_dndupload_register ()
 Register the ability to handle drag and drop file uploads. More...
 
 resource_export_contents ($cm, $baseurl)
 Export file resource contents. More...
 
 resource_get_coursemodule_info ($coursemodule)
 Given a course_module object, this function returns any "extra" information that may be needed when printing this activity in a course listing. More...
 
 resource_get_file_areas ($course, $cm, $context)
 
 resource_get_file_info ($browser, $areas, $course, $cm, $context, $filearea, $itemid, $filepath, $filename)
 
 resource_get_post_actions ()
 List the actions that correspond to a post of this module. More...
 
 resource_get_view_actions ()
 List the actions that correspond to a view of this module. More...
 
 resource_page_type_list ($pagetype, $parentcontext, $currentcontext)
 Return a list of page types. More...
 
 resource_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 
 resource_reset_userdata ($data)
 This function is used by the reset_course_userdata function in moodlelib. More...
 
 resource_set_display_options ($data)
 Updates display options based on form input. More...
 
 resource_supports ($feature)
 List of features supported in Resource module. More...
 
 resource_update_instance ($data, $mform)
 Update resource instance. More...
 
 resource_view ($resource, $course, $cm, $context)
 Mark the activity completed (if required) and trigger the course_module_viewed event. More...
 

Detailed Description

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later