PHP Class Neos\Neos\Domain\Service\SiteImportService

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

emitSiteImported() protected méthode

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
Résultat void

getSiteByNodeName() protected méthode

Updates or creates a site with the given $siteNodeName
protected getSiteByNodeName ( string $siteNodeName ) : Site
$siteNodeName string
Résultat Neos\Neos\Domain\Model\Site

importFromFile() public méthode

Imports one or multiple sites from the XML file at $pathAndFilename
public importFromFile ( string $pathAndFilename ) : Site
$pathAndFilename string
Résultat Neos\Neos\Domain\Model\Site The imported site

importFromPackage() public méthode

Checks for the presence of Sites.xml in the given package and imports it if found.
public importFromPackage ( string $packageKey ) : Site
$packageKey string
Résultat Neos\Neos\Domain\Model\Site the imported site

initializeObject() public méthode

public initializeObject ( ) : void
Résultat void

Property Details

$assetClassNames protected_oe property

An array that contains all fully qualified class names that implement AssetInterface
protected array $assetClassNames
Résultat array

$contextFactory protected_oe property

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
Résultat Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$dateTimeClassNames protected_oe property

An array that contains all fully qualified class names that extend \DateTime including \DateTime itself
protected array $dateTimeClassNames
Résultat array

$eventEmittingService protected_oe property

protected EventEmittingService,Neos\Neos\EventLog\Domain\Service $eventEmittingService
Résultat Neos\Neos\EventLog\Domain\Service\EventEmittingService

$imageVariantClassNames protected_oe property

An array that contains all fully qualified class names that extend ImageVariant including ImageVariant itself
protected array $imageVariantClassNames
Résultat array

$nodeImportService protected_oe property

protected NodeImportService,Neos\ContentRepository\Domain\Service\ImportExport $nodeImportService
Résultat Neos\ContentRepository\Domain\Service\ImportExport\NodeImportService

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface

$packageManager protected_oe property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Résultat Neos\Flow\Package\PackageManagerInterface

$persistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Résultat Neos\Flow\Persistence\PersistenceManagerInterface

$reflectionService protected_oe property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Résultat Neos\Flow\Reflection\ReflectionService

$resourcesPath protected_oe property

protected string $resourcesPath
Résultat string

$siteRepository protected_oe property

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Résultat Neos\Neos\Domain\Repository\SiteRepository

$workspaceRepository protected_oe property

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
Résultat Neos\ContentRepository\Domain\Repository\WorkspaceRepository