interface LoaderInterface

Methods

array
getOption( string $name, mixed $default = null)

Get the value of a specific option

string
buildLanguageFileName( string $lang, string $db_filename = null)

Build the file name for the language database

string
buildLanguageDirName( string $lang)

Build the directory name for the language database

string
buildLanguageFilePath( string $lang)

Build the absolute file path for the language database

string
buildLanguageVarname( string $lang)

Build the variable name for the language database

string
buildLanguageDBFileName()

Build the file name for the language CSV database

string
buildLanguageDBDirName()

Build the directory name for the language CSV database

string
buildLanguageDBFilePath()

Build the absolute file path for the language CSV database

null|string
findLanguageDBFile( string $db_filename = null, string $db_directory = null)

Find a language file from options directories

Details

at line 38
array getOption( string $name, mixed $default = null)

Get the value of a specific option

Parameters

string $name The index of the option to get
mixed $default The default value to return if the option is not defined

Return Value

array The current option's value if defined, $default otherwise

at line 47
string buildLanguageFileName( string $lang, string $db_filename = null)

Build the file name for the language database

Parameters

string $lang The language code to use
string $db_filename A base filename to use

Return Value

string The file name for the concerned language

at line 55
string buildLanguageDirName( string $lang)

Build the directory name for the language database

Parameters

string $lang The language code to use

Return Value

string The directory name for the concerned language with trailing slash

at line 63
string buildLanguageFilePath( string $lang)

Build the absolute file path for the language database

Parameters

string $lang The language code to use

Return Value

string The file path for the concerned language

at line 71
string buildLanguageVarname( string $lang)

Build the variable name for the language database

Parameters

string $lang The language code to use

Return Value

string The variable name for the concerned language

at line 78
string buildLanguageDBFileName()

Build the file name for the language CSV database

Return Value

string

at line 85
string buildLanguageDBDirName()

Build the directory name for the language CSV database

Return Value

string

at line 92
string buildLanguageDBFilePath()

Build the absolute file path for the language CSV database

Return Value

string

at line 101
null|string findLanguageDBFile( string $db_filename = null, string $db_directory = null)

Find a language file from options directories

Parameters

string $db_filename
string $db_directory

Return Value

null|string