You are here

function backup_migrate_location::set_url in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/locations.inc \backup_migrate_location::set_url()
  2. 7.3 includes/locations.inc \backup_migrate_location::set_url()

Break a URL into it's component parts.

2 calls to backup_migrate_location::set_url()
backup_migrate_destination_remote::set_location in includes/destinations.inc
Return the location with the password.
backup_migrate_source_remote::set_location in includes/sources.inc
Return the location with the password.
1 method overrides backup_migrate_location::set_url()
backup_migrate_location_remote::set_url in includes/locations.inc
Break a URL into it's component parts.

File

includes/locations.inc, line 401

Class

backup_migrate_location
A base class for creating locations.

Code

function set_url($url) {
  $parts = (array) parse_url($url);
  $parts['user'] = urldecode(@$parts['user']);
  $parts['pass'] = urldecode(@$parts['pass']);
  $parts['path'] = urldecode(@$parts['path']);
  $parts['path'] = ltrim(@$parts['path'], "/");
  $this->dest_url = $parts;
}