JsonFileDumper
class JsonFileDumper extends FileDumper
JsonFileDumper generates an json formatted string representation of a message catalogue.
Methods
setRelativePathTemplate(string $relativePathTemplate)
Sets the template for the relative paths to files.
from FileDumper
from FileDumper
string
formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())
Transforms a domain of a message catalogue to its string representation.
Details
in FileDumper at line line 46
setRelativePathTemplate(string $relativePathTemplate)
Sets the template for the relative paths to files.
in FileDumper at line line 56
setBackup(bool $backup)
Sets backup flag.
in FileDumper at line line 64
dump(MessageCatalogue $messages, array $options = array())
Dumps the message catalogue.
at line line 26
string
formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())
Transforms a domain of a message catalogue to its string representation.