Class GXModuleConfigurationStorage
subclass of ConfigurationStorage for parameters concerning GXModules
-
ConfigurationStorage
-
GXModuleConfigurationStorage
Methods summary
public
|
#
__construct( string $module )
constructor; initializes namespace for GXModule configuration
with correct namespace
constructor; initializes namespace for GXModule configuration
with correct namespace
Parameters
- $module
- VendorModulename directory of GXModule
|
public
string|array
|
#
get( string $key )
Returns a single configuration value by its key
if stored as json decode automaticaly
Returns a single configuration value by its key
if stored as json decode automaticaly
Parameters
- $key
- a configuration key (relative to the namespace prefix)
Returns
string|array configuration value
|
protected
boolean
|
#
isJson( string $string )
Helper function to check if string is json formated
Helper function to check if string is json formated
Parameters
Returns
boolean
|
protected
array|boolean
|
#
_getGXModuleJSONConfiguration( $name )
Get the json configuration from GXModule.json file
Get the json configuration from GXModule.json file
Parameters
Returns
array|boolean
|
protected
mixed
|
#
_getDefaultValueFromJsonFile( $key )
Returns the default value of the configuration key
Returns the default value of the configuration key
Parameters
Returns
mixed
|
Properties summary
protected
array|boolean
|
$config
Holds the configuration from GXModule.json file
Holds the configuration from GXModule.json file
|
|