++ add backup totale applicativo

This commit is contained in:
2026-07-29 12:34:38 +02:00
parent 2fa76d5073
commit c6abef977d
14 changed files with 864 additions and 11 deletions

View File

@@ -135,14 +135,23 @@ class XmlExchange extends Component
public function exportCurrentAsXml()
{
$dataset = $this->currentDataset();
$xml = $this->datasetToXml($dataset, 'current-app-export');
$xml = $this->currentXmlBackup();
return response()->streamDownload(function () use ($xml) {
echo $xml;
}, 'termanager-export.xml', ['Content-Type' => 'application/xml; charset=UTF-8']);
}
/**
* L'export XML completo dei dati correnti. E' lo stesso contenuto che
* finisce in data.xml dentro il pacchetto di backup .zip, dove viaggia
* insieme ai file caricati.
*/
public function currentXmlBackup(): string
{
return $this->datasetToXml($this->currentDataset(), 'current-app-export');
}
public function render()
{
if (session()->has('importStats')) {