Constants

RUNTIME_SESSION_CONTAINER_KEY

RUNTIME_SESSION_CONTAINER_KEY

Properties

$

$ : mixed

web

Type

mixed

$

$ : mixed

web_frontend

Type

mixed

$

$ : mixed

web_frontend_routing

Type

mixed

$

$ : mixed

error

Type

mixed

$

$ : mixed

logger

Type

mixed

$

$ : mixed

application

Type

mixed

$

$ : mixed

application_frontend

Type

mixed

$

$ : mixed

auth

Type

mixed

$

$ : mixed

action

Type

mixed

$

$ : mixed

hosts

Type

mixed

$

$ : mixed

db

Type

mixed

$

$ : mixed

system_db

Type

mixed

$_properties

$_properties : \stdClass

Propertys of config

Type

\stdClass

$_configModTimes

$_configModTimes : string

Type

string

$_crc32Version

$_crc32Version : 

Type

$_cacheType

$_cacheType : integer

Type

integer

$_runtimeSessionData

$_runtimeSessionData : \stdClass

Type

\stdClass

Methods

__construct()

__construct() 

Constructor

load()

load() 

Load config from .

.. or cache

Throws

\Fuman_Exception

init()

init() : void

Init

Throws

\Fuman_Exception
\Exception

getVersion()

getVersion() : string

Gets current version Multiple entries of application.version in config are separated by /

Returns

string

getCrc32Version()

getCrc32Version() : string

Gets the version as crc32

Returns

string

getConfigModTimes()

getConfigModTimes() : string

Gets an array of mod times for the loaded config files

Returns

string

getDbNames()

getDbNames() : array

Gets the defined db names from config (db_.

..)

Returns

array

getApplication()

getApplication() : \Fuman_Application_Abstract|null

Gets application application.classname

Returns

\Fuman_Application_Abstract|null

__get()

__get(string  $key) : mixed

Returns a Value for a key

Parameters

string $key

Throws

\Fuman_Exception

When no value is set for key

Returns

mixed —

@ishacky

__isset()

__isset(string  $key) : boolean

Returns true when value with $key is set.

Parameters

string $key

Returns

boolean

keys()

keys() : array<mixed,string>

Returns a list of all top-level config keys

Returns

array<mixed,string>

isInstalled()

isInstalled() : boolean

Returns true when fuman was installed by checking config->system->install_hash.

If the value does exist and equal to FUMAN_ROOT_PATH, fuman is installed.

Returns

boolean

includeArray()

includeArray(array  $configArray) 

Parameters

array $configArray

setConfigData()

setConfigData(\stdClass  $configDataContainer) 

Parameters

\stdClass $configDataContainer

getConfigDataContainer()

getConfigDataContainer() : object

Returns

object

getCacheType()

getCacheType(  $real = false) : integer

Gets cache type session (none, session, runtime)

Parameters

$real

Returns

integer

explode()

explode(string  $value) : array

Explodes a string by comma and filters empty values

Parameters

string $value

Returns

array

toConfigString()

toConfigString(\stdClass  $data, boolean  $addPhpExit = true) : string

Returns a ini string

Parameters

\stdClass $data
boolean $addPhpExit

Returns

string

_getRuntimeSessionData()

_getRuntimeSessionData() : object|\stdClass

Returns

object|\stdClass

_handleCache()

_handleCache() 

Update and Write Cache-Type to Session

_prepareConfigValue()

_prepareConfigValue(string|integer  $value) : string

Prepares config value

Parameters

string|integer $value

Throws

\Fuman_Exception

Returns

string

_mergeConfig()

_mergeConfig(array  $data, \stdClass|null  $parent = null, boolean  $recursive = true) : \stdClass

To object with parent Converts config (array) into an object based on stdClass

Parameters

array $data
\stdClass|null $parent
boolean $recursive

Returns

\stdClass