++ add backup totale applicativo
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user