PHP Класс Neos\Neos\Domain\Model\Site

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

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

Свойство Тип Описание
$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

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

Метод Описание
__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

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

__construct() публичный метод

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

__toString() публичный метод

public __toString ( ) : string
Результат string

emitSiteChanged() публичный метод

Internal signal
public emitSiteChanged ( ) : void
Результат void

getActiveDomains() публичный метод

public getActiveDomains ( ) : Collection
Результат Collection

getAssetCollection() публичный метод

public getAssetCollection ( ) : AssetCollection
Результат Neos\Media\Domain\Model\AssetCollection

getDomains() публичный метод

public getDomains ( ) : Collection
Результат Collection

getFirstActiveDomain() публичный метод

public getFirstActiveDomain ( ) : Domain | null
Результат Domain | null

getName() публичный метод

Returns the name of this site
public getName ( ) : string
Результат string The name

getNodeName() публичный метод

If you need to fetch the root node for this site, use the content context, do not use the NodeDataRepository!
public getNodeName ( ) : string
Результат string The node name

getPrimaryDomain() публичный метод

Returns the primary domain, if one has been defined.
public getPrimaryDomain ( ) : Domain
Результат Domain The primary domain or NULL

getSiteResourcesPackageKey() публичный метод

Returns the key of a package containing the static resources for this site.
public getSiteResourcesPackageKey ( ) : string
Результат string The package key

getState() публичный метод

Returns the state of this site
public getState ( ) : integer
Результат integer The state - one of the STATUS_* constant's values

hasActiveDomains() публичный метод

public hasActiveDomains ( ) : boolean
Результат boolean TRUE if the site has at least one active domain assigned

isOffline() публичный метод

public isOffline ( ) : boolean
Результат boolean

isOnline() публичный метод

public isOnline ( ) : boolean
Результат boolean

onPostFlush() публичный метод

Internal event handler to forward site changes to the "siteChanged" signal
public onPostFlush ( ) : void
Результат void

setAssetCollection() публичный метод

public setAssetCollection ( AssetCollection $assetCollection = null ) : void
$assetCollection Neos\Media\Domain\Model\AssetCollection
Результат void

setDomains() публичный метод

public setDomains ( Collection $domains ) : void
$domains Collection
Результат void

setName() публичный метод

Sets the name for this site
public setName ( string $name ) : void
$name string The site name
Результат void

setNodeName() публичный метод

Sets the node name for this site
public setNodeName ( string $nodeName ) : void
$nodeName string The site node name
Результат void

setPrimaryDomain() публичный метод

Sets (and adds if necessary) the primary domain of this site.
public setPrimaryDomain ( Domain $domain = null ) : void
$domain Domain The domain
Результат void

setSiteResourcesPackageKey() публичный метод

Sets the key of a package containing the static resources for this site.
public setSiteResourcesPackageKey ( string $packageKey ) : void
$packageKey string The package key
Результат void

setState() публичный метод

Sets the state for this site
public setState ( integer $state ) : void
$state integer The site's state, must be one of the STATUS_* constants
Результат void

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

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

protected AssetCollection,Neos\Media\Domain\Model $assetCollection
Результат Neos\Media\Domain\Model\AssetCollection

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

protected Collection $domains
Результат Collection

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

Name of the site
protected string $name
Результат string

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

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
Результат string

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

protected Domain,Neos\Neos\Domain\Model $primaryDomain
Результат Domain

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

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

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

The site's state
protected int $state
Результат integer