ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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. More...
 

Variables

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

Function Documentation

◆ wfUrlProtocols()

wfUrlProtocols ( )

Returns a regular expression of url protocols.

Returns
string

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

44 {
45 global $wgUrlProtocols;
46
47 $wgUrlProtocols = array(
48 'http://',
49 'https://',
50 'ftp://',
51 'irc://',
52 'gopher://',
53 'telnet://', // Well if we're going to support the above.. -ævar
54 'nntp://', // @bug 3808 RFC 1738
55 'worldwind://',
56 'mailto:',
57 'news:'
58 );
59
60
61 // Support old-style $wgUrlProtocols strings, for backwards compatibility
62 // with LocalSettings files from 1.5
63 if ( is_array( $wgUrlProtocols ) ) {
64 $protocols = array();
65 foreach ($wgUrlProtocols as $protocol)
66 $protocols[] = preg_quote( $protocol, '/' );
67
68 return implode( '|', $protocols );
69 } else {
70 return $wgUrlProtocols;
71 }
72}

Variable Documentation

◆ $GLOBALS

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

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

◆ UTF8_REPLACEMENT

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

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