Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Library of functions and constants for module label. More...
Functions | |
get_label_name ($label) | |
@uses LABEL_MAX_NAME_LENGTH More... | |
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. More... | |
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. More... | |
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. More... | |
label_dndupload_handle ($uploadinfo) | |
Handle a file that has been uploaded. More... | |
label_dndupload_register () | |
Register the ability to handle drag and drop file uploads. More... | |
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. More... | |
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. More... | |
label_reset_userdata ($data) | |
This function is used by the reset_course_userdata function in moodlelib. More... | |
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 More... | |
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. More... | |
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. More... | |
Variables | |
const | LABEL_MAX_NAME_LENGTH 50 |
LABEL_MAX_NAME_LENGTH = 50. | |
Library of functions and constants for module label.