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 109
string
render(string $xml, mixed|null $context = null, ServerRequestInterface $request = null)
<p>Render parsed XML.</p>
at
line 129
string
unparse(string $xml, mixed $context = null)
<p>Unparse XML.</p>
at
line 141
flush()
<p>Flush the cache so that the formatter components are regenerated.</p>
at
line 149
protected Configurator
getConfigurator()
at
line 181
protected
configureExternalLinks(Configurator $configurator)
at
line 203
protected mixed
getComponent(string $name)
<p>Get a TextFormatter component.</p>
at
line 218
protected Parser
getParser(mixed $context = null)
<p>Get the parser.</p>
at
line 232
protected Renderer
getRenderer()
<p>Get the renderer.</p>
at
line 248
string
getJs()
<p>Get the formatter JavaScript.</p>