\Fuman_Config_Loader_Abstract

Abstract Config Loader

Summary

Methods
Properties
Constants
__construct()
loadConfig()
getCacheKey()
loadConfigFromCache()
getNextLoaderClassName()
No public properties found
No constants found
_getConfigContainerFromCache()
_writeCache()
_writeRuntimeCache()
_loadConfig()
_loadFile()
_getConfigCacheTypeOrDefault()
_setDataPath()
$_config
$_configGroups
$_groupedConfigs
N/A
No private methods found
No private properties found
N/A

Properties

$_configGroups

$_configGroups : null|array

Type

null|array

$_groupedConfigs

$_groupedConfigs : array

Type

array

Methods

__construct()

__construct(\Fuman_Config  $config) 

Parameters

\Fuman_Config $config

loadConfig()

loadConfig() : void

getCacheKey()

getCacheKey() : string

Returns the cache key

Returns

string

loadConfigFromCache()

loadConfigFromCache() : boolean

Returns

boolean

getNextLoaderClassName()

getNextLoaderClassName() : null|string

Returns

null|string

_getConfigContainerFromCache()

_getConfigContainerFromCache() : array|null|object

Returns

array|null|object

_writeCache()

_writeCache() 

Throws

\Fuman_Exception

_writeRuntimeCache()

_writeRuntimeCache() 

Throws

\Exception

_loadConfig()

_loadConfig(string  $path, boolean  $setDataPath = false) 

Parameters

string $path
boolean $setDataPath

_loadFile()

_loadFile(string  $path) 

Parameters

string $path

_getConfigCacheTypeOrDefault()

_getConfigCacheTypeOrDefault() : integer

Returns

integer

_setDataPath()

_setDataPath(string  $dataPath) 

Sets data_path Constant FUMAN_DATA_PATH will always point to the current data dir (data_xxx).

FUMAN_MAIN_DATA_PATH always points to the original data dir.

Parameters

string $dataPath

Throws

\Fuman_Exception