class Formatter
Properties
protected | $configurationCallbacks | |||
protected | $parsingCallbacks | |||
protected | $unparsingCallbacks | |||
protected | $renderingCallbacks | |||
protected Repository | $cache | |||
protected string | $cacheDir |
Methods
string
render(string $xml, mixed $context = null, ServerRequestInterface $request = null)
<p>Render parsed XML.</p>
Details
at
line 41
__construct(Repository $cache, string $cacheDir)
at
line 50
addConfigurationCallback($callback)
at
line 58
addParsingCallback($callback)
at
line 66
addUnparsingCallback($callback)
at
line 74
addRenderingCallback($callback)
at
line 86
string
parse(string $text, mixed $context = null)
<p>Parse text.</p>
at
line 105
string
render(string $xml, mixed $context = null, ServerRequestInterface $request = null)
<p>Render parsed XML.</p>
at
line 123
string
unparse(string $xml, mixed $context = null)
<p>Unparse XML.</p>
at
line 135
flush()
<p>Flush the cache so that the formatter components are regenerated.</p>
at
line 143
protected Configurator
getConfigurator()
at
line 175
protected
configureExternalLinks(Configurator $configurator)
at
line 193
protected mixed
getComponent(string $name)
<p>Get a TextFormatter component.</p>
at
line 208
protected Parser
getParser(mixed $context = null)
<p>Get the parser.</p>
at
line 222
protected Renderer
getRenderer()
<p>Get the renderer.</p>
at
line 238
string
getJs()
<p>Get the formatter JavaScript.</p>