\Gettext\UtilsMultidimensionalArrayTrait

Trait used by all generators that exports the translations to multidimensional arrays (context => [original => [translation, plural1, pluraln.

..]]).

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
toArray()
fromArray()
No private properties found
N/A

Methods

toArray()

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

Returns a multidimensional array.

Parameters

\Gettext\Translations $translations
boolean $includeHeaders
boolean $forceArray

Returns

array

fromArray()

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

Extract the entries from a multidimensional array.

Parameters

array $messages
\Gettext\Translations $translations