PHP Class Neos\Neos\Domain\Model\Domain

It is used to connect a site root node to a specific hostname.
Inheritance: implements Neos\Cache\CacheAwareInterface
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$active boolean If domain is active
$hostname string
$port integer
$scheme string
$site Site

Méthodes publiques

Méthode Description
__toString ( ) : string Returns a URI string representation of this domain
getActive ( ) : boolean Returns if the domain is active
getCacheEntryIdentifier ( )
getHostPattern ( ) : string Returns the hostname
getHostname ( ) : string Returns the hostname
getPort ( ) : integer Returns the port for this domain
getScheme ( ) : string Returns the scheme for this domain
getSite ( ) : Site Returns the site this domain is pointing to
onPostFlush ( ) : void Internal event handler to forward domain changes to the "siteChanged" signal
setActive ( boolean $active ) : void Sets if the domain is active
setHostPattern ( string $hostPattern ) : void Sets the hostname
setHostname ( string $hostname ) : void Sets the hostname
setPort ( integer $port = null ) : void Sets the port for the domain
setScheme ( string $scheme = null ) : void Sets the scheme for the domain
setSite ( Site $site ) : void Sets the site this domain is pointing to

Method Details

__toString() public méthode

Returns a URI string representation of this domain
public __toString ( ) : string
Résultat string This domain as a URI string

getActive() public méthode

Returns if the domain is active
public getActive ( ) : boolean
Résultat boolean If active or not

getCacheEntryIdentifier() public méthode

getHostPattern() public méthode

Returns the hostname
Deprecation: after 3.0, use getHostname() instead
public getHostPattern ( ) : string
Résultat string The name

getHostname() public méthode

Returns the hostname
public getHostname ( ) : string
Résultat string

getPort() public méthode

Returns the port for this domain
public getPort ( ) : integer
Résultat integer The port

getScheme() public méthode

Returns the scheme for this domain
public getScheme ( ) : string
Résultat string The scheme

getSite() public méthode

Returns the site this domain is pointing to
public getSite ( ) : Site
Résultat Site

onPostFlush() public méthode

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

setActive() public méthode

Sets if the domain is active
public setActive ( boolean $active ) : void
$active boolean If the domain is active
Résultat void

setHostPattern() public méthode

Sets the hostname
Deprecation: after 3.0, use setHostname() instead
public setHostPattern ( string $hostPattern ) : void
$hostPattern string
Résultat void

setHostname() public méthode

Sets the hostname
public setHostname ( string $hostname ) : void
$hostname string
Résultat void

setPort() public méthode

Sets the port for the domain
public setPort ( integer $port = null ) : void
$port integer Port for the domain
Résultat void

setScheme() public méthode

Sets the scheme for the domain
public setScheme ( string $scheme = null ) : void
$scheme string Scheme for the domain
Résultat void

setSite() public méthode

Sets the site this domain is pointing to
public setSite ( Site $site ) : void
$site Site The site
Résultat void

Property Details

$active protected_oe property

If domain is active
protected bool $active
Résultat boolean

$hostname protected_oe property

protected string $hostname
Résultat string

$port protected_oe property

protected int $port
Résultat integer

$scheme protected_oe property

protected string $scheme
Résultat string

$site protected_oe property

protected Site,Neos\Neos\Domain\Model $site
Résultat Site