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 45
__construct(Repository $cache, string $cacheDir)
at
line 54
addConfigurationCallback($callback)
at
line 62
addParsingCallback($callback)
at
line 70
addUnparsingCallback($callback)
at
line 78
addRenderingCallback($callback)
at
line 90
string
parse(string $text, mixed $context = null)
<p>Parse text.</p>
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 201
protected mixed
getComponent(string $name)
<p>Get a TextFormatter component.</p>
at
line 216
protected Parser
getParser(mixed $context = null)
<p>Get the parser.</p>
at
line 230
protected Renderer
getRenderer()
<p>Get the renderer.</p>
at
line 246
string
getJs()
<p>Get the formatter JavaScript.</p>