__construct()
group()
load()
save()
export_format()
find_file()
load_file()
parse_vars()
prep_vars()
$file
$vars
A base Config File class for File based configs.
__construct(string $file, array $vars)
string
Config file name
array
Variables to parse in the file
group() : string
string
load(bool $overwrite, bool $cache) : array
bool
Whether to overwrite existing values
bool
Whether to cache this path or not
array
the config arraysave(array $contents) : bool
array
config array to save
bool
\File::update resultexport_format(array $contents) : string
Gets called when saving a config file.
array
config array to save
string
formatted outputfind_file(bool $cache) : array
bool
Whether to cache this path or not
\ConfigException |
---|
array
load_file(string $file)
Gets called for each file to load.
string
the path to the file
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
$vars