ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilMWParserAdapter.php File Reference

Go to the source code of this file.

Data Structures

class  ilMWFakery
class  ilMWParserAdapter

Functions

 wfUrlProtocols ()
 Returns a regular expression of url protocols.

Variables

const UTF8_REPLACEMENT (!function_exists('codepointToUtf8')) = "\xef\xbf\xbd"
 $GLOBALS ["wgContLang"] = new ilMWFakery()

Function Documentation

wfUrlProtocols ( )

Returns a regular expression of url protocols.

Returns
string

Definition at line 44 of file class.ilMWParserAdapter.php.

{
global $wgUrlProtocols;
$wgUrlProtocols = array(
'http://',
'https://',
'ftp://',
'irc://',
'gopher://',
'telnet://', // Well if we're going to support the above.. -ævar
'nntp://', // @bug 3808 RFC 1738
'worldwind://',
'mailto:',
'news:'
);
// Support old-style $wgUrlProtocols strings, for backwards compatibility
// with LocalSettings files from 1.5
if ( is_array( $wgUrlProtocols ) ) {
$protocols = array();
foreach ($wgUrlProtocols as $protocol)
$protocols[] = preg_quote( $protocol, '/' );
return implode( '|', $protocols );
} else {
return $wgUrlProtocols;
}
}

Variable Documentation

$GLOBALS["wgContLang"] = new ilMWFakery()

Definition at line 115 of file class.ilMWParserAdapter.php.

const UTF8_REPLACEMENT(!function_exists('codepointToUtf8')) = "\xef\xbf\xbd"

Definition at line 37 of file class.ilMWParserAdapter.php.