You are here

function backup_migrate_destination_s3::get_bucket in Backup and Migrate 7.2

Same name and namespace in other branches
  1. 8.2 includes/destinations.s3.inc \backup_migrate_destination_s3::get_bucket()
  2. 8.3 includes/destinations.s3.inc \backup_migrate_destination_s3::get_bucket()
  3. 6.3 includes/destinations.s3.inc \backup_migrate_destination_s3::get_bucket()
  4. 6.2 includes/destinations.s3.inc \backup_migrate_destination_s3::get_bucket()
  5. 7.3 includes/destinations.s3.inc \backup_migrate_destination_s3::get_bucket()

Get the bucket which is the first part of the path.

5 calls to backup_migrate_destination_s3::get_bucket()
backup_migrate_destination_s3::edit_form in includes/destinations.s3.inc
Get the form for the settings for this filter.
backup_migrate_destination_s3::load_file in includes/destinations.s3.inc
Load from the s3 destination.
backup_migrate_destination_s3::_delete_file in includes/destinations.s3.inc
Delete from the s3 destination.
backup_migrate_destination_s3::_list_files in includes/destinations.s3.inc
List all files from the s3 destination.
backup_migrate_destination_s3::_save_file in includes/destinations.s3.inc
Save to to the s3 destination.

File

includes/destinations.s3.inc, line 142
Functions to handle the s3 backup destination.

Class

backup_migrate_destination_s3
A destination for sending database backups to an s3 server.

Code

function get_bucket() {
  $parts = explode('/', @$this->dest_url['path']);
  return $parts[0];
}