ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilMWParserAdapter.php File Reference

Go to the source code of this file.

Data Structures

class  ilMWFakery
 
class  ilMWParserAdapter
 

Functions

if(!defined( 'UTF8_REPLACEMENT')) wfUrlProtocols ()
 Returns a regular expression of url protocols. More...
 

Variables

if(!function_exists("wfProfileIn")) if (!function_exists("wfProfileOut"))
 
 $GLOBALS ["wgContLang"] = new ilMWFakery()
 

Function Documentation

◆ wfUrlProtocols()

if(!defined('UTF8_REPLACEMENT')) wfUrlProtocols ( )

Returns a regular expression of url protocols.

Returns
string

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

27{
28 global $wgUrlProtocols;
29
30 $wgUrlProtocols = array(
31 'http://',
32 'https://',
33 'ftp://',
34 'irc://',
35 'gopher://',
36 'telnet://', // Well if we're going to support the above.. -ævar
37 'nntp://', // @bug 3808 RFC 1738
38 'worldwind://',
39 'mailto:',
40 'news:'
41 );
42
43
44 // Support old-style $wgUrlProtocols strings, for backwards compatibility
45 // with LocalSettings files from 1.5
46 if (is_array($wgUrlProtocols)) {
47 $protocols = array();
48 foreach ($wgUrlProtocols as $protocol) {
49 $protocols[] = preg_quote($protocol, '/');
50 }
51
52 return implode('|', $protocols);
53 } else {
54 return $wgUrlProtocols;
55 }
56}

Variable Documentation

◆ $GLOBALS

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

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

◆ if

if(!function_exists("wfProfileIn")) if(!function_exists("wfProfileOut")) ( function_exists"wfProfileOut")

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