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

Functions

 get_label_name ($label)
 @uses LABEL_MAX_NAME_LENGTH
 
object label_add_instance ($label)
 Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will create a new instance and return the id number of the new instance.
 
 label_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.
 
 label_cm_info_view (cm_info $cm)
 Sets the special label display on course page.
 
object label_delete_instance ($id)
 Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it.
 
 label_dndupload_handle ($uploadinfo)
 Handle a file that has been uploaded.
 
 label_dndupload_register ()
 Register the ability to handle drag and drop file uploads.
 
 label_generate_resized_image (stored_file $file, $maxwidth, $maxheight)
 Resize the image, if required, then generate an img tag and, if required, a link to the full-size image.
 
object label_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.
 
 label_reset_userdata ($data)
 This function is used by the reset_course_userdata function in moodlelib.
 
 label_supports ($feature)
 @uses FEATURE_IDNUMBER @uses FEATURE_GROUPS @uses FEATURE_GROUPINGS @uses FEATURE_MOD_INTRO @uses FEATURE_COMPLETION_TRACKS_VIEWS @uses FEATURE_GRADE_HAS_GRADE @uses FEATURE_GRADE_OUTCOMES
 
object label_update_instance ($label)
 Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will update an existing instance with new data.
 
 mod_label_core_calendar_provide_event_action (calendar_event $event, core_calendar\action_factory $factory, int $userid=0)
 This function receives a calendar event and returns the action associated with it, or null if there is none.
 

Variables

const LABEL_MAX_NAME_LENGTH 50
 LABEL_MAX_NAME_LENGTH = 50.