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
-
| string | text to convert |
| string | TRUE if all forms of newlines have to be converted in single
|
| boolean | TRUE if newlines have to be converted into
|
| boolean | TRUE if pictures should be displayed |
| boolean | TRUE if called from external pages ('externe Seiten') |
- Returns
- string
| htmlReady |
( |
|
$what, |
|
|
|
$trim = TRUE, |
|
|
|
$br = FALSE |
|
) |
| |
function aus Stud.IP, /lib/visual.inc.php
- Parameters
-
| string | $what | text |
| 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 | $params | parameters extracted by the regular expression |
| string | $mod | type of lin ('LINK' or 'MAIL') |
| boolean | $img | TRUE to handle image-links |
| boolean | $extern | TRUE if called from external pages ('externe Seiten') |
- Returns
- string
| 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
-
- Returns
- string text with convertes internal links
Field Documentation
The documentation for this class was generated from the following files: