function backup_migrate_filter_backup_restore::_get_destination_types in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.2 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::_get_destination_types()
- 8.3 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::_get_destination_types()
- 6.2 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::_get_destination_types()
- 7.3 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::_get_destination_types()
- 7.2 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::_get_destination_types()
Get a list of dummy destinations representing each of the available destination types.
6 calls to backup_migrate_filter_backup_restore::_get_destination_types()
- backup_migrate_filter_backup_restore::backup_settings_form_submit in includes/
filters.backup_restore.inc - Submit the settings form. Any values returned will be saved.
- backup_migrate_filter_backup_restore::backup_settings_form_validate in includes/
filters.backup_restore.inc - Get the form for the settings for this filter.
- backup_migrate_filter_backup_restore::destinations in includes/
filters.backup_restore.inc - Get the default destinations for this filter.
- backup_migrate_filter_backup_restore::file_types in includes/
filters.backup_restore.inc - Get the file types supported by this destination.
- backup_migrate_filter_backup_restore::restore_settings_default in includes/
filters.backup_restore.inc - Get the default restore settings for this filter.
File
- includes/
filters.backup_restore.inc, line 210 - This filter performs tha actual backup or restore operation. Not technically a filter per-se, but it does need to fit in the call chain.
Class
- backup_migrate_filter_backup_restore
- A filter backup or migrate the specified source.
Code
function _get_destination_types() {
backup_migrate_include('destinations');
static $destinations = NULL;
if (!is_array($destinations)) {
$destinations = array();
$types = backup_migrate_get_destination_subtypes();
// If no (valid) node type has been provided, display a node type overview.
foreach ($types as $key => $type) {
// Include the necessary file if specified by the type.
if (!empty($type['file'])) {
require_once './' . $type['file'];
}
$destinations[] = new $type['class'](array());
}
}
return $destinations;
}