__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)
string
Lang file name
array
Languages to scan for the lang file
array
Variables to parse in the file
group() : string
string
load(bool $overwrite) : array
bool
Whether to overwrite existing values
array
the language arraysave(string $identifier, \Fuel\Core\$contents $contents) : bool
string
filename
\Fuel\Core\$contents
language array to save
bool
\File::update resultexport_format(array $contents) : string
Gets called when saving a language file.
array
language array to save
string
formatted outputfind_file() : array
\LangException |
---|
array
load_file(string $file) : array
Gets called for each file to load.
string
File to load
array
parse_vars(string $string) : string
Allows you to use something like %APPPATH% in non-PHP files.
string
String to parse
string
prep_vars(array $array) : array
array
array to be prepped
array
prepped array$file
$languages
$vars