You are here

function backup_migrate_destination_remote::set_url in Backup and Migrate 7.2

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_destination_remote::set_url()
  2. 6.2 includes/destinations.inc \backup_migrate_destination_remote::set_url()

Break a URL into it's component parts.

1 call to backup_migrate_destination_remote::set_url()
backup_migrate_destination_remote::set_location in includes/destinations.inc
Return the location with the password.

File

includes/destinations.inc, line 1101

Class

backup_migrate_destination_remote
A base class for creating destinations.

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;
}