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)
Render parsed XML.
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)
Render parsed XML.
at
line 136
string
unparse(string $xml, mixed $context = null)
Unparse XML.
at
line 148
flush()
Flush the cache so that the formatter components are regenerated.
at
line 156
protected Configurator
getConfigurator()
at
line 188
protected
configureExternalLinks(Configurator $configurator)
at
line 210
protected mixed
getComponent(string $name)
Get a TextFormatter component.
at
line 225
protected Parser
getParser(mixed $context = null)
Get the parser.
at
line 239
protected Renderer
getRenderer()
Get the renderer.
at
line 255
string
getJs()
Get the formatter JavaScript.