$backup_info = new FW_Backup_Info(); $backup_info->set_failed_at(time()); $backup_info->set_finished_at(time()); } try { $cron = $backup->cron()->get_cron_job($backup_info->get_cron_job())->get_title(); } catch (FW_Backup_Exception $exception) { } 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();