function backup_migrate_destination_ftp::ftp_object in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::ftp_object()
- 8.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::ftp_object()
- 6.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::ftp_object()
- 7.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::ftp_object()
- 7.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::ftp_object()
4 calls to backup_migrate_destination_ftp::ftp_object()
- backup_migrate_destination_ftp::load_file in includes/
destinations.ftp.inc - Load from the ftp destination.
- backup_migrate_destination_ftp::_delete_file in includes/
destinations.ftp.inc - Delete from the ftp destination.
- backup_migrate_destination_ftp::_list_files in includes/
destinations.ftp.inc - List all the available files in the given destination with their destination specific id.
- backup_migrate_destination_ftp::_save_file in includes/
destinations.ftp.inc - Save to the ftp destination.
File
- includes/
destinations.ftp.inc, line 91 - Functions to handle the FTP backup destination.
Class
- backup_migrate_destination_ftp
- A destination for sending database backups to an FTP server.
Code
function ftp_object() {
if (!$this->ftp) {
$this->dest_url['port'] = empty($this->dest_url['port']) ? '21' : $this->dest_url['port'];
$this->dest_url['pasv'] = $this
->get_pasv();
$this->ftp = drupal_ftp_ftp_object($this->dest_url['host'], $this->dest_url['port'], $this->dest_url['user'], $this->dest_url['pass'], $this->dest_url['path'], $this->dest_url['pasv']);
}
return $this->ftp;
}