__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)
stringConfig file name
arrayVariables to parse in the file
group() : string
stringload(bool $overwrite, bool $cache) : array
boolWhether to overwrite existing values
boolWhether to cache this path or not
arraythe config arraysave(array $contents) : bool
arrayconfig array to save
bool\File::update resultexport_format(array $contents) : string
Gets called when saving a config file.
arrayconfig array to save
stringformatted outputfind_file(bool $cache) : array
boolWhether to cache this path or not
\ConfigException |
|---|
arrayload_file(string $file)
Gets called for each file to load.
stringthe path to the file
parse_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
$vars