PHP 클래스 Neos\Neos\Domain\Service\SiteExportService

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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