__construct()
group()
load()
save()
export_format()
find_file()
load_file()
parse_vars()
prep_vars()
$file
$languages
$vars
A base Lang File class for File based configs.
__construct(string $file, array $languages, array $vars)
stringLang file name
arrayLanguages to scan for the lang file
arrayVariables to parse in the file
group() : string
stringload(bool $overwrite) : array
boolWhether to overwrite existing values
arraythe language arraysave(string $identifier, \Fuel\Core\$contents $contents) : bool
stringfilename
\Fuel\Core\$contentslanguage array to save
bool\File::update resultexport_format(array $contents) : string
Gets called when saving a language file.
arraylanguage array to save
stringformatted outputfind_file() : array
\LangException |
|---|
arrayload_file(string $file) : array
Gets called for each file to load.
stringFile to load
arrayparse_vars(string $string) : string
Allows you to use something like %APPPATH% in non-PHP files.
stringString to parse
stringprep_vars(array $array) : array
arrayarray to be prepped
arrayprepped array$file
$languages
$vars