|
Moodle PHP Documentation 4.4
Moodle 4.4.9+ (Build: 20250711) (4ea86454947)
|
Namespaces | |
| namespace | mod_label\analytics\indicator |
| | |
| namespace | mod_label\completion |
| | |
| namespace | mod_label\navigation\views |
| | |
| namespace | mod_label\privacy |
| | |
| namespace | mod_label\search |
| | |
Classes | |
| class | backup_label_activity_structure_step |
| Define all the backup steps that will be used by the backup_label_activity_task. More... | |
| class | backup_label_activity_task |
| Provides the steps to perform one complete backup of the Label instance. More... | |
| class | mod_label\analytics\indicator\activity_base |
| Activity base class. More... | |
| class | mod_label\analytics\indicator\cognitive_depth |
| Cognitive depth indicator - label. More... | |
| class | mod_label\analytics\indicator\social_breadth |
| Social breadth indicator - label. More... | |
| class | mod_label\completion\custom_completion |
| class | mod_label\navigation\views\secondary |
| class | mod_label\privacy\provider |
| The mod_label module does not store any data. More... | |
| class | mod_label\search\activity |
| Search area for mod_label activities. More... | |
| class | mod_label_external |
| Label external functions. More... | |
| class | mod_label_generator |
| Label module data generator class. More... | |
| class | mod_label_mod_form |
| class | moodle1_mod_label_handler |
| Label conversion handler. More... | |
| class | restore_label_activity_structure_step |
| Define all the restore steps that will be used by the restore_url_activity_task. More... | |
| class | restore_label_activity_task |
| label restore task that provides all the settings and steps to perform one complete restore of the activity More... | |
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. | |
| xmldb_label_upgrade ($oldversion) | |
Variables | |
| $capabilities | |
| $functions | |
| $logs | |
| $plugin = 2024041600 | |
| $plugin | component = 'mod_label' |
| $plugin | cron = 0 |
| const | LABEL_MAX_NAME_LENGTH 50 |
| LABEL_MAX_NAME_LENGTH = 50. | |
| $plugin | version = 2024042200 |
| get_label_name | ( | $label | ) |
@uses LABEL_MAX_NAME_LENGTH
| object | $label |
| string |
| 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.
| object | $label |
| bool|int |
| 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.
| cm_info | $cm | course module data |
| int | $from | the time to check updates from |
| array | $filter | if we need to check only specific updates |
| stdClass | an object with the different type of areas indicating if they were updated or not |
| label_cm_info_view | ( | cm_info | $cm | ) |
Sets the special label display on course page.
| cm_info | $cm | Course-module object |
| 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.
| int | $id |
| bool |
| label_dndupload_handle | ( | $uploadinfo | ) |
Handle a file that has been uploaded.
| object | $uploadinfo | details of the file / content that has been uploaded |
| int | instance id of the newly created mod |
| label_dndupload_register | ( | ) |
Register the ability to handle drag and drop file uploads.
| array | containing details of the files / types the mod can handle |
| 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.
| stored_file | $file | the image file to process |
| int | $maxwidth | the maximum width allowed for the image |
| int | $maxheight | the maximum height allowed for the image |
| string | HTML fragment to add to the label |
| 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.
See get_array_of_activities() in course/lib.php
| object | $coursemodule |
| cached_cm_info|null |
| label_reset_userdata | ( | $data | ) |
This function is used by the reset_course_userdata function in moodlelib.
| object | $data | the data submitted from the reset course. |
| array | status array |
| 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
| string | $feature | FEATURE_xx constant for requested feature |
| mixed | True if module supports feature, false if not, null if doesn't know or string for the module purpose. |
| 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.
| object | $label |
| bool |
| 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.
This is used by block_myoverview in order to display the event appropriately. If null is returned then the event is not displayed on the block.
| calendar_event | $event | |
| core_calendar\action_factory | $factory | |
| int | $userid | User id to use for all capability checks, etc. Set to 0 for current user (default). |
| core_calendar::local::event::entities::action_interface|null |
| $capabilities |
| $functions |
| $logs |