FileAccess Orion

XliffFileDumper extends FileDumper
in package

XliffFileDumper generates xliff files from a message catalogue.

Tags
author

Michel Salib michelsalib@hotmail.com

Table of Contents

$relativePathTemplate  : string
A template for the relative paths to files.
dump()  : mixed
Dumps the message catalogue.
formatCatalogue()  : string
Transforms a domain of a message catalogue to its string representation.
setBackup()  : mixed
Sets backup flag.
setRelativePathTemplate()  : mixed
Sets the template for the relative paths to files.
getExtension()  : string
Gets the file extension of the dumper.
dumpXliff1()  : mixed
dumpXliff2()  : mixed
getRelativePath()  : string
Gets the relative file path using the template.
hasMetadataArrayInfo()  : bool

Properties

$relativePathTemplate

A template for the relative paths to files.

protected string $relativePathTemplate = '%domain%.%locale%.%extension%'

Methods

dump()

Dumps the message catalogue.

public dump(MessageCatalogue $messages[, mixed $options = [] ]) : mixed
Parameters
$messages : MessageCatalogue
$options : mixed = []

Options that are used by the dumper

Return values
mixed

formatCatalogue()

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

public formatCatalogue(MessageCatalogue $messages, mixed $domain[, array<string|int, mixed> $options = [] ]) : string
Parameters
$messages : MessageCatalogue
$domain : mixed
$options : array<string|int, mixed> = []
Return values
string

representation

setBackup()

Sets backup flag.

public setBackup(bool $backup) : mixed
Parameters
$backup : bool
Tags
deprecated

since Symfony 4.1

Return values
mixed

setRelativePathTemplate()

Sets the template for the relative paths to files.

public setRelativePathTemplate(string $relativePathTemplate) : mixed
Parameters
$relativePathTemplate : string

A template for the relative paths to files

Return values
mixed

getExtension()

Gets the file extension of the dumper.

protected getExtension() : string
Return values
string

file extension

dumpXliff1()

private dumpXliff1(string $defaultLocale, MessageCatalogue $messages, string|null $domain[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$defaultLocale : string
$messages : MessageCatalogue
$domain : string|null
$options : array<string|int, mixed> = []
Return values
mixed

getRelativePath()

Gets the relative file path using the template.

private getRelativePath(string $domain, string $locale) : string
Parameters
$domain : string
$locale : string
Return values
string

hasMetadataArrayInfo()

private hasMetadataArrayInfo(string $key[, array<string|int, mixed> $metadata = null ]) : bool
Parameters
$key : string
$metadata : array<string|int, mixed> = null
Return values
bool

Search results