CRM_Core_Config_MagicMerge
class CRM_Core_Config_MagicMerge
Class CRM_Core_Config_MagicMerge
Originally, the $config object was based on a single, serialized data object stored in the database. As the needs for settings grew (with robust metadata, system overrides, extension support, and multi-tenancy), the $config started to store a mix of: (a) canonical config options, (b) dynamically generated runtime data, (c) cached data derived from other sources (esp civicrm_setting) (d) instances of service objects
The config object is now deprecated. Settings and service objects should generally be accessed via Civi::settings() and Civi::service().
MagicMerge provides backward compatibility. You may still access old properties via $config, but they will be loaded from their new services.
Methods
CRM_Core_Config_MagicMerge constructor.
Set the map to the property map.
Get a list of $config properties and the entities to which they map.
Get value.
Set value.
Is value set.
Unset value.
No description
Details
at line 65
__construct()
CRM_Core_Config_MagicMerge constructor.
at line 72
__wakeup()
Set the map to the property map.
at line 87
static array
getPropertyMap()
Get a list of $config properties and the entities to which they map.
This is used for two purposes:
- Runtime: Provide backward-compatible interface for reading these properties.
- Upgrade: Migrate old properties of config_backend into settings.
at line 234
mixed
__get(string $k)
Get value.
at line 323
__set(string $k, mixed $v)
Set value.
at line 360
bool
__isset(string $k)
Is value set.
at line 371
__unset(string $k)
Unset value.