Documentation

Conf

Interfaces, Classes and Traits

Conf
Config data

Table of Contents

expandString()  : mixed
Method expands string
getConfigValue()  : mixed
Function returns specified config key If the key does not exists then $defaultValue will be returned
setConfigValue()  : mixed
Function sets specified config key with value $value
addConfigValue()  : mixed
Function adds specified value $value into array with path $route in the config
configKeyExists()  : bool
Validating key existance
deleteConfigValue()  : bool
Deleting config value
addConnectionToConfig()  : mixed
Method sets connection details to config

Functions

expandString()

Method expands string

expandString(string $value) : mixed
Parameters
$value : string

value to be expanded;

getConfigValue()

Function returns specified config key If the key does not exists then $defaultValue will be returned

getConfigValue(string $route[, mixed $defaultValue = false ]) : mixed
Parameters
$route : string

Key route in config

$defaultValue : mixed = false

Default value if the key was not found

setConfigValue()

Function sets specified config key with value $value

setConfigValue(array<string|int, mixed> $route, mixed $value) : mixed
Parameters
$route : array<string|int, mixed>

Route to key

$value : mixed

Value to be set

addConfigValue()

Function adds specified value $value into array with path $route in the config

addConfigValue(string $route, mixed $value) : mixed
Parameters
$route : string

Route to key

$value : mixed

Value to be set

configKeyExists()

Validating key existance

configKeyExists(mixed $route) : bool
Parameters
$route : mixed

Route to key

deleteConfigValue()

Deleting config value

deleteConfigValue(mixed $route) : bool
Parameters
$route : mixed

Route to key

addConnectionToConfig()

Method sets connection details to config

addConnectionToConfig(string $name, string $dSN, string $user, string $password) : mixed
Parameters
$name : string

Config key

$dSN : string

DSN

$user : string

DB User login

$password : string

DB User password

Search results

    Яндекс.Метрика