StructuredBundleReaderInterface
interface StructuredBundleReaderInterface implements BundleReaderInterface
Reads individual entries of a resource file.
Methods
string[]
getLocales(string $path)
Reads the available locales of a resource bundle.
mixed
readEntry(string $path, string $locale, array $indices, Boolean $fallback = true)
Reads an entry from a resource bundle.
Details
in BundleReaderInterface at line line 30
mixed
read(string $path, string $locale)
Reads a resource bundle.
in BundleReaderInterface at line line 39
string[]
getLocales(string $path)
Reads the available locales of a resource bundle.
at line line 49
mixed
readEntry(string $path, string $locale, array $indices, Boolean $fallback = true)
Reads an entry from a resource bundle.
An entry can be selected from the resource bundle by passing the path to that entry in the bundle. For example, if the bundle is structured like this:
TopLevel
NestedLevel
Entry: Value
Then the value can be read by calling:
$reader->readEntry('...', 'en', array('TopLevel', 'NestedLevel', 'Entry'));