| 1 |
<?php |
<?php |
| 2 |
// $Id: destinations.inc,v 1.1.2.1.2.15 2009/03/11 23:55:14 ronan Exp $ |
// $Id: destinations.inc,v 1.1.2.1.2.16 2009/04/05 03:04:08 ronan Exp $ |
| 3 |
|
|
| 4 |
|
|
| 5 |
/** |
/** |
| 51 |
), |
), |
| 52 |
'db' => array( |
'db' => array( |
| 53 |
'type_name' => t('Database'), |
'type_name' => t('Database'), |
| 54 |
'description' => t('Import the dump directly into another MySQL database.'), |
'description' => t('Import the backup directly into another MySQL database. Database destinations can also be used as a source to backup from.'), |
| 55 |
'file' => drupal_get_path('module', 'backup_migrate') .'/includes/destinations.db.inc', |
'file' => drupal_get_path('module', 'backup_migrate') .'/includes/destinations.db.inc', |
| 56 |
'class' => 'backup_migrate_destination_db', |
'class' => 'backup_migrate_destination_db', |
| 57 |
'can_create' => TRUE, |
'can_create' => TRUE, |
| 304 |
$headers = array( |
$headers = array( |
| 305 |
array('data' => 'Filename', 'field' => 'filename'), |
array('data' => 'Filename', 'field' => 'filename'), |
| 306 |
array('data' => 'Date', 'field' => 'filetime'), |
array('data' => 'Date', 'field' => 'filetime'), |
| 307 |
|
array('data' => 'Age', 'field' => 'filetime'), |
| 308 |
array('data' => 'Size', 'field' => 'filesize'), |
array('data' => 'Size', 'field' => 'filesize'), |
| 309 |
t('Operations'), |
t('Operations'), |
| 310 |
); |
); |
| 324 |
$out[] = array( |
$out[] = array( |
| 325 |
check_plain($info['filename']), |
check_plain($info['filename']), |
| 326 |
format_date($info['filetime'], 'small'), |
format_date($info['filetime'], 'small'), |
| 327 |
|
format_interval(time() - $info['filetime'], 1), |
| 328 |
format_size($info['filesize']), |
format_size($info['filesize']), |
| 329 |
implode(" | ", $destination->get_file_links($file->file_id())), |
implode(" | ", $destination->get_file_links($file->file_id())), |
| 330 |
); |
); |