TranslationWriter
in package
implements
TranslationWriterInterface
TranslationWriter writes translation messages.
Tags
Interfaces, Classes, Traits and Enums
- TranslationWriterInterface
- TranslationWriter writes translation messages.
Table of Contents
- $dumpers : mixed
- addDumper() : mixed
- Adds a dumper to the writer.
- disableBackup() : mixed
- Disables dumper backup.
- getFormats() : array<string|int, mixed>
- Obtains the list of supported formats.
- write() : mixed
- Writes translation from the catalogue according to the selected format.
Properties
$dumpers
private
mixed
$dumpers
= []
Methods
addDumper()
Adds a dumper to the writer.
public
addDumper(string $format, DumperInterface $dumper) : mixed
Parameters
- $format : string
-
The format of the dumper
- $dumper : DumperInterface
Return values
mixed —disableBackup()
Disables dumper backup.
public
disableBackup() : mixed
Tags
Return values
mixed —getFormats()
Obtains the list of supported formats.
public
getFormats() : array<string|int, mixed>
Return values
array<string|int, mixed> —write()
Writes translation from the catalogue according to the selected format.
public
write(MessageCatalogue $catalogue, string $format[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $catalogue : MessageCatalogue
- $format : string
-
The format to use to dump the messages
- $options : array<string|int, mixed> = []
-
Options that are passed to the dumper