class CsvFileDumper extends FileDumper

CsvFileDumper generates a csv formatted string representation of a message catalogue.

Properties

protected string $relativePathTemplate A template for the relative paths to files. from FileDumper

Methods

setRelativePathTemplate(string $relativePathTemplate)

Sets the template for the relative paths to files.

setBackup(bool $backup) deprecated

Sets backup flag.

dump(MessageCatalogue $messages, array $options = array())

Dumps the message catalogue.

string
formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())

Transforms a domain of a message catalogue to its string representation.

string
getExtension()

Gets the file extension of the dumper.

setCsvControl(string $delimiter = ';', string $enclosure = '"')

Sets the delimiter and escape character for CSV.

Details

in FileDumper at line 40
setRelativePathTemplate(string $relativePathTemplate)

Sets the template for the relative paths to files.

Parameters

string $relativePathTemplate A template for the relative paths to files

in FileDumper at line 52
setBackup(bool $backup) deprecated

deprecated since Symfony 4.1

Sets backup flag.

Parameters

bool $backup

in FileDumper at line 64
dump(MessageCatalogue $messages, array $options = array())

Dumps the message catalogue.

Parameters

MessageCatalogue $messages The message catalogue
array $options Options that are used by the dumper

at line 29
string formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())

Transforms a domain of a message catalogue to its string representation.

Parameters

MessageCatalogue $messages
string $domain
array $options

Return Value

string representation

at line 59
protected string getExtension()

Gets the file extension of the dumper.

Return Value

string file extension

at line 50
setCsvControl(string $delimiter = ';', string $enclosure = '"')

Sets the delimiter and escape character for CSV.

Parameters

string $delimiter Delimiter character
string $enclosure Enclosure character