Stud.IP  jlu_3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
Studip Class Reference
Collaboration diagram for Studip:
Collaboration graph

Public Member Functions

 Studip ()
 htmlReady ($what, $trim=TRUE, $br=FALSE)
 FixLinks ($data="", $fix_nl=TRUE, $nl_to_br=TRUE, $img=FALSE, $extern=FALSE, $wiki=FALSE)
 TransformInternalLinks ($str)
 preg_call_link ($params, $mod, $img, $extern=FALSE, $wiki=FALSE)

Data Fields

const ENV = 'production'

Member 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

Here is the call 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
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:

Studip ( )
TransformInternalLinks (   $str)

detects internal links in a given string and convert used domain to the domain actually used (only necessary if more than one domain exists)

Parameters
stringtext to convert
Returns
string text with convertes internal links

Here is the caller graph for this function:

Field Documentation

const ENV = 'production'

The documentation for this class was generated from the following files: