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

It is used to connect a site root node to a specific hostname.
Наследование: implements Neos\Cache\CacheAwareInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$active boolean If domain is active
$hostname string
$port integer
$scheme string
$site Site

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

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

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

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

Returns a URI string representation of this domain
public __toString ( ) : string
Результат string This domain as a URI string

getActive() публичный Метод

Returns if the domain is active
public getActive ( ) : boolean
Результат boolean If active or not

getCacheEntryIdentifier() публичный Метод

getHostPattern() публичный Метод

Returns the hostname
Устаревший: after 3.0, use getHostname() instead
public getHostPattern ( ) : string
Результат string The name

getHostname() публичный Метод

Returns the hostname
public getHostname ( ) : string
Результат string

getPort() публичный Метод

Returns the port for this domain
public getPort ( ) : integer
Результат integer The port

getScheme() публичный Метод

Returns the scheme for this domain
public getScheme ( ) : string
Результат string The scheme

getSite() публичный Метод

Returns the site this domain is pointing to
public getSite ( ) : Site
Результат Site

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

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

setActive() публичный Метод

Sets if the domain is active
public setActive ( boolean $active ) : void
$active boolean If the domain is active
Результат void

setHostPattern() публичный Метод

Sets the hostname
Устаревший: after 3.0, use setHostname() instead
public setHostPattern ( string $hostPattern ) : void
$hostPattern string
Результат void

setHostname() публичный Метод

Sets the hostname
public setHostname ( string $hostname ) : void
$hostname string
Результат void

setPort() публичный Метод

Sets the port for the domain
public setPort ( integer $port = null ) : void
$port integer Port for the domain
Результат void

setScheme() публичный Метод

Sets the scheme for the domain
public setScheme ( string $scheme = null ) : void
$scheme string Scheme for the domain
Результат void

setSite() публичный Метод

Sets the site this domain is pointing to
public setSite ( Site $site ) : void
$site Site The site
Результат void

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

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

If domain is active
protected bool $active
Результат boolean

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

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

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

protected int $port
Результат integer

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

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

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

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