\Gettext\GeneratorsCsvDictionary

Summary

Methods
Properties
Constants
toFile()
toString()
$options
No constants found
No protected methods found
No protected properties found
N/A
toArray()
fromArray()
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

toArray()

toArray(\Gettext\Translations  $translations, boolean  $includeHeaders) : array

Returns a plain dictionary with the format [original => translation].

Parameters

\Gettext\Translations $translations
boolean $includeHeaders

Returns

array

fromArray()

fromArray(array  $messages, \Gettext\Translations  $translations) 

Extract the entries from a dictionary.

Parameters

array $messages
\Gettext\Translations $translations

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