abstract class Bundle

Methods

static Parser
getCachedParser()

Return a cached instance of the parser

static Renderer
getCachedRenderer()

Return a cached instance of the renderer

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

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

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

static void
reset()

Reset the cached parser and renderer

static string
unparse(string $xml)

Transform an intermediate representation back to its original form

Details

at line 17
static Parser getCachedParser()

Return a cached instance of the parser

Return Value

Parser

at line 32
static Renderer getCachedRenderer()

Return a cached instance of the renderer

Return Value

Renderer

at line 47
abstract static Parser getParser()

Return a new instance of s9e\TextFormatter\Parser

Return Value

Parser

at line 54
abstract static Renderer getRenderer()

Return a new instance of s9e\TextFormatter\Renderer

Return Value

Renderer

at line 61
static string getJS()

Return the source of the JavaScript parser if available

Return Value

string

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

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

at line 125
static void reset()

Reset the cached parser and renderer

Return Value

void

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