EscapingSnakFormatter wraps another SnakFormatter and applies a transformation (escaping) to that formatter's output.
More...
EscapingSnakFormatter wraps another SnakFormatter and applies a transformation (escaping) to that formatter's output.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Lib\Formatters\EscapingSnakFormatter::__construct |
( |
string |
$format, |
|
|
SnakFormatter |
$formatter, |
|
|
callable |
$escapeCallback |
|
) |
| |
- Parameters
-
string | $format | One of the SnakFormatter::FORMAT_... constants. |
SnakFormatter | $formatter | A formatter returning plain text. |
callable | $escapeCallback | A callable taking plain text and returning escaped text. |
- Exceptions
-
◆ formatSnak()
Wikibase\Lib\Formatters\EscapingSnakFormatter::formatSnak |
( |
Snak |
$snak | ) |
|
◆ getFormat()
Wikibase\Lib\Formatters\EscapingSnakFormatter::getFormat |
( |
| ) |
|
◆ $escapeCallback
Wikibase\Lib\Formatters\EscapingSnakFormatter::$escapeCallback |
|
private |
◆ $format
Wikibase\Lib\Formatters\EscapingSnakFormatter::$format |
|
private |
◆ $formatter
Wikibase\Lib\Formatters\EscapingSnakFormatter::$formatter |
|
private |
The documentation for this class was generated from the following file: