Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Files | |
file | access.php |
Capability definitions for the label module. | |
file | activity.php |
Search area for mod_label activities. | |
file | activity_base.php |
Activity base class. | |
file | backup_label_activity_task.class.php |
Defines backup_label_activity_task class. | |
file | backup_label_stepslib.php |
file | cognitive_depth.php |
Cognitive depth indicator - label. | |
file | external.php |
Label external API. | |
file | lib.php |
mod_label data generator | |
file | lib.php |
Library of functions and constants for module label. | |
file | lib.php |
Provides support for the conversion of moodle1 backup to the moodle2 format Based off of a template @ http://docs.moodle.org/dev/Backup_1.9_conversion_for_developers. | |
file | log.php |
Definition of log events. | |
file | mod_form.php |
Add label form. | |
file | provider.php |
Privacy Subsystem implementation for mod_label. | |
file | restore_label_activity_task.class.php |
@subpackage backup-moodle2 | |
file | restore_label_stepslib.php |
@subpackage backup-moodle2 | |
file | services.php |
Label external functions and service definitions. | |
file | settings.php |
Resource module admin settings and defaults. | |
file | social_breadth.php |
Social breadth indicator - label. | |
file | upgrade.php |
Label module upgrade. | |
file | version.php |
Label module version info. | |
Namespaces | |
mod_label\analytics\indicator | |
| |
mod_label\privacy | |
| |
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\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 |
class | mod_label_generator |
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 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... | |
xmldb_label_upgrade ($oldversion) | |
Variables | |
$capabilities | |
$functions | |
$logs | |
$plugin | component = 'mod_label' |
$plugin | cron = 0 |
const | LABEL_MAX_NAME_LENGTH 50 |
LABEL_MAX_NAME_LENGTH = 50. | |
$plugin | requires = 2019111200 |
$plugin | version = 2019111800 |
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 |
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 |
bool|null | True if module supports feature, false if not, null if doesn't know |
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 |
$capabilities |
$functions |
$logs |