abstract class SourceBase in Backup and Migrate 8.4
Class SourceBase.
@package BackupMigrate\Core\Source
Hierarchy
- class \BackupMigrate\Core\Plugin\PluginBase implements ConfigurableInterface, PluginInterface uses ConfigurableTrait
- class \BackupMigrate\Core\Source\SourceBase implements FileProcessorInterface, SourceInterface uses FileProcessorTrait
Expanded class hierarchy of SourceBase
File
- lib/
backup_migrate_core/ src/ Source/ SourceBase.php, line 14
Namespace
BackupMigrate\Core\SourceView source
abstract class SourceBase extends PluginBase implements SourceInterface, FileProcessorInterface {
use FileProcessorTrait;
/**
* {@inheritdoc}
*/
public function supportedOps() {
return [
'exportToFile' => [],
'importFromFile' => [],
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableTrait:: |
protected | property | The object's configuration object. | |
ConfigurableTrait:: |
protected | property | The initial configuration. These configuration options can be overriden by the config options but will not be overwritten. If the object is re-configured after construction any missing configuration options will revert to these values. | |
ConfigurableTrait:: |
public | function | Get a specific value from the configuration. | |
ConfigurableTrait:: |
public | function | Get the configuration object for this item. | |
ConfigurableTrait:: |
public | function | Get the default values for the plugin. | 10 |
ConfigurableTrait:: |
public | function | Get any validation errors in the config. | |
ConfigurableTrait:: |
public | function | Get a default (blank) schema. | 10 |
ConfigurableTrait:: |
public | function | Set the configuration for all plugins. | 1 |
ConfigurableTrait:: |
public | function | 2 | |
FileProcessorTrait:: |
protected | property | ||
FileProcessorTrait:: |
public | function | Provide the file mime for the given file extension if known. | |
FileProcessorTrait:: |
public | function | Get the temp file manager. | |
FileProcessorTrait:: |
public | function | Inject the temp file manager. | |
PluginBase:: |
public | function |
What is the weight of the given operation for this plugin. Overrides PluginInterface:: |
|
PluginBase:: |
public | function |
Does this plugin implement the given operation. Overrides PluginInterface:: |
|
SourceBase:: |
public | function |
Get a list of supported operations and their weight. Overrides PluginBase:: |
|
SourceInterface:: |
public | function | Export this source to the given temp file. This should be the main back up function for this source. | 2 |
SourceInterface:: |
public | function | Import to this source from the given backup file. This is the main restore function for this source. | 2 |
TranslatableTrait:: |
protected | property | ||
TranslatableTrait:: |
public | function | ||
TranslatableTrait:: |
public | function | Translate the given string if there is a translator service available. |