Config
class Config
Class Config
Properties
$config | |||
$session |
Methods
No description
No description
put your comment there.
deletes a given var from config db
this will diable the internal config return cache this is usefull if a huge amount of set calls will follow
enable the caching of get config calls this will clear the current cache
No description
Private helper that generates the fdl from a given config array.
No description
Returns the config fdl for a regular config field
Accessor for USER constants.
Returns the config fdl for a dyn config field
No description
Get the config setting for the current user of an explicit level (global, [instance_name] or user) If you need the user config for another user than the current, use function 'get_explicit_for_user' instead
Get the explicit config setting for a specific user
No description
No description
No description
Leaves the install mode by setting install mode property to false.
No description
No description
No description
No description
No description
No description
register a several context->table pairs to be checked hierarchic for matching config settings in the same order as given in array
register a dynamic variable this is required for being able to generate generic form fields ()
No description
No description
reload only the settings different from user tot user
No description
No description
Set flag only for the current request
No description
No description
Details
at line 38
__construct()
No description
at line 535
add_array($configArray, $context = false)
No description
at line 420
clear(mixed $context, mixed $sub_context = false)
put your comment there.
..
at line 1090
mixed
delete_setting(string $var, string $context, string $instance_id = false, string $module_name = false, int $group_id = false)
deletes a given var from config db
at line 167
disable_return_cache()
this will diable the internal config return cache this is usefull if a huge amount of set calls will follow
at line 158
enable_return_cache()
enable the caching of get config calls this will clear the current cache
at line 136
enter_install_mode()
No description
at line 1347
array
extract_config_fdl(mixed $config_vars, mixed $default_value, Core|null $instance = null)
Private helper that generates the fdl from a given config array.
This is used by both the dyn config and the regular config "get fdl" method.
at line 370
mixed
get(string $var, bool|string $context = false, bool $force_refresh = false)
No description
at line 1478
array
get_config_fdl(mixed $variable, mixed $context)
Returns the config fdl for a regular config field
at line 1572
mixed
get_constant(string $constant)
Accessor for USER constants.
Returns a custom (user) defined constant.
at line 1509
array|bool
get_dyn_config_fdl(mixed $variable, mixed $context, mixed $order_set_name = false, mixed $forced_group_id = false)
Returns the config fdl for a dyn config field
at line 1229
get_dyn_value($variable, $order_set_name = false, $current_context = false, $forced_group_id = false)
No description
at line 447
mixed|bool
get_explicit(string $var, string $level, bool $user_level = false, null $isset = null)
Get the config setting for the current user of an explicit level (global, [instance_name] or user) If you need the user config for another user than the current, use function 'get_explicit_for_user' instead
at line 515
mixed
get_explicit_for_user(int $user_id, string $var, string $instance_id = '', null $isset = null)
Get the explicit config setting for a specific user
at line 1070
get_from_session($value)
No description
at line 49
init()
No description
at line 150
bool
is_install_mode()
No description
at line 143
leave_install_mode()
Leaves the install mode by setting install mode property to false.
at line 789
load_config_set()
No description
at line 982
load_domain_settings()
No description
at line 542
load_global_settings()
No description
at line 627
load_group_settings()
No description
at line 718
load_instance_settings()
No description
at line 577
load_user_settings()
No description
at line 1190
register_dyn_config_order(mixed $order_set, $order_set_name = false)
register a several context->table pairs to be checked hierarchic for matching config settings in the same order as given in array
at line 1219
register_dyn_variable(string $variable_name, string $variable_type, mixed $additional = false)
register a dynamic variable this is required for being able to generate generic form fields ()
at line 118
reload_config()
No description
at line 127
reload_config_set()
No description
at line 98
reload_user_specific_settings()
reload only the settings different from user tot user
at line 174
set($var, $value, $context = false, $subcontext = false)
No description
at line 1525
set_dyn_value($variable, $value, $context, $forced_group_id = false)
No description
at line 212
set_for_request($var, $value, $context = false)
Set flag only for the current request
at line 229
mixed
set_instance_setting(string $var, string $value, string $instance, string|bool $module_name = false)
No description
at line 237
set_setting($var, $value, $context, $instance_id = false, $module_name = false, $group_id = false, $merge_mode = 'standard', $merge_order = 0)
No description