You are here

function drupal_ftp_ftp_object in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/destinations.ftp.inc \drupal_ftp_ftp_object()
  2. 6.3 includes/destinations.ftp.inc \drupal_ftp_ftp_object()
  3. 6.2 includes/destinations.ftp.inc \drupal_ftp_ftp_object()
  4. 7.3 includes/destinations.ftp.inc \drupal_ftp_ftp_object()
  5. 7.2 includes/destinations.ftp.inc \drupal_ftp_ftp_object()

creates a new ftp object. if any elements of ftp_map are missing, they'll be filled with the server defaults.

3 calls to drupal_ftp_ftp_object()
backup_migrate_destination_ftp::ftp_object in includes/destinations.ftp.inc
drupal_ftp_connect in includes/destinations.ftp.inc
The drupal_ftp_connect function This function connects to an FTP server and attempts to change into the directory specified by the fourth parameter, $directory.
drupal_ftp_connected in includes/destinations.ftp.inc
The drupal_ftp_connected function This function queries the FTP server with the ftp_systype command to check if the connection is still alive. It returns TRUE on success or FALSE on disconnection.

File

includes/destinations.ftp.inc, line 113
Functions to handle the FTP backup destination.

Code

function drupal_ftp_ftp_object($server, $port, $user, $pass, $dir, $pasv) {
  $ftp = new stdClass();
  $ftp->__server = $server;
  $ftp->__port = $port;
  $ftp->__user = $user;
  $ftp->__password = $pass;
  $ftp->__directory = $dir;
  $ftp->__pasv = $pasv;
  return $ftp;
}