SiteExportService
class SiteExportService (View source)
The Site Export Service
Properties
protected ContextFactoryInterface | $contextFactory | ||
protected NodeExportService | $nodeExportService | ||
protected PackageManager | $packageManager | ||
protected string | $resourcesPath | Absolute path to exported resources, or NULL if resources should be inlined in the exported XML |
|
protected XMLWriter | $xmlWriter | The XMLWriter that is used to construct the export. |
Methods
Fetches the site with the given name and exports it into XML.
Fetches the site with the given name and exports it into XML in the given package.
Fetches the site with the given name and exports it as XML into the given file.
Exports the given sites to the XMLWriter
Details
string
export(array $sites, bool $tidy = false, string $nodeTypeFilter = null)
Fetches the site with the given name and exports it into XML.
void
exportToPackage(array $sites, bool $tidy, string $packageKey, string $nodeTypeFilter = null)
Fetches the site with the given name and exports it into XML in the given package.
void
exportToFile(array $sites, bool $tidy, string $pathAndFilename, string $nodeTypeFilter = null)
Fetches the site with the given name and exports it as XML into the given file.
protected void
exportSites(array $sites, string $nodeTypeFilter)
Exports the given sites to the XMLWriter
protected void
exportSite(Site $site, string $nodeTypeFilter)
Export the given $site to the XMLWriter