PHP array loader.

package Default
inherited_from \Zend\I18n\Translator\Loader\AbstractFileLoader

 Methods

load(): defined by FileLoaderInterface.

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

Parameters

$locale

string

$filename

string

Exceptions

\Zend\I18n\Exception\InvalidArgumentException

Returns

\Zend\I18n\Translator\TextDomainnull

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

setUseIncludePath(boolean $flag = true) : \Zend\I18n\Translator\Loader\PhpArray
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$flag

boolean

Returns

\Zend\I18n\Translator\Loader\PhpArray

Are we using the include_path to resolve translation files?

useIncludePath() : boolean
Inherited

Returns

boolean

Resolve a translation file

resolveFile(string $filename) : string | false
Inherited

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
Inherited

Parameters

$filename

string

Returns

stringfalse

 Properties

 

Whether or not to consult the include_path when locating files

$useIncludePath : boolean

Default

false