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