SCHLIX\cmsConfigRegistry

Protected Attributes

protected $table_name 
protected $config_document 

Public Methods

public __construct(string $table_name)
Please specify an existing table name where the config is stored
public booleanexists(string $section, string $key)
Check if a config key exists or not SCHLIX $SystemDB
public clearCache(string $section, string $key='')
Clear context cache
public boolean|int|double|float|string|arrayget(string $section, string $key='', boolean $use_cached_result=false)
Get configuration content by key $SystemDB
public deleteSection(string $section)
Delete all keys within this section
public arraygetMultipleSections(array $sections)
Returns multiple sections $SystemDB
public stringpreventFaultyAliasName(string $section, string $key, string $value)
Prevents a key name collision in another section $SystemDB
public booleanset(string $section, string $key, string $value)
Set a config key. The key must have prefix 'array_','int_','string_', 'str_','bool_','double_','float_'. Otherwise it won't be set $SystemDB

Public Static Methods

public static stringloadConfigFile(string $component_name, string $item, string $item_name, string $instance_name)
Load config file for components
public static stringencodeArray(array $array)
Encodes an array and return it as a string Deprecatedsince version 2.1.9-2 since version 2.1.9-2
public static arraydecodeArray(string $str)
Decodes a base-64, JSON-encoded array Deprecatedsince version 2.1.9-2 since version 2.1.9-2