Loader
class Loader extends AbstractOptionable implements LoaderInterface
Properties
static | $defaults | The default options |
Methods
Creation of a Loader with an optional user defined set of options
Add a path to the registry
Parse an option value replacing %s
by the actual language code
Build the file name for the language database
Build the directory name for the language database
Build the absolute file path for the language database
Build the variable name for the language database
Build the file name for the language CSV database
Build the directory name for the language CSV database
Build the file path for the language CSV database
Find (and add if needed) a language file from options directories
Details
at line 76
__construct(
array $user_options = array())
Creation of a Loader with an optional user defined set of options
at line 88
$this
addPath(
null|string $db_filename = null,
null|string $db_directory = null,
null|string $file = null)
Add a path to the registry
at line 111
mixed
getParsedOption(
string $name,
string|array $lang = null,
mixed $default = null)
Parse an option value replacing %s
by the actual language code
at line 140
string
buildLanguageFileName(
string $lang,
string $db_filename = null)
Build the file name for the language database
at line 155
string
buildLanguageDirName(
string $lang)
Build the directory name for the language database
at line 166
string
buildLanguageFilePath(
string $lang)
Build the absolute file path for the language database
at line 177
string
buildLanguageVarname(
string $lang)
Build the variable name for the language database
at line 187
string
buildLanguageDBFileName()
Build the file name for the language CSV database
at line 197
string
buildLanguageDBDirName()
Build the directory name for the language CSV database
at line 207
string
buildLanguageDBFilePath()
Build the file path for the language CSV database
at line 219
null|string
findLanguageDBFile(
string $db_filename = null,
string $db_directory = null)
Find (and add if needed) a language file from options directories