class Config

Methods

static mixed
get(string $base_path, string $key = "", mixed $default = null)

Get a config value.

static mixed
exists(string $base_path, string $key = "")

Check if the config and/or key you are looking for exists

Details

at line 15
static mixed get(string $base_path, string $key = "", mixed $default = null)

Get a config value.

Parameters

string $base_path

Absolute path to config file

string $key

The variable name

mixed $default

Default value if $key not found

Return Value

mixed

The variable value

at line 32
static mixed exists(string $base_path, string $key = "")

Check if the config and/or key you are looking for exists

If returns "CONFIG_CLASS_KEY_CHECK_CONST" then config does not exists

Parameters

string $base_path

The base path to config file

string $key

The key of the searched value

Return Value

mixed

Searched value or $default