Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
Private url module utility functions
Copyright: | 2009 Petr Skoda {@link http://skodak.org} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 566 lines (20 kb) |
Included or required: | 0 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
url_appears_valid_url($url) X-Ref |
This methods does weak url validation, we are looking for major problems only, no strict RFE validation. return: bool true is seems valid, false if definitely not valid URL param: $url |
url_fix_submitted_url($url) X-Ref |
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. return: string param: string $url |
url_get_full_url($url, $cm, $course, $config=null) X-Ref |
Return full url with all extra parameters This function does not include any XSS protection. return: string url with & encoded as & param: string $url param: object $cm param: object $course param: object $config |
url_filter_callback($matches) X-Ref |
Unicode encoding helper callback return: string param: array $matches |
url_print_header($url, $cm, $course) X-Ref |
Print url header. return: void param: object $url param: object $cm param: object $course |
url_get_intro(object $url, object $cm, bool $ignoresettings = false) X-Ref |
Get url introduction. return: string param: object $url param: object $cm param: bool $ignoresettings print even if not specified in modedit |
url_display_frame($url, $cm, $course) X-Ref |
Display url frames. return: does not return param: object $url param: object $cm param: object $course |
url_print_workaround($url, $cm, $course) X-Ref |
Print url info and link. return: does not return param: object $url param: object $cm param: object $course |
url_display_embed($url, $cm, $course) X-Ref |
Display embedded url file. return: does not return param: object $url param: object $cm param: object $course |
url_get_final_display_type($url) X-Ref |
Decide the best display format. return: int display type constant param: object $url |
url_get_variable_options($config) X-Ref |
Get the parameters that may be appended to URL return: array array describing opt groups param: object $config url module config options |
url_get_variable_values($url, $cm, $course, $config) X-Ref |
Get the parameter values that may be appended to URL return: array of parameter values param: object $url module instance param: object $cm param: object $course param: object $config module config options |
url_get_encrypted_parameter($url, $config) X-Ref |
BC internal function return: string param: object $url param: object $config |
url_guess_icon($fullurl, $size = null) X-Ref |
Optimised mimetype detection from general URL return: string|null mimetype or null when the filetype is not relevant. param: $fullurl param: int $size of the icon. |