PHP 클래스 Neos\Neos\Domain\Model\Site

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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