ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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

if(!function_exists("wfProfileIn")) if (!function_exists("wfProfileOut"))
 
const UTF8_REPLACEMENT "\xef\xbf\xbd"
 
 $GLOBALS ["wgContLang"] = new ilMWFakery()
 

Function Documentation

◆ wfUrlProtocols()

wfUrlProtocols ( )

Returns a regular expression of url protocols.

Returns
string

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

References array.

Referenced by Parser\magicLinkCallback().

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

Variable Documentation

◆ $GLOBALS

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

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

◆ if

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

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

◆ UTF8_REPLACEMENT

const UTF8_REPLACEMENT "\xef\xbf\xbd"

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