Stud.IP  jlu_3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
studip_functions.php File Reference

Functions

 htmlReady ($what, $trim=TRUE, $br=FALSE)
 FixLinks ($data="", $fix_nl=TRUE, $nl_to_br=TRUE, $img=FALSE, $extern=FALSE, $wiki=FALSE)
 preg_call_link ($params, $mod, $img, $extern=FALSE, $wiki=FALSE)
 idna_link ($link, $mail=false)
 format ($text)

Function Documentation

FixLinks (   $data = "",
  $fix_nl = TRUE,
  $nl_to_br = TRUE,
  $img = FALSE,
  $extern = FALSE,
  $wiki = FALSE 
)

Stud.IP funktion aus /lib/visual.inc.php detects links in a given string and convert it into html-links

public

Parameters
stringtext to convert
stringTRUE if all forms of newlines have to be converted in single
booleanTRUE if newlines have to be converted into
booleanTRUE if pictures should be displayed
booleanTRUE if called from external pages ('externe Seiten')
Returns
string
format (   $text)

uses a special syntax to formatting text

public

Parameters
stringtext to format
Returns
string

Here is the caller graph for this function:

htmlReady (   $what,
  $trim = TRUE,
  $br = FALSE 
)

function aus Stud.IP, /lib/visual.inc.php

Parameters
string$whattext
boolean$trim?
boolean$br?
Returns
string gibt html-formatierten Text zurueck
idna_link (   $link,
  $mail = false 
)

convert links with 'umlauten' to punycode

public

Parameters
stringlink to convert
booleanfor mailadr = true and for other link = false
Returns
string link in punycode
preg_call_link (   $params,
  $mod,
  $img,
  $extern = FALSE,
  $wiki = FALSE 
)

callback function used by FixLinks()

private

Parameters
array$paramsparameters extracted by the regular expression
string$modtype of lin ('LINK' or 'MAIL')
boolean$imgTRUE to handle image-links
boolean$externTRUE if called from external pages ('externe Seiten')
Returns
string

Here is the call graph for this function: