\hhu\zTextFormatter

Class to format text with different syntax tags.

Summary

Methods
Properties
Constants
__construct()
t()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
loadMediaModel()
$linker
$Media
N/A

Properties

$linker

$linker : \nre\core\Linker

Linker to create links.

Type

\nre\core\Linker

$Media

$Media : \nre\core\Model

Media-Model to retrieve media data

Type

\nre\core\Model

Methods

__construct()

__construct(\nre\core\Linker  $linker) 

Create a new text formatter.

Parameters

\nre\core\Linker $linker

Linker to create links with

t()

t(string  $string) : string

Format a string.

Parameters

string $string

String to format

Returns

string —

Formatted string

loadMediaModel()

loadMediaModel() : boolean

Load the Media-Model if it is not loaded

Returns

boolean —

Whether the Media-Model has been loaded or not