Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Files | |
file | access.php |
Capability definitions for the url module. | |
file | activity.php |
Search area for mod_url activities. | |
file | activity_base.php |
Activity base class. | |
file | backup_url_activity_task.class.php |
Defines backup_url_activity_task class. | |
file | backup_url_stepslib.php |
Define all the backup steps that will be used by the backup_url_activity_task. | |
file | cognitive_depth.php |
Cognitive depth indicator - url. | |
file | course_module_instance_list_viewed.php |
The mod_url instance list viewed event. | |
file | course_module_viewed.php |
The mod_url course module viewed event. | |
file | external.php |
URL external API. | |
file | install.php |
Post installation and migration code. | |
file | lib.php |
mod_url data generator. | |
file | lib.php |
Mandatory public API of url module. | |
file | lib.php |
Provides support for the conversion of moodle1 backup to the moodle2 format. | |
file | locallib.php |
Private url module utility functions. | |
file | log.php |
Definition of log events. | |
file | mod_form.php |
URL configuration form. | |
file | provider.php |
Privacy Subsystem implementation for mod_url. | |
file | restore_url_activity_task.class.php |
@subpackage backup-moodle2 | |
file | restore_url_stepslib.php |
@subpackage backup-moodle2 | |
file | services.php |
URL external functions and service definitions. | |
file | settings.php |
Url module admin settings and defaults. | |
file | social_breadth.php |
Social breadth indicator - url. | |
file | upgrade.php |
URL module upgrade code. | |
file | version.php |
Folder module version information. | |
Namespaces | |
mod_url\analytics\indicator | |
| |
mod_url\event | |
| |
mod_url\privacy | |
| |
mod_url\search | |
| |
Classes | |
class | backup_url_activity_structure_step |
Define the complete url structure for backup, with file and id annotations. More... | |
class | backup_url_activity_task |
Provides all the settings and steps to perform one complete backup of the activity. More... | |
class | mod_url\analytics\indicator\activity_base |
Activity base class. More... | |
class | mod_url\analytics\indicator\cognitive_depth |
Cognitive depth indicator - url. More... | |
class | mod_url\analytics\indicator\social_breadth |
Social breadth indicator - url. More... | |
class | mod_url\event\course_module_instance_list_viewed |
The mod_url instance list viewed event class. More... | |
class | mod_url\event\course_module_viewed |
The mod_url course module viewed event class. More... | |
class | mod_url\privacy\provider |
The mod_url module does not store any data. More... | |
class | mod_url\search\activity |
Search area for mod_url activities. More... | |
class | mod_url_external |
class | mod_url_generator |
class | mod_url_mod_form |
class | moodle1_mod_url_handler |
URL conversion handler. More... | |
class | restore_url_activity_structure_step |
Define all the restore steps that will be used by the restore_url_activity_task. More... | |
class | restore_url_activity_task |
url restore task that provides all the settings and steps to perform one complete restore of the activity More... | |
Functions | |
mod_url_core_calendar_provide_event_action (calendar_event $event, core_calendar\action_factory $factory, $userid=0) | |
This function receives a calendar event and returns the action associated with it, or null if there is none. More... | |
url_add_instance ($data, $mform) | |
Add url instance. More... | |
url_appears_valid_url ($url) | |
This methods does weak url validation, we are looking for major problems only, no strict RFE validation. More... | |
url_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... | |
url_delete_instance ($id) | |
Delete url instance. More... | |
url_display_embed ($url, $cm, $course) | |
Display embedded url file. More... | |
url_display_frame ($url, $cm, $course) | |
Display url frames. More... | |
url_dndupload_handle ($uploadinfo) | |
Handle a file that has been uploaded. More... | |
url_dndupload_register () | |
Register the ability to handle drag and drop file uploads. More... | |
url_export_contents ($cm, $baseurl) | |
Export URL resource contents. More... | |
url_filter_callback ($matches) | |
Unicode encoding helper callback. | |
url_fix_submitted_url ($url) | |
Fix common URL problems that we want teachers to see fixed the next time they edit the resource. More... | |
url_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... | |
url_get_encrypted_parameter ($url, $config) | |
BC internal function. More... | |
url_get_final_display_type ($url) | |
Decide the best display format. More... | |
url_get_full_url ($url, $cm, $course, $config=null) | |
Return full url with all extra parameters. More... | |
url_get_post_actions () | |
List the actions that correspond to a post of this module. More... | |
url_get_variable_options ($config) | |
Get the parameters that may be appended to URL. More... | |
url_get_variable_values ($url, $cm, $course, $config) | |
Get the parameter values that may be appended to URL. More... | |
url_get_view_actions () | |
List the actions that correspond to a view of this module. More... | |
url_guess_icon ($fullurl, $size=null) | |
Optimised mimetype detection from general URL. More... | |
url_page_type_list ($pagetype, $parentcontext, $currentcontext) | |
Return a list of page types. More... | |
url_print_header ($url, $cm, $course) | |
Print url header. More... | |
url_print_heading ($url, $cm, $course, $notused=false) | |
Print url heading. More... | |
url_print_intro ($url, $cm, $course, $ignoresettings=false) | |
Print url introduction. More... | |
url_print_workaround ($url, $cm, $course) | |
Print url info and link. More... | |
url_reset_userdata ($data) | |
This function is used by the reset_course_userdata function in moodlelib. More... | |
url_supports ($feature) | |
List of features supported in URL module. More... | |
url_update_instance ($data, $mform) | |
Update url instance. More... | |
url_view ($url, $course, $cm, $context) | |
Mark the activity completed (if required) and trigger the course_module_viewed event. More... | |
xmldb_url_install () | |
xmldb_url_upgrade ($oldversion) | |
Variables | |
$capabilities | |
$functions | |
$logs | |
$plugin | component = 'mod_url' |
$plugin | cron = 0 |
$plugin | requires = 2019111200 |
$plugin | version = 2019111800 |
mod_url_core_calendar_provide_event_action | ( | calendar_event | $event, |
core_calendar\action_factory | $factory, | ||
$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 | ID override for calendar events |
core_calendar |
url_add_instance | ( | $data, | |
$mform | |||
) |
Add url instance.
object | $data | |
object | $mform |
int | new url instance id |
url_appears_valid_url | ( | $url | ) |
This methods does weak url validation, we are looking for major problems only, no strict RFE validation.
$url |
bool | true is seems valid, false if definitely not valid URL |
url_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 |
url_delete_instance | ( | $id | ) |
Delete url instance.
int | $id |
bool | true |
url_display_embed | ( | $url, | |
$cm, | |||
$course | |||
) |
Display embedded url file.
object | $url | |
object | $cm | |
object | $course |
does | not return |
url_display_frame | ( | $url, | |
$cm, | |||
$course | |||
) |
Display url frames.
object | $url | |
object | $cm | |
object | $course |
does | not return |
url_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 |
url_dndupload_register | ( | ) |
Register the ability to handle drag and drop file uploads.
array | containing details of the files / types the mod can handle |
url_export_contents | ( | $cm, | |
$baseurl | |||
) |
Export URL resource contents.
array | of file content |
url_fix_submitted_url | ( | $url | ) |
Fix common URL problems that we want teachers to see fixed the next time they edit the resource.
This function does not include any XSS protection.
string | $url |
string |
url_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 | info |
url_get_encrypted_parameter | ( | $url, | |
$config | |||
) |
BC internal function.
object | $url | |
object | $config |
string |
url_get_final_display_type | ( | $url | ) |
Decide the best display format.
object | $url |
int | display type constant |
url_get_full_url | ( | $url, | |
$cm, | |||
$course, | |||
$config = null |
|||
) |
Return full url with all extra parameters.
This function does not include any XSS protection.
string | $url | |
object | $cm | |
object | $course | |
object | $config |
string | url with & encoded as & |
url_get_post_actions | ( | ) |
List the actions that correspond to a post of this module.
This is used by the participation report.
Note: This is not used by new logging system. Event with crud = ('c' || 'u' || 'd') and edulevel = LEVEL_PARTICIPATING will be considered as post action.
array |
url_get_variable_options | ( | $config | ) |
Get the parameters that may be appended to URL.
object | $config | url module config options |
array | array describing opt groups |
url_get_variable_values | ( | $url, | |
$cm, | |||
$course, | |||
$config | |||
) |
Get the parameter values that may be appended to URL.
object | $url | module instance |
object | $cm | |
object | $course | |
object | $config | module config options |
array | of parameter values |
url_get_view_actions | ( | ) |
List the actions that correspond to a view of this module.
This is used by the participation report.
Note: This is not used by new logging system. Event with crud = 'r' and edulevel = LEVEL_PARTICIPATING will be considered as view action.
array |
url_guess_icon | ( | $fullurl, | |
$size = null |
|||
) |
Optimised mimetype detection from general URL.
$fullurl | ||
int | $size | of the icon. |
string|null | mimetype or null when the filetype is not relevant. |
url_page_type_list | ( | $pagetype, | |
$parentcontext, | |||
$currentcontext | |||
) |
Return a list of page types.
string | $pagetype | current page type |
stdClass | $parentcontext | Block's parent context |
stdClass | $currentcontext | Current context of block |
url_print_header | ( | $url, | |
$cm, | |||
$course | |||
) |
Print url header.
object | $url | |
object | $cm | |
object | $course |
void |
url_print_heading | ( | $url, | |
$cm, | |||
$course, | |||
$notused = false |
|||
) |
Print url heading.
object | $url | |
object | $cm | |
object | $course | |
bool | $notused | This variable is no longer used. |
void |
url_print_intro | ( | $url, | |
$cm, | |||
$course, | |||
$ignoresettings = false |
|||
) |
Print url introduction.
object | $url | |
object | $cm | |
object | $course | |
bool | $ignoresettings | print even if not specified in modedit |
void |
url_print_workaround | ( | $url, | |
$cm, | |||
$course | |||
) |
Print url info and link.
object | $url | |
object | $cm | |
object | $course |
does | not return |
url_reset_userdata | ( | $data | ) |
This function is used by the reset_course_userdata function in moodlelib.
$data | the data submitted from the reset course. |
array | status array |
url_supports | ( | $feature | ) |
List of features supported in URL module.
string | $feature | FEATURE_xx constant for requested feature |
mixed | True if module supports feature, false if not, null if doesn't know |
url_update_instance | ( | $data, | |
$mform | |||
) |
Update url instance.
object | $data | |
object | $mform |
bool | true |
url_view | ( | $url, | |
$course, | |||
$cm, | |||
$context | |||
) |
Mark the activity completed (if required) and trigger the course_module_viewed event.
stdClass | $url | url object |
stdClass | $course | course object |
stdClass | $cm | course module object |
stdClass | $context | context object |
$capabilities |
$functions |
$logs |