Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Namespaces | |
namespace | mod_url\analytics\indicator |
| |
namespace | mod_url\completion |
| |
namespace | mod_url\event |
| |
namespace | mod_url\privacy |
| |
namespace | 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\completion\custom_completion |
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 |
mod_url data generator class. More... | |
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. | |
url_add_instance ($data, $mform) | |
Add url instance. | |
url_appears_valid_url ($url) | |
This methods does weak url validation, we are looking for major problems only, no strict RFE validation. | |
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. | |
url_delete_instance ($id) | |
Delete url instance. | |
url_display_embed ($url, $cm, $course) | |
Display embedded url file. | |
url_display_frame ($url, $cm, $course) | |
Display url frames. | |
url_dndupload_handle ($uploadinfo) | |
Handle a file that has been uploaded. | |
url_dndupload_register () | |
Register the ability to handle drag and drop file uploads. | |
url_export_contents ($cm, $baseurl) | |
Export URL resource contents. | |
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. | |
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. | |
url_get_encrypted_parameter ($url, $config) | |
BC internal function. | |
url_get_final_display_type ($url) | |
Decide the best display format. | |
url_get_full_url ($url, $cm, $course, $config=null) | |
Return full url with all extra parameters. | |
url_get_intro (object $url, object $cm, bool $ignoresettings=false) | |
Get url introduction. | |
url_get_post_actions () | |
List the actions that correspond to a post of this module. | |
url_get_variable_options ($config) | |
Get the parameters that may be appended to URL. | |
url_get_variable_values ($url, $cm, $course, $config) | |
Get the parameter values that may be appended to URL. | |
url_get_view_actions () | |
List the actions that correspond to a view of this module. | |
url_guess_icon ($fullurl, $unused=null) | |
Optimised mimetype detection from general URL. | |
url_page_type_list ($pagetype, $parentcontext, $currentcontext) | |
Return a list of page types. | |
url_print_header ($url, $cm, $course) | |
Print url header. | |
url_print_heading ($url, $cm, $course, $notused=false) | |
Print url heading. | |
url_print_intro ($url, $cm, $course, $ignoresettings=false) | |
Print url introduction. | |
url_print_workaround ($url, $cm, $course) | |
Print url info and link. | |
url_reset_userdata ($data) | |
This function is used by the reset_course_userdata function in moodlelib. | |
url_supports ($feature) | |
List of features supported in URL module. | |
url_update_instance ($data, $mform) | |
Update url instance. | |
url_view ($url, $course, $cm, $context) | |
Mark the activity completed (if required) and trigger the course_module_viewed event. | |
xmldb_url_install () | |
xmldb_url_upgrade ($oldversion) | |
Variables | |
$capabilities | |
$functions | |
$logs | |
$plugin = 2023100400 | |
$plugin | component = 'mod_url' |
$plugin | cron = 0 |
$plugin | version = 2023100900 |
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\local\event\entities\action_interface|null |
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 |
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 course_modinfo::get_array_of_activities()
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.
stdClass | $url | |
object | $cm | |
object | $course | |
object | $config |
string | url with & encoded as & |
url_get_intro | ( | object | $url, |
object | $cm, | ||
bool | $ignoresettings = false ) |
Get url introduction.
object | $url | |
object | $cm | |
bool | $ignoresettings | print even if not specified in modedit |
string |
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, | |
$unused = null ) |
Optimised mimetype detection from general URL.
$fullurl | ||
null | $unused | This parameter has been deprecated since 4.3 and should not be used anymore. |
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 |
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 or string for the module purpose. |
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 |