Documentation

Forum_Controller
in package

Forums.

Tags
subpackage

Forum

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

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
hostcms-event

Forum_Controller.onAfterConstruct

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
string

bbCode2HTML()

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
string

instance()

Register an existing instance as a singleton.

public static instance() : object
Return values
object

Smile2HTML()

Replace all smileys codes with their images representation

public Smile2HTML(string $text) : string
Parameters
$text : string

source text

Return values
string

TypographText()

Apply typography to text

public TypographText(string $text) : string
Parameters
$text : string

source text

Return values
string

        
On this page

Search results