class Formatter
Properties
protected | $configurationCallbacks |
|
||
protected | $parsingCallbacks |
|
||
protected | $renderingCallbacks |
|
||
protected Repository | $cache |
|
||
protected string | $cacheDir |
|
Methods
string
render(string $xml, mixed $context = null, ServerRequestInterface $request = null)
Render parsed XML.
Details
at
line 39
__construct(Repository $cache, string $cacheDir)
at
line 45
addConfigurationCallback($callback)
at
line 50
addParsingCallback($callback)
at
line 55
addRenderingCallback($callback)
at
line 67
string
parse(string $text, mixed $context = null)
Parse text.
at
line 86
string
render(string $xml, mixed $context = null, ServerRequestInterface $request = null)
Render parsed XML.
at
line 103
string
unparse(string $xml)
Unparse XML.
at
line 111
flush()
Flush the cache so that the formatter components are regenerated.
at
line 119
protected Configurator
getConfigurator()
at
line 151
protected
configureExternalLinks(Configurator $configurator)
at
line 169
protected mixed
getComponent(string $name)
Get a TextFormatter component.
at
line 184
protected Parser
getParser(mixed $context = null)
Get the parser.
at
line 198
protected Renderer
getRenderer()
Get the renderer.
at
line 214
string
getJs()
Get the formatter JavaScript.