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 boolean | exists(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|array | get(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 array | getMultipleSections(array $sections) Returns multiple sections $SystemDB
|
public string | preventFaultyAliasName(string $section, string $key, string $value) Prevents a key name collision in another section $SystemDB
|
public boolean | set(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 string | loadConfigFile(string $component_name, string $item, string $item_name, string $instance_name) Load config file for components
|
public static string | encodeArray(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 array | decodeArray(string $str) Decodes a base-64, JSON-encoded array Deprecatedsince version 2.1.9-2
since version 2.1.9-2
|