abstract class Forum extends Bundle

Properties

static protected Parser $parser
static protected Renderer $renderer

Methods

static Parser
getCachedParser()

Return a cached instance of the parser

from  Bundle
static Renderer
getCachedRenderer()

Return a cached instance of the renderer

from  Bundle
static Parser
getParser()

Return a new instance of s9e\TextFormatter\Parser

static Renderer
getRenderer()

Return a new instance of s9e\TextFormatter\Renderer

static string
getJS()

Return the source of the JavaScript parser if available

static string
parse(string $text)

Parse given text using a singleton instance of the bundled Parser

from  Bundle
static string
render(string $xml, array $params = [])

Render an intermediate representation using a singleton instance of the bundled Renderer

from  Bundle
static void
reset()

Reset the cached parser and renderer

from  Bundle
static string
unparse(string $xml)

Transform an intermediate representation back to its original form

from  Bundle

Details

in Bundle at line 17
static Parser getCachedParser()

Return a cached instance of the parser

Return Value

Parser

in Bundle at line 32
static Renderer getCachedRenderer()

Return a cached instance of the renderer

Return Value

Renderer

at line 356
static Parser getParser()

Return a new instance of s9e\TextFormatter\Parser

Return Value

Parser

at line 364
static Renderer getRenderer()

Return a new instance of s9e\TextFormatter\Renderer

Return Value

Renderer

at line 25
static string getJS()

Return the source of the JavaScript parser if available

Return Value

string

in Bundle at line 72
static string parse(string $text)

Parse given text using a singleton instance of the bundled Parser

Parameters

string $text

Original text

Return Value

string

Intermediate representation

in Bundle at line 96
static string render(string $xml, array $params = [])

Render an intermediate representation using a singleton instance of the bundled Renderer

Parameters

string $xml

Intermediate representation

array $params

Stylesheet parameters

Return Value

string

Rendered result

in Bundle at line 125
static void reset()

Reset the cached parser and renderer

Return Value

void

in Bundle at line 137
static string unparse(string $xml)

Transform an intermediate representation back to its original form

Parameters

string $xml

Intermediate representation

Return Value

string

Original text