Domain
class Domain implements CacheAwareInterface (View source)
Domain Model of a Domain.
It is used to connect a site root node to a specific hostname.
Properties
protected string | $hostname | ||
protected string | $scheme | ||
protected int | $port | ||
protected Site | $site | ||
protected bool | $active | If domain is active |
Methods
Sets the hostname
Returns the hostname
Sets the scheme for the domain
Returns the scheme for this domain
Sets the port for the domain
Returns the port for this domain
Sets if the domain is active
Returns if the domain is active
Internal event handler to forward domain changes to the "siteChanged" signal
{@inheritdoc}
Returns a URI string representation of this domain
Details
void
setHostname(string $hostname)
Sets the hostname
string
getHostname()
Returns the hostname
void
setScheme(string $scheme = null)
Sets the scheme for the domain
?string
getScheme()
Returns the scheme for this domain
void
setPort(int $port = null)
Sets the port for the domain
?int
getPort()
Returns the port for this domain
void
setSite(Site $site)
Sets the site this domain is pointing to
Site
getSite()
Returns the site this domain is pointing to
void
setActive(bool $active)
Sets if the domain is active
bool
getActive()
Returns if the domain is active
void
onPostFlush()
Internal event handler to forward domain changes to the "siteChanged" signal
string
getCacheEntryIdentifier()
{@inheritdoc}
string
__toString()
Returns a URI string representation of this domain