DB config data parser

 Methods

Sets up the file to be parsed and variables

__construct(string $identifier, array $vars) 

Parameters

$identifier

string

Config identifier name

$vars

array

Variables to parse in the data retrieved

Gets the default group name.

group() : string

Returns

string

Loads the config file(s).

load(bool $overwrite, bool $cache) : array

Parameters

$overwrite

bool

Whether to overwrite existing values

$cache

bool

This parameter will ignore in this implement.

Exceptions

\Database_Exception

Returns

arraythe config array

Formats the output and saved it to disc.

save(\Fuel\Core\$contents $contents) : bool

Parameters

$contents

\Fuel\Core\$contents

config array to save

Returns

boolDB result

Parses a string using all of the previously set variables.

parse_vars(string $string) : string

Allows you to use something like %APPPATH% in non-PHP files.

Parameters

$string

string

String to parse

Returns

string

Replaces FuelPHP's path constants to their string counterparts.

prep_vars(array $array) : array

Parameters

$array

array

array to be prepped

Returns

arrayprepped array

 Properties

 

$database

$database 

 

$ext

$ext 

 

$identifier

$identifier 

 

$table

$table 

 

$vars

$vars