class Formatter
Properties
| protected array | $configurationCallbacks |
|
||
| protected array | $parsingCallbacks |
|
||
| protected array | $unparsingCallbacks |
|
||
| protected array | $renderingCallbacks |
|
Methods
string
render(string $xml, mixed $context = null, ServerRequestInterface|null $request = null)
No description
string
convert(string|null $content)
Converts a plain text string (with or without Markdown) to it's HTML equivalent.
Details
at
line 28
__construct(Repository $cache, string $cacheDir)
at
line 37
void
addConfigurationCallback(callable $callback)
at
line 45
void
addParsingCallback(callable $callback)
at
line 53
void
addUnparsingCallback(callable $callback)
at
line 61
void
addRenderingCallback(callable $callback)
at
line 66
string
parse(string $text, mixed $context = null, User|null $user = null)
at
line 84
string
render(string $xml, mixed $context = null, ServerRequestInterface|null $request = null)
at
line 97
string|null
unparse(string|null $xml, mixed $context = null)
at
line 113
void
flush()
Flush the cache so that the formatter components are regenerated.
at
line 118
protected Configurator
getConfigurator()
at
line 147
protected void
configureExternalLinks(Configurator $configurator)
at
line 166
protected mixed
getComponent(string $name)
Get a TextFormatter component ("renderer" or "parser" or "js").
at
line 175
protected Parser
getParser(mixed $context = null)
at
line 184
protected Renderer
getRenderer()
at
line 198
string
getJs()
Get the formatter JavaScript.
at
line 203
protected string
configureDefaultsOnLinks(string $xml)
at
line 215
string
convert(string|null $content)
Converts a plain text string (with or without Markdown) to it's HTML equivalent.