PHP Class Neos\Neos\Controller\Module\Administration\SitesController

Inheritance: extends Neos\Neos\Controller\Module\AbstractModuleController
ファイルを表示 Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$assetCollectionRepository Neos\Media\Domain\Repository\AssetCollectionRepository
$domainRepository Neos\Neos\Domain\Repository\DomainRepository
$nodeContextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$nodeService Neos\ContentRepository\Domain\Service\NodeService
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$packageManager Neos\Flow\Package\PackageManagerInterface
$session Neos\Flow\Session\SessionInterface
$siteImportService Neos\Neos\Domain\Service\SiteImportService
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$siteService Neos\Neos\Domain\Service\SiteService
$systemLogger Neos\Flow\Log\SystemLoggerInterface
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

Public Methods

Method Description
activateDomainAction ( Domain $domain ) : void Activates a domain
activateSiteAction ( Site $site ) : void Activates a site
createDomainAction ( Domain $domain ) : void Create a domain
createSiteNodeAction ( string $packageKey, string $siteName, string $nodeType ) : void Create a new empty site.
createSitePackageAction ( string $packageKey, string $siteName ) : void Create a new site-package and directly import it.
deactivateDomainAction ( Domain $domain ) : void Deactivates a domain
deactivateSiteAction ( Site $site ) : void Deactivates a site
deleteDomainAction ( Domain $domain ) : void Deletes a domain attached to a site
deleteSiteAction ( Site $site ) : void Delete a site.
editAction ( Site $site ) : void A edit view for a site and its settings.
editDomainAction ( Domain $domain ) : void Edit a domain
importSiteAction ( string $packageKey ) : void Import a site from site package.
indexAction ( ) : void
newDomainAction ( Domain $domain = null, Site $site = null ) : void The create a new domain action.
newSiteAction ( Site $site = null ) : void Create a new site form.
updateDomainAction ( Domain $domain ) : void Update a domain
updateSiteAction ( Site $site, string $newSiteNodeName ) : void Update a site

Protected Methods

Method Description
deactivateAllOtherSitePackages ( string $activePackageKey ) : array If site packages already exist and are active, we will deactivate them in order to prevent interactions with the newly created or imported package (like Content Dimensions being used).
unsetLastVisitedNodeAndRedirect ( string $actionName, string $controllerName = null, string $packageKey = null, array $arguments = null, integer $delay, integer $statusCode = 303, string $format = null ) : void

Method Details

activateDomainAction() public method

Activates a domain
public activateDomainAction ( Domain $domain ) : void
$domain Neos\Neos\Domain\Model\Domain Domain to activate
return void

activateSiteAction() public method

Activates a site
public activateSiteAction ( Site $site ) : void
$site Neos\Neos\Domain\Model\Site Site to activate
return void

createDomainAction() public method

Create a domain
public createDomainAction ( Domain $domain ) : void
$domain Neos\Neos\Domain\Model\Domain Domain to create
return void

createSiteNodeAction() public method

Create a new empty site.
public createSiteNodeAction ( string $packageKey, string $siteName, string $nodeType ) : void
$packageKey string Package Name to create
$siteName string Site Name to create
$nodeType string NodeType name for the root node to create
return void

createSitePackageAction() public method

Create a new site-package and directly import it.
public createSitePackageAction ( string $packageKey, string $siteName ) : void
$packageKey string Package Name to create
$siteName string Site Name to create
return void

deactivateAllOtherSitePackages() protected method

If site packages already exist and are active, we will deactivate them in order to prevent interactions with the newly created or imported package (like Content Dimensions being used).
protected deactivateAllOtherSitePackages ( string $activePackageKey ) : array
$activePackageKey string Package key of one package which should stay active
return array deactivated site packages

deactivateDomainAction() public method

Deactivates a domain
public deactivateDomainAction ( Domain $domain ) : void
$domain Neos\Neos\Domain\Model\Domain Domain to deactivate
return void

deactivateSiteAction() public method

Deactivates a site
public deactivateSiteAction ( Site $site ) : void
$site Neos\Neos\Domain\Model\Site Site to deactivate
return void

deleteDomainAction() public method

Deletes a domain attached to a site
public deleteDomainAction ( Domain $domain ) : void
$domain Neos\Neos\Domain\Model\Domain A domain to delete
return void

deleteSiteAction() public method

Delete a site.
public deleteSiteAction ( Site $site ) : void
$site Neos\Neos\Domain\Model\Site Site to delete
return void

editAction() public method

A edit view for a site and its settings.
public editAction ( Site $site ) : void
$site Neos\Neos\Domain\Model\Site Site to view
return void

editDomainAction() public method

Edit a domain
public editDomainAction ( Domain $domain ) : void
$domain Neos\Neos\Domain\Model\Domain Domain to edit
return void

importSiteAction() public method

Import a site from site package.
public importSiteAction ( string $packageKey ) : void
$packageKey string Package from where the import will come
return void

indexAction() public method

public indexAction ( ) : void
return void

newDomainAction() public method

The create a new domain action.
public newDomainAction ( Domain $domain = null, Site $site = null ) : void
$domain Neos\Neos\Domain\Model\Domain
$site Neos\Neos\Domain\Model\Site
return void

newSiteAction() public method

Create a new site form.
public newSiteAction ( Site $site = null ) : void
$site Neos\Neos\Domain\Model\Site Site to create
return void

unsetLastVisitedNodeAndRedirect() protected method

protected unsetLastVisitedNodeAndRedirect ( string $actionName, string $controllerName = null, string $packageKey = null, array $arguments = null, integer $delay, integer $statusCode = 303, string $format = null ) : void
$actionName string Name of the action to forward to
$controllerName string Unqualified object name of the controller to forward to. If not specified, the current controller is used.
$packageKey string Key of the package containing the controller to forward to. If not specified, the current package is assumed.
$arguments array Array of arguments for the target action
$delay integer (optional) The delay in seconds. Default is no delay.
$statusCode integer (optional) The HTTP status code for the redirect. Default is "303 See Other"
$format string The format to use for the redirect URI
return void

updateDomainAction() public method

Update a domain
public updateDomainAction ( Domain $domain ) : void
$domain Neos\Neos\Domain\Model\Domain Domain to update
return void

updateSiteAction() public method

Update a site
public updateSiteAction ( Site $site, string $newSiteNodeName ) : void
$site Neos\Neos\Domain\Model\Site A site to update
$newSiteNodeName string A new site node name
return void

Property Details

$assetCollectionRepository protected_oe property

protected AssetCollectionRepository,Neos\Media\Domain\Repository $assetCollectionRepository
return Neos\Media\Domain\Repository\AssetCollectionRepository

$domainRepository protected_oe property

protected DomainRepository,Neos\Neos\Domain\Repository $domainRepository
return Neos\Neos\Domain\Repository\DomainRepository

$nodeContextFactory protected_oe property

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $nodeContextFactory
return Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$nodeDataRepository protected_oe property

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
return Neos\ContentRepository\Domain\Repository\NodeDataRepository

$nodeService protected_oe property

protected NodeService,Neos\ContentRepository\Domain\Service $nodeService
return Neos\ContentRepository\Domain\Service\NodeService

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager

$packageManager protected_oe property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
return Neos\Flow\Package\PackageManagerInterface

$session protected_oe property

protected SessionInterface,Neos\Flow\Session $session
return Neos\Flow\Session\SessionInterface

$siteImportService protected_oe property

protected SiteImportService,Neos\Neos\Domain\Service $siteImportService
return Neos\Neos\Domain\Service\SiteImportService

$siteRepository protected_oe property

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
return Neos\Neos\Domain\Repository\SiteRepository

$siteService protected_oe property

protected SiteService,Neos\Neos\Domain\Service $siteService
return Neos\Neos\Domain\Service\SiteService

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
return Neos\Flow\Log\SystemLoggerInterface

$workspaceRepository protected_oe property

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
return Neos\ContentRepository\Domain\Repository\WorkspaceRepository