interface ConfigInterface in Backup and Migrate 8.4
Provides an interface defining a backup source.
Hierarchy
- interface \BackupMigrate\Core\Config\ConfigInterface
Expanded class hierarchy of ConfigInterface
All classes that implement ConfigInterface
7 files declare their use of ConfigInterface
- BackupMigrate.php in lib/
backup_migrate_core/ src/ Main/ BackupMigrate.php - Config.php in lib/
backup_migrate_core/ src/ Config/ Config.php - ConfigurableInterface.php in lib/
backup_migrate_core/ src/ Config/ ConfigurableInterface.php - DrupalConfigHelper.php in src/
Config/ DrupalConfigHelper.php - DrupalSiteArchiveSource.php in src/
Source/ DrupalSiteArchiveSource.php
File
- lib/
backup_migrate_core/ src/ Config/ ConfigInterface.php, line 8
Namespace
BackupMigrate\Core\ConfigView source
interface ConfigInterface {
/**
* Get a setting value.
*
* @param string $key The key for the setting.
* @param null $default The default to return if there is no value set for this key.
*
* @return mixed The value of the setting.
*/
public function get($key, $default = NULL);
/**
* Set a setting value.
*
* @param string $key The key for the setting.
* @param mixed $value The value for the setting.
*/
public function set($key, $value);
/**
* Determine if the given key has had a value set for it.
*
* @param $key
*
* @return bool
*/
public function keyIsSet($key);
/**
* Get all settings as an associative array.
*
* @return array All of the settings in this profile
*/
public function toArray();
/**
* Set all from an array.
*
* @param array $values An associative array of settings.
*/
public function fromArray($values);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigInterface:: |
public | function | Set all from an array. | 1 |
ConfigInterface:: |
public | function | Get a setting value. | 1 |
ConfigInterface:: |
public | function | Determine if the given key has had a value set for it. | 1 |
ConfigInterface:: |
public | function | Set a setting value. | 1 |
ConfigInterface:: |
public | function | Get all settings as an associative array. | 1 |