PHP Class Neos\Neos\Domain\Model\Site

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

Protected Properties

Свойство Type Description
$assetCollection Neos\Media\Domain\Model\AssetCollection
$domains Collection
$name string Name of the site
$nodeName string The first level of nodes of a site can be reached via a path like "/Sites/MySite/" where "MySite" is the nodeName.
$primaryDomain Domain
$siteResourcesPackageKey string
$state integer The site's state

Méthodes publiques

Méthode Description
__construct ( string $nodeName ) Constructs this Site object
__toString ( ) : string
emitSiteChanged ( ) : void Internal signal
getActiveDomains ( ) : Collection
getAssetCollection ( ) : AssetCollection
getDomains ( ) : Collection
getFirstActiveDomain ( ) : Domain | null
getName ( ) : string Returns the name of this site
getNodeName ( ) : string Returns the node name of this site
getPrimaryDomain ( ) : Domain Returns the primary domain, if one has been defined.
getSiteResourcesPackageKey ( ) : string Returns the key of a package containing the static resources for this site.
getState ( ) : integer Returns the state of this site
hasActiveDomains ( ) : boolean
isOffline ( ) : boolean
isOnline ( ) : boolean
onPostFlush ( ) : void Internal event handler to forward site changes to the "siteChanged" signal
setAssetCollection ( AssetCollection $assetCollection = null ) : void
setDomains ( Collection $domains ) : void
setName ( string $name ) : void Sets the name for this site
setNodeName ( string $nodeName ) : void Sets the node name for this site
setPrimaryDomain ( Domain $domain = null ) : void Sets (and adds if necessary) the primary domain of this site.
setSiteResourcesPackageKey ( string $packageKey ) : void Sets the key of a package containing the static resources for this site.
setState ( integer $state ) : void Sets the state for this site

Method Details

__construct() public méthode

Constructs this Site object
public __construct ( string $nodeName )
$nodeName string Node name of this site in the content repository

__toString() public méthode

public __toString ( ) : string
Résultat string

emitSiteChanged() public méthode

Internal signal
public emitSiteChanged ( ) : void
Résultat void

getActiveDomains() public méthode

public getActiveDomains ( ) : Collection
Résultat Collection

getAssetCollection() public méthode

public getAssetCollection ( ) : AssetCollection
Résultat Neos\Media\Domain\Model\AssetCollection

getDomains() public méthode

public getDomains ( ) : Collection
Résultat Collection

getFirstActiveDomain() public méthode

public getFirstActiveDomain ( ) : Domain | null
Résultat Domain | null

getName() public méthode

Returns the name of this site
public getName ( ) : string
Résultat string The name

getNodeName() public méthode

If you need to fetch the root node for this site, use the content context, do not use the NodeDataRepository!
public getNodeName ( ) : string
Résultat string The node name

getPrimaryDomain() public méthode

Returns the primary domain, if one has been defined.
public getPrimaryDomain ( ) : Domain
Résultat Domain The primary domain or NULL

getSiteResourcesPackageKey() public méthode

Returns the key of a package containing the static resources for this site.
public getSiteResourcesPackageKey ( ) : string
Résultat string The package key

getState() public méthode

Returns the state of this site
public getState ( ) : integer
Résultat integer The state - one of the STATUS_* constant's values

hasActiveDomains() public méthode

public hasActiveDomains ( ) : boolean
Résultat boolean TRUE if the site has at least one active domain assigned

isOffline() public méthode

public isOffline ( ) : boolean
Résultat boolean

isOnline() public méthode

public isOnline ( ) : boolean
Résultat boolean

onPostFlush() public méthode

Internal event handler to forward site changes to the "siteChanged" signal
public onPostFlush ( ) : void
Résultat void

setAssetCollection() public méthode

public setAssetCollection ( AssetCollection $assetCollection = null ) : void
$assetCollection Neos\Media\Domain\Model\AssetCollection
Résultat void

setDomains() public méthode

public setDomains ( Collection $domains ) : void
$domains Collection
Résultat void

setName() public méthode

Sets the name for this site
public setName ( string $name ) : void
$name string The site name
Résultat void

setNodeName() public méthode

Sets the node name for this site
public setNodeName ( string $nodeName ) : void
$nodeName string The site node name
Résultat void

setPrimaryDomain() public méthode

Sets (and adds if necessary) the primary domain of this site.
public setPrimaryDomain ( Domain $domain = null ) : void
$domain Domain The domain
Résultat void

setSiteResourcesPackageKey() public méthode

Sets the key of a package containing the static resources for this site.
public setSiteResourcesPackageKey ( string $packageKey ) : void
$packageKey string The package key
Résultat void

setState() public méthode

Sets the state for this site
public setState ( integer $state ) : void
$state integer The site's state, must be one of the STATUS_* constants
Résultat void

Property Details

$assetCollection protected_oe property

protected AssetCollection,Neos\Media\Domain\Model $assetCollection
Résultat Neos\Media\Domain\Model\AssetCollection

$domains protected_oe property

protected Collection $domains
Résultat Collection

$name protected_oe property

Name of the site
protected string $name
Résultat string

$nodeName protected_oe property

The first level of nodes of a site can be reached via a path like "/Sites/MySite/" where "MySite" is the nodeName.
protected string $nodeName
Résultat string

$primaryDomain protected_oe property

protected Domain,Neos\Neos\Domain\Model $primaryDomain
Résultat Domain

$siteResourcesPackageKey protected_oe property

protected string $siteResourcesPackageKey
Résultat string

$state protected_oe property

The site's state
protected int $state
Résultat integer