Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/url/locallib.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Functions

 url_appears_valid_url ($url)
 url_fix_submitted_url ($url)
 url_get_full_url ($url, $cm, $course, $config=null)
 url_filter_callback ($matches)
 url_print_header ($url, $cm, $course)
 url_print_heading ($url, $cm, $course, $ignoresettings=false)
 url_print_intro ($url, $cm, $course, $ignoresettings=false)
 url_display_frame ($url, $cm, $course)
 url_print_workaround ($url, $cm, $course)
 url_display_embed ($url, $cm, $course)
 url_get_final_display_type ($url)
 url_get_variable_options ($config)
 url_get_variable_values ($url, $cm, $course, $config)
 url_get_encrypted_parameter ($url, $config)
 url_guess_icon ($fullurl)

Function Documentation

This methods does weak url validation, we are looking for major problems only, no strict RFE validation.

Parameters:
$url
Returns:
bool true is seems valid, false if definitely not valid URL

Definition at line 40 of file locallib.php.

Here is the caller graph for this function:

url_display_embed ( url,
cm,
course 
)

Display embedded url file.

Parameters:
object$url
object$cm
object$course
Returns:
does not return

Definition at line 300 of file locallib.php.

Here is the call graph for this function:

url_display_frame ( url,
cm,
course 
)

Display url frames.

Parameters:
object$url
object$cm
object$course
Returns:
does not return

Definition at line 208 of file locallib.php.

Here is the call graph for this function:

url_filter_callback ( matches)

Unicode encoding helper callback

Definition at line 142 of file locallib.php.

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.

Parameters:
string$url
Returns:
string

Definition at line 58 of file locallib.php.

Here is the caller graph for this function:

url_get_encrypted_parameter ( url,
config 
)

BC internal function

Parameters:
object$url
object$config
Returns:
string

Definition at line 545 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Decide the best display format.

Parameters:
object$url
Returns:
int display type constant

Definition at line 364 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

url_get_full_url ( url,
cm,
course,
config = null 
)

Return full url with all extra parameters

This function does not include any XSS protection.

Parameters:
string$url
object$cm
object$course
object$config
Returns:
string url with & encoded as &

Definition at line 85 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

url_get_variable_options ( config)

Get the parameters that may be appended to URL

Parameters:
object$configurl module config options
Returns:
array array describing opt groups

Definition at line 405 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

url_get_variable_values ( url,
cm,
course,
config 
)

Get the parameter values that may be appended to URL

Parameters:
object$urlmodule instance
object$cm
object$course
object$configmodule config options
Returns:
array of parameter values

Definition at line 476 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

url_guess_icon ( fullurl)

Optimised mimetype detection from general URL

Parameters:
$fullurl
Returns:
string mimetype

Definition at line 562 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

url_print_header ( url,
cm,
course 
)

Print url header.

Parameters:
object$url
object$cm
object$course
Returns:
void

Definition at line 153 of file locallib.php.

Here is the caller graph for this function:

url_print_heading ( url,
cm,
course,
ignoresettings = false 
)

Print url heading.

Parameters:
object$url
object$cm
object$course
bool$ignoresettingsprint even if not specified in modedit
Returns:
void

Definition at line 170 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

url_print_intro ( url,
cm,
course,
ignoresettings = false 
)

Print url introduction.

Parameters:
object$url
object$cm
object$course
bool$ignoresettingsprint even if not specified in modedit
Returns:
void

Definition at line 188 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

url_print_workaround ( url,
cm,
course 
)

Print url info and link.

Parameters:
object$url
object$cm
object$course
Returns:
does not return

Definition at line 260 of file locallib.php.

Here is the call graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations