class Formatter
Properties
protected | $configurationCallbacks | |||
protected | $parsingCallbacks | |||
protected | $unparsingCallbacks | |||
protected | $renderingCallbacks | |||
protected Repository | $cache | |||
protected string | $cacheDir |
Methods
string
render(string $xml, mixed|null $context = null, ServerRequestInterface $request = null)
<p>Render parsed XML.</p>
string
configureDefaultsOnLinks(Renderer $renderer, string $xml, $context = null, ServerRequestInterface $request = null)
No description
Details
at
line 44
__construct(Repository $cache, string $cacheDir)
at
line 53
addConfigurationCallback($callback)
at
line 61
addParsingCallback($callback)
at
line 69
addUnparsingCallback($callback)
at
line 77
addRenderingCallback($callback)
at
line 116
string
render(string $xml, mixed|null $context = null, ServerRequestInterface $request = null)
<p>Render parsed XML.</p>
at
line 136
string
unparse(string $xml, mixed $context = null)
<p>Unparse XML.</p>
at
line 148
flush()
<p>Flush the cache so that the formatter components are regenerated.</p>
at
line 156
protected Configurator
getConfigurator()
at
line 188
protected
configureExternalLinks(Configurator $configurator)
at
line 210
protected mixed
getComponent(string $name)
<p>Get a TextFormatter component.</p>
at
line 225
protected Parser
getParser(mixed $context = null)
<p>Get the parser.</p>
at
line 239
protected Renderer
getRenderer()
<p>Get the renderer.</p>
at
line 255
string
getJs()
<p>Get the formatter JavaScript.</p>