Bundle
abstract class Bundle
Methods
Return a cached instance of the parser
Return a cached instance of the renderer
Return a new instance of s9e\TextFormatter\Renderer
Return the source of the JavaScript parser if available
Parse given text using a singleton instance of the bundled Parser
Render an intermediate representation using a singleton instance of the bundled Renderer
Reset the cached parser and renderer
Transform an intermediate representation back to its original form
Details
at line 17
static Parser
getCachedParser()
Return a cached instance of the parser
at line 32
static Renderer
getCachedRenderer()
Return a cached instance of the renderer
at line 47
abstract static Parser
getParser()
Return a new instance of s9e\TextFormatter\Parser
at line 54
abstract static Renderer
getRenderer()
Return a new instance of s9e\TextFormatter\Renderer
at line 61
static string
getJS()
Return the source of the JavaScript parser if available
at line 72
static string
parse(string $text)
Parse given text using a singleton instance of the bundled Parser
at line 96
static string
render(string $xml, array $params = [])
Render an intermediate representation using a singleton instance of the bundled Renderer
at line 125
static void
reset()
Reset the cached parser and renderer
at line 137
static string
unparse(string $xml)
Transform an intermediate representation back to its original form