Site
class Site (View source)
Domain model of a site
Constants
STATE_ONLINE |
Site states |
STATE_OFFLINE |
|
Properties
protected string | $name | Name of the site |
|
protected string | $nodeName | Node name of this site in the content repository. |
|
protected Domain> | $domains | ||
protected Domain | $primaryDomain | ||
protected int | $state | The site's state |
|
protected string | $siteResourcesPackageKey | ||
protected AssetCollection | $assetCollection |
Methods
Constructs this Site object
No description
Sets the name for this site
Returns the name of this site
Returns the node name of this site
Sets the node name for this site
Sets the state for this site
Returns the state of this site
Sets the key of a package containing the static resources for this site.
Returns the key of a package containing the static resources for this site.
No description
No description
No description
No description
No description
No description
No description
Sets (and adds if necessary) the primary domain of this site.
Returns the primary domain, if one has been defined.
No description
Internal event handler to forward site changes to the "siteChanged" signal
Internal signal
Details
__construct(string $nodeName)
Constructs this Site object
string
__toString()
No description
void
setName(string $name)
Sets the name for this site
string
getName()
Returns the name of this site
string
getNodeName()
Returns the node name of this site
If you need to fetch the root node for this site, use the content context, do not use the NodeDataRepository!
void
setNodeName(string $nodeName)
Sets the node name for this site
void
setState(int $state)
Sets the state for this site
int
getState()
Returns the state of this site
void
setSiteResourcesPackageKey(string $packageKey)
Sets the key of a package containing the static resources for this site.
string
getSiteResourcesPackageKey()
Returns the key of a package containing the static resources for this site.
bool
isOnline()
No description
bool
isOffline()
No description
void
setDomains(Domain> $domains)
No description
Domain>
getDomains()
No description
bool
hasActiveDomains()
No description
Domain>
getActiveDomains()
No description
Domain|null
getFirstActiveDomain()
No description
void
setPrimaryDomain(Domain $domain = null)
Sets (and adds if necessary) the primary domain of this site.
Domain
getPrimaryDomain()
Returns the primary domain, if one has been defined.
AssetCollection
getAssetCollection()
No description
void
setAssetCollection(AssetCollection $assetCollection = null)
No description
void
onPostFlush()
Internal event handler to forward site changes to the "siteChanged" signal
void
emitSiteChanged()
Internal signal