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 39
__construct()
No description
at line 549
add_array($configArray, $context = false)
No description
at line 434
clear(mixed $context, mixed $sub_context = false)
put your comment there.
..
at line 1089
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 168
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 159
enable_return_cache()
enable the caching of get config calls this will clear the current cache
at line 137
enter_install_mode()
No description
at line 1352
array
extract_config_fdl(array $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 377
mixed
get(string $var, bool|string $context = false, bool $force_refresh = false)
No description
at line 1505
array
get_config_fdl(mixed $variable, mixed $context)
Returns the config fdl for a regular config field
at line 1605
mixed
get_constant(string $constant)
Accessor for USER constants.
Returns a custom (user) defined constant.
at line 1538
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 1234
get_dyn_value($variable, $order_set_name = false, $current_context = false, $forced_group_id = false)
No description
at line 461
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 529
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 1069
get_from_session($value)
No description
at line 50
init()
No description
at line 151
bool
is_install_mode()
No description
at line 144
leave_install_mode()
Leaves the install mode by setting install mode property to false.
at line 803
load_config_set()
No description
at line 992
load_domain_settings()
No description
at line 556
load_global_settings()
No description
at line 641
load_group_settings()
No description
at line 732
load_instance_settings()
No description
at line 591
load_user_settings()
No description
at line 1195
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 1224
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 119
reload_config()
No description
at line 128
reload_config_set()
No description
at line 99
reload_user_specific_settings()
reload only the settings different from user tot user
at line 175
set($var, $value, $context = false, $subcontext = false)
No description
at line 1558
set_dyn_value($variable, $value, $context, $forced_group_id = false)
No description
at line 213
set_for_request($var, $value, $context = false)
Set flag only for the current request
at line 230
mixed
set_instance_setting(string $var, string $value, string $instance, string|bool $module_name = false)
No description
at line 238
set_setting($var, $value, $context, $instance_id = false, $module_name = false, $group_id = false, $merge_mode = 'standard', $merge_order = 0)
No description