Forum_Controller
in package
Forums.
Tags
Table of Contents
Properties
- $instance : mixed
- The singleton instances.
- $_bbPattern : array<string|int, mixed>
- List of values being searched for
- $_bbReplace : array<string|int, mixed>
- List of replacement value that replaces found values
Methods
- __construct() : mixed
- Constructor.
- addBbCode() : mixed
- Add bb code
- applyTextFunctionWithoutCodeSection() : string
- Apply function to text excluding CODE-section
- bbCode2HTML() : string
- Replace bb Codes by HTML tags
- instance() : object
- Register an existing instance as a singleton.
- Smile2HTML() : string
- Replace all smileys codes with their images representation
- TypographText() : string
- Apply typography to text
Properties
$instance
The singleton instances.
public
static mixed
$instance
= \NULL
$_bbPattern
List of values being searched for
protected
array<string|int, mixed>
$_bbPattern
= array()
$_bbReplace
List of replacement value that replaces found values
protected
array<string|int, mixed>
$_bbReplace
= array()
Methods
__construct()
Constructor.
public
__construct() : mixed
Tags
addBbCode()
Add bb code
public
addBbCode(string $BBpattern, string $BBreplace) : mixed
Parameters
- $BBpattern : string
-
value being searched for
- $BBreplace : string
-
replacement value
applyTextFunctionWithoutCodeSection()
Apply function to text excluding CODE-section
public
applyTextFunctionWithoutCodeSection(string $text, string $function_name) : string
Parameters
- $text : string
-
source text
- $function_name : string
-
function name
Return values
stringbbCode2HTML()
Replace bb Codes by HTML tags
public
bbCode2HTML(string $text[, bool $use_typograph = TRUE ]) : string
Parameters
- $text : string
-
source text
- $use_typograph : bool = TRUE
-
typograph mode
Return values
stringinstance()
Register an existing instance as a singleton.
public
static instance() : object
Return values
objectSmile2HTML()
Replace all smileys codes with their images representation
public
Smile2HTML(string $text) : string
Parameters
- $text : string
-
source text
Return values
stringTypographText()
Apply typography to text
public
TypographText(string $text) : string
Parameters
- $text : string
-
source text