Neos.Neos/Classes/Domain/Service/SiteExportService.php
public function exportToFile(array $sites, $tidy = false, $pathAndFilename, $nodeTypeFilter = null)
    {
        $this->resourcesPath = Files::concatenatePaths([dirname($pathAndFilename), 'Resources']);
        Files::createDirectoryRecursively($this->resourcesPath);

        $this->xmlWriter = new \XMLWriter();
        $this->xmlWriter->openUri($pathAndFilename);
        $this->xmlWriter->setIndent($tidy);

        $this->exportSites($sites, $nodeTypeFilter);

        $this->xmlWriter->flush();
    }
public function exportToFile(array $sites, $tidy = false, $pathAndFilename, $nodeTypeFilter = null)
    {
        $this->resourcesPath = Files::concatenatePaths([dirname($pathAndFilename), 'Resources']);
        Files::createDirectoryRecursively($this->resourcesPath);

        $this->xmlWriter = new \XMLWriter();
        $this->xmlWriter->openUri($pathAndFilename);
        $this->xmlWriter->setIndent($tidy);

        $this->exportSites($sites, $nodeTypeFilter);

        $this->xmlWriter->flush();
    }
public function exportToFile ( array $ sites , $ tidy = false , $ pathAndFilename , $ nodeTypeFilter = null ) { $ this -> resourcesPath = Files :: concatenatePaths ( [ dirname ( $ pathAndFilename ) , 'Resources' ] ) ; Files :: createDirectoryRecursively ( $ this -> resourcesPath ) ; $ this -> xmlWriter = new \ XMLWriter ( ) ; $ this -> xmlWriter -> openUri ( $ pathAndFilename ) ; $ this -> xmlWriter -> setIndent ( $ tidy ) ; $ this -> exportSites ( $ sites , $ nodeTypeFilter ) ; $ this -> xmlWriter -> flush ( ) ; }
Fetches the site with the given name and exports it as XML into the given file.

@param array<Site> $sites
@param boolean $tidy Whether to export formatted XML
@param string $pathAndFilename Path to where the export output should be saved to
@param string $nodeTypeFilter Filter the node type of the nodes, allows complex expressions (e.g. "Neos.Neos:Page", "!Neos.Neos:Page,Neos.Neos:Text")
@return void
Fetches the site with the given name and exports it as XML into the given file .