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

public get( string $key ) : string|array

Returns a single configuration value by its key if stored as json decode automaticaly

protected isJson( string $string ) : boolean

Helper function to check if string is json formated

protected _getGXModuleJSONConfiguration( $name ) : array|boolean

Get the json configuration from GXModule.json file

protected _getDefaultValueFromJsonFile( $key ) : mixed

Returns the default value of the configuration key

Properties summary

protected $config : array|boolean

Holds the configuration from GXModule.json file