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

Library of interface functions and constants. More...

Functions

 h5pactivity_add_instance (stdClass $data, mod_h5pactivity_mod_form $mform=null)
 Saves a new instance of the mod_h5pactivity into the database. More...
 
 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. More...
 
 h5pactivity_delete_instance (int $id)
 Removes an instance of the mod_h5pactivity from the database. More...
 
 h5pactivity_dndupload_handle ($uploadinfo)
 Handle a file that has been uploaded. More...
 
 h5pactivity_dndupload_register ()
 Register the ability to handle drag and drop file uploads. More...
 
 h5pactivity_get_file_areas (stdClass $course, stdClass $cm, stdClass $context)
 Returns the lists of all browsable file areas within the given module context. More...
 
 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. More...
 
 h5pactivity_grade_item_delete (stdClass $moduleinstance)
 Delete grade item for given mod_h5pactivity instance. More...
 
 h5pactivity_grade_item_update (stdClass $moduleinstance, $grades=null)
 Creates or updates grade item for the given mod_h5pactivity instance. More...
 
 h5pactivity_page_type_list (string $pagetype, ?stdClass $parentcontext, stdClass $currentcontext)
 Return a list of page types. More...
 
 h5pactivity_pluginfile ($course, $cm, context $context, string $filearea, array $args, bool $forcedownload, array $options=[])
 Serves the files from the mod_h5pactivity file areas. More...
 
 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. More...
 
 h5pactivity_reset_course_form_defaults (stdClass $course)
 Course reset form defaults. More...
 
 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. More...
 
 h5pactivity_reset_gradebook (int $courseid, string $type='')
 Removes all grades from gradebook. More...
 
 h5pactivity_reset_userdata (stdClass $data)
 This function is used by the reset_course_userdata function in moodlelib. More...
 
 h5pactivity_scale_used_anywhere (int $scaleid)
 Checks if scale is being used by any instance of mod_h5pactivity. More...
 
 h5pactivity_set_mainfile (stdClass $data)
 Saves draft files as the activity package. More...
 
 h5pactivity_supports (string $feature)
 Checks if H5P activity supports a specific feature. More...
 
 h5pactivity_update_grades (stdClass $moduleinstance, int $userid=0)
 Update mod_h5pactivity grades in the gradebook. More...
 
 h5pactivity_update_instance (stdClass $data, mod_h5pactivity_mod_form $mform=null)
 Updates an instance of the mod_h5pactivity in the database. More...
 

Detailed Description

Library of interface functions and constants.

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