Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
lib.php File Reference

Functions

 h5pactivity_add_instance (stdClass $data, mod_h5pactivity_mod_form $mform=null)
 Saves a new instance of the mod_h5pactivity into the database.
 
 h5pactivity_check_updates_since (cm_info $cm, int $from, array $filter=[])
 Check if the module has any update that affects the current user since a given time.
 
 h5pactivity_delete_instance (int $id)
 Removes an instance of the mod_h5pactivity from the database.
 
 h5pactivity_dndupload_handle ($uploadinfo)
 Handle a file that has been uploaded.
 
 h5pactivity_dndupload_register ()
 Register the ability to handle drag and drop file uploads.
 
 h5pactivity_extend_settings_navigation (settings_navigation $settingsnav, navigation_node $h5pactivitynode=null)
 Extends the settings navigation with the H5P activity settings.
 
 h5pactivity_fetch_recent_activity (array $submissions, int $courseid)
 Fetches recent activity for course module.
 
 h5pactivity_get_file_areas (stdClass $course, stdClass $cm, stdClass $context)
 Returns the lists of all browsable file areas within the given module context.
 
 h5pactivity_get_file_info (file_browser $browser, array $areas, stdClass $course, stdClass $cm, context $context, string $filearea, ?int $itemid=null, ?string $filepath=null, ?string $filename=null)
 File browsing support for data module.
 
 h5pactivity_get_recent_mod_activity (array &$activities, int &$index, int $timestart, int $courseid, int $cmid, int $userid=0, int $groupid=0)
 Returns all h5pactivities since a given time.
 
 h5pactivity_grade_item_delete (stdClass $moduleinstance)
 Delete grade item for given mod_h5pactivity instance.
 
 h5pactivity_grade_item_update (stdClass $moduleinstance, $grades=null)
 Creates or updates grade item for the given mod_h5pactivity instance.
 
 h5pactivity_page_type_list (string $pagetype, ?stdClass $parentcontext, stdClass $currentcontext)
 Return a list of page types.
 
 h5pactivity_pluginfile ($course, $cm, context $context, string $filearea, array $args, bool $forcedownload, array $options=[])
 Serves the files from the mod_h5pactivity file areas.
 
 h5pactivity_print_recent_activity ($course, bool $viewfullnames, int $timestart)
 Print recent activity from all h5pactivities in a given course.
 
 h5pactivity_print_recent_mod_activity (stdClass $activity, int $courseid, bool $detail, array $modnames)
 Print recent activity from all h5pactivities in a given course.
 
 h5pactivity_rescale_activity_grades (stdClass $course, stdClass $cm, float $oldmin, float $oldmax, float $newmin, float $newmax)
 Rescale all grades for this activity and push the new grades to the gradebook.
 
 h5pactivity_reset_course_form_defaults (stdClass $course)
 Course reset form defaults.
 
 h5pactivity_reset_course_form_definition (&$mform)
 Implementation of the function for printing the form elements that control whether the course reset functionality affects the H5P activity.
 
 h5pactivity_reset_gradebook (int $courseid, string $type='')
 Removes all grades from gradebook.
 
 h5pactivity_reset_userdata (stdClass $data)
 This function is used by the reset_course_userdata function in moodlelib.
 
 h5pactivity_scale_used_anywhere (int $scaleid)
 Checks if scale is being used by any instance of mod_h5pactivity.
 
 h5pactivity_set_mainfile (stdClass $data)
 Saves draft files as the activity package.
 
 h5pactivity_supports (string $feature)
 Checks if H5P activity supports a specific feature.
 
 h5pactivity_update_grades (stdClass $moduleinstance, int $userid=0)
 Update mod_h5pactivity grades in the gradebook.
 
 h5pactivity_update_instance (stdClass $data, mod_h5pactivity_mod_form $mform=null)
 Updates an instance of the mod_h5pactivity in the database.