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

driver initialisation

_init() 

Exceptions

\FuelException

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.

Returns

arraythe config array

Formats the output and saved it to disc.

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

Parameters

$contents

\Fuel\Core\$contents

config array to save

Exceptions

\FuelException

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

 

<p>of driver config defaults</p>

$config : array

 

$ext

$ext 

 

$identifier

$identifier 

 

<p>storage for the memcached object</p>

$memcached : \Memcached

 

$vars

$vars