\Gettext\GeneratorsCsv

Class to export translations to csv.

Summary

Methods
Properties
Constants
toFile()
toString()
$options
No constants found
No protected methods found
No protected properties found
N/A
generateHeaders()
supportsCsvEscapeChar()
fgetcsv()
fputcsv()
$csvEscapeChar
N/A

Properties

$options

$options : 

Type

$csvEscapeChar

$csvEscapeChar : 

Type

Methods

toFile()

toFile(\Gettext\Translations  $translations, string  $file, array  $options = array()) : boolean

Saves the translations in a file.

Parameters

\Gettext\Translations $translations
string $file
array $options

Returns

boolean

toString()

toString(\Gettext\Translations  $translations, array  $options = array()) : string

{@parentDoc}.

Parameters

\Gettext\Translations $translations
array $options

Returns

string

generateHeaders()

generateHeaders(\Gettext\Translations  $translations) : string

Returns the headers as a string.

Parameters

\Gettext\Translations $translations

Returns

string

supportsCsvEscapeChar()

supportsCsvEscapeChar() : boolean

Check whether support the escape_char argument to fgetcsv/fputcsv or not

Returns

boolean

fgetcsv()

fgetcsv(resource  $handle, array  $options) : array

Parameters

resource $handle
array $options

Returns

array

fputcsv()

fputcsv(resource  $handle, array  $fields, array  $options) : boolean|integer

Parameters

resource $handle
array $fields
array $options

Returns

boolean|integer