$file->filepath)); backup_migrate_temp_files_add($file->filepath); return $out; } return NULL; } } /** * A destination type for browser download. * * @ingroup backup_migrate_destinations */ class backup_migrate_destination_browser_download extends backup_migrate_destination_browser { var $supported_ops = array('manual backup'); function __construct() { $params = array(); $params['name'] = "Download"; $params['destination_id'] = 'download'; parent::__construct($params); } /** * File save destination callback. */ function save_file($file, $settings) { backup_migrate_include('files'); $file->transfer(); } }