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

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

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

Свойство Тип Описание
$assetClassNames array An array that contains all fully qualified class names that implement AssetInterface
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$dateTimeClassNames array An array that contains all fully qualified class names that extend \DateTime including \DateTime itself
$eventEmittingService Neos\Neos\EventLog\Domain\Service\EventEmittingService
$imageVariantClassNames array An array that contains all fully qualified class names that extend ImageVariant including ImageVariant itself
$nodeImportService Neos\ContentRepository\Domain\Service\ImportExport\NodeImportService
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$packageManager Neos\Flow\Package\PackageManagerInterface
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$reflectionService Neos\Flow\Reflection\ReflectionService
$resourcesPath string
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

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

Метод Описание
importFromFile ( string $pathAndFilename ) : Site Imports one or multiple sites from the XML file at $pathAndFilename
importFromPackage ( string $packageKey ) : Site Checks for the presence of Sites.xml in the given package and imports it if found.
initializeObject ( ) : void

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

Метод Описание
emitSiteImported ( Site $site ) : void Signal that is triggered when a site has been imported successfully
getSiteByNodeName ( string $siteNodeName ) : Site Updates or creates a site with the given $siteNodeName

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

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

Signal that is triggered when a site has been imported successfully
protected emitSiteImported ( Site $site ) : void
$site Neos\Neos\Domain\Model\Site The site that has been imported
Результат void

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

Updates or creates a site with the given $siteNodeName
protected getSiteByNodeName ( string $siteNodeName ) : Site
$siteNodeName string
Результат Neos\Neos\Domain\Model\Site

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

Imports one or multiple sites from the XML file at $pathAndFilename
public importFromFile ( string $pathAndFilename ) : Site
$pathAndFilename string
Результат Neos\Neos\Domain\Model\Site The imported site

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

Checks for the presence of Sites.xml in the given package and imports it if found.
public importFromPackage ( string $packageKey ) : Site
$packageKey string
Результат Neos\Neos\Domain\Model\Site the imported site

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

public initializeObject ( ) : void
Результат void

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

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

An array that contains all fully qualified class names that implement AssetInterface
protected array $assetClassNames
Результат array

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

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

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

An array that contains all fully qualified class names that extend \DateTime including \DateTime itself
protected array $dateTimeClassNames
Результат array

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

protected EventEmittingService,Neos\Neos\EventLog\Domain\Service $eventEmittingService
Результат Neos\Neos\EventLog\Domain\Service\EventEmittingService

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

An array that contains all fully qualified class names that extend ImageVariant including ImageVariant itself
protected array $imageVariantClassNames
Результат array

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

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

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

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

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

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

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface

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

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Результат Neos\Flow\Reflection\ReflectionService

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

protected string $resourcesPath
Результат string

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

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Результат Neos\Neos\Domain\Repository\SiteRepository

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

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
Результат Neos\ContentRepository\Domain\Repository\WorkspaceRepository