Abstract file loader implementation; provides facilities around resolving files via the include_path.

 Methods

Load translations from a file.

load(string $locale, string $filename) : \Zend\I18n\Translator\TextDomain | null
Inherited

inherited_from \Zend\I18n\Translator\Loader\FileLoaderInterface::load()

Parameters

$locale

string

$filename

string

Returns

Indicate whether or not to use the include_path to resolve translation files

setUseIncludePath(bool $flag) : \Zend\I18n\Translator\Loader\self

Parameters

$flag

bool

Returns

\Zend\I18n\Translator\Loader\self

Are we using the include_path to resolve translation files?

useIncludePath() : bool

Returns

bool

Resolve a translation file

resolveFile(string $filename) : string | false

Checks if the file exists and is readable, returning a boolean false if not; if the "useIncludePath" flag is enabled, it will attempt to resolve the file from the include_path if the file does not exist on the current working path.

Parameters

$filename

string

Returns

stringfalse

Resolve a translation file via the include_path

resolveViaIncludePath(string $filename) : string | false

Parameters

$filename

string

Returns

stringfalse

 Properties

 

Whether or not to consult the include_path when locating files

$useIncludePath : bool