コード例 #1
0
}
try {
    $storage = $backup->get_storage($backup_info->get_storage())->get_title('on');
} catch (FW_Backup_Exception $exception) {
}
if ($backup_info->get_theme()) {
    $cron = __('Demo Install', 'fw');
}
if ($backup_info->is_imported()) {
    $status = __('Imported', 'fw');
    $time = $backup_info->get_storage_file_time();
} elseif ($backup_info->is_completed()) {
    $status = false;
    $time = $backup_info->get_storage_file_time();
} elseif ($backup_info->is_cancelled()) {
    if ($backup_info->is_finished()) {
        $status = __('Cancelled', 'fw');
    } else {
        $status = __('Cancelling', 'fw');
    }
    $time = $backup_info->get_cancelled_at();
} elseif ($backup_info->is_failed()) {
    $status = __('Failed', 'fw');
    $time = $backup_info->get_failed_at();
} elseif ($backup_info->is_started()) {
    $status = __('Running', 'fw');
    $time = time();
} elseif ($backup_info->is_queued()) {
    $status = __('Queued', 'fw');
    $time = $backup_info->get_queued_at();
}