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

package Default

 Methods

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

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

Parameters

$flag

boolean

Returns

\Zend\I18n\Translator\Loader\AbstractFileLoader

Are we using the include_path to resolve translation files?

useIncludePath() : boolean

Returns

boolean

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 : boolean

Default

false