PHP Класс Neos\Neos\Domain\Service\SiteExportService

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$nodeExportService Neos\ContentRepository\Domain\Service\ImportExport\NodeExportService
$packageManager Neos\Flow\Package\PackageManagerInterface
$resourcesPath string Absolute path to exported resources, or NULL if resources should be inlined in the exported XML
$xmlWriter XMLWriter The XMLWriter that is used to construct the export.

Открытые методы

Метод Описание
export ( array $sites, boolean $tidy = false, string $nodeTypeFilter = null ) : string Fetches the site with the given name and exports it into XML.
exportToFile ( array $sites, boolean $tidy = false, string $pathAndFilename, string $nodeTypeFilter = null ) : void Fetches the site with the given name and exports it as XML into the given file.
exportToPackage ( array $sites, boolean $tidy = false, string $packageKey, string $nodeTypeFilter = null ) : void Fetches the site with the given name and exports it into XML in the given package.

Защищенные методы

Метод Описание
exportSite ( Site $site, string $nodeTypeFilter ) : void Export the given $site to the XMLWriter
exportSites ( array $sites, string $nodeTypeFilter ) : void Exports the given sites to the XMLWriter

Описание методов

export() публичный Метод

Fetches the site with the given name and exports it into XML.
public export ( array $sites, boolean $tidy = false, string $nodeTypeFilter = null ) : string
$sites array
$tidy boolean Whether to export formatted XML
$nodeTypeFilter string Filter the node type of the nodes, allows complex expressions (e.g. "Neos.Neos:Page", "!Neos.Neos:Page,Neos.Neos:Text")
Результат string

exportSite() защищенный Метод

Export the given $site to the XMLWriter
protected exportSite ( Site $site, string $nodeTypeFilter ) : void
$site Neos\Neos\Domain\Model\Site
$nodeTypeFilter string
Результат void

exportSites() защищенный Метод

Exports the given sites to the XMLWriter
protected exportSites ( array $sites, string $nodeTypeFilter ) : void
$sites array
$nodeTypeFilter string
Результат void

exportToFile() публичный Метод

Fetches the site with the given name and exports it as XML into the given file.
public exportToFile ( array $sites, boolean $tidy = false, string $pathAndFilename, string $nodeTypeFilter = null ) : void
$sites array
$tidy boolean Whether to export formatted XML
$pathAndFilename string Path to where the export output should be saved to
$nodeTypeFilter string Filter the node type of the nodes, allows complex expressions (e.g. "Neos.Neos:Page", "!Neos.Neos:Page,Neos.Neos:Text")
Результат void

exportToPackage() публичный Метод

Fetches the site with the given name and exports it into XML in the given package.
public exportToPackage ( array $sites, boolean $tidy = false, string $packageKey, string $nodeTypeFilter = null ) : void
$sites array
$tidy boolean Whether to export formatted XML
$packageKey string Package key where the export output should be saved to
$nodeTypeFilter string Filter the node type of the nodes, allows complex expressions (e.g. "Neos.Neos:Page", "!Neos.Neos:Page,Neos.Neos:Text")
Результат void

Описание свойств

$contextFactory защищенное свойство

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
Результат Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$nodeExportService защищенное свойство

protected NodeExportService,Neos\ContentRepository\Domain\Service\ImportExport $nodeExportService
Результат Neos\ContentRepository\Domain\Service\ImportExport\NodeExportService

$packageManager защищенное свойство

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Результат Neos\Flow\Package\PackageManagerInterface

$resourcesPath защищенное свойство

Absolute path to exported resources, or NULL if resources should be inlined in the exported XML
protected string $resourcesPath
Результат string

$xmlWriter защищенное свойство

The XMLWriter that is used to construct the export.
protected XMLWriter $xmlWriter
Результат XMLWriter