public/wordpress/wp-content/plugins/backupbuddy/destinations/s33/init.php
/* download_file()
	 *
	 * Download remote file to local system.
	 *
	 * @param	array 		$settings				Destination settings.
	 * @param	string		$remoteFile				Remote filename.
	 * @param	string		$localDestinationFile	Full path & filename of destination file.
	 *
	 */
download_file()
Download remote file to local system.

@param       array           $settings                               Destination settings.
@param       string          $remoteFile                             Remote filename.
@param       string          $localDestinationFile   Full path & filename of destination file.
download_file () Download remote file to local system . @param array $settings Destination settings . @param string $remoteFile Remote filename . @param string $localDestinationFile Full path & filename of destination file .
public static function download_file( $settings, $remoteFile, $localDestinationFile ) {
		$settings = self::_init( $settings );
		pb_backupbuddy::status( 'details', 'Downloading remote file `' . $remoteFile . '` from S3 to local file `' . $localDestinationFile . '`.' );
		try {
			$response = self::$_client->getObject( array(
				'Bucket' => $settings['bucket'],
				'Key' => $settings['directory'] . $remoteFile,
				'SaveAs' => $localDestinationFile
			) );
		} Catch( Exception $e ) {
			return self::_error( 'Error #382938: Unable to retrieve file. Details: `' . $e->getMessage() . '`.' );
		}
		return true;
	}
public static function download_file ( $ settings , $ remoteFile , $ localDestinationFile ) { $ settings = self :: _init ( $ settings ) ; pb_backupbuddy :: status ( 'details' , 'Downloading remote file `' . $ remoteFile . '` from S3 to local file `' . $ localDestinationFile . '`.' ) ; try { $ response = self :: $ _client -> getObject ( array ( 'Bucket' => $ settings [ 'bucket' ] , 'Key' => $ settings [ 'directory' ] . $ remoteFile , 'SaveAs' => $ localDestinationFile ) ) ; } Catch ( Exception $ e ) { return self :: _error ( 'Error #382938: Unable to retrieve file. Details: `' . $ e -> getMessage ( ) . '`.' ) ; } return true ; }
download_file()
 Download remote file to local system.
download_file () Download remote file to local system .