PHP Класс Sulu\Component\Webspace\PortalInformation

Наследование: implements Sulu\Component\Util\ArrayableInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( $type, Webspace $webspace = null, Portal $portal = null, Localization $localization = null, $url = null, Segment $segment = null, $redirect = null, $analyticsKey = null, $main = false, $urlExpression = null, $priority )
getAnalyticsKey ( ) : string Returns the analytics key of this Portalinformation.
getHost ( ) : string Returns the host including the domain for the PortalInformation.
getLocale ( ) : string Returns the localization for this PortalInformation.
getLocalization ( ) : Localization Returns the localization for this PortalInformation.
getPortal ( ) : Portal Returns the portal for this PortalInformation.
getPortalKey ( ) Returns key of portal.
getPrefix ( ) : string Returns the prefix (the url without the host) for this PortalInformation.
getPriority ( ) : integer
getRedirect ( ) : string Returns the redirect for the PortalInformation.
getSegment ( ) : Segment Returns the segment for the PortalInformation.
getType ( ) : integer Returns the match type of this PortalInformation.
getUrl ( ) : string Returns the URL of this Portalinformation.
getUrlExpression ( ) : string Returns expression for url.
getWebspace ( ) : Webspace Returns the webspace for this PortalInformation.
getWebspaceKey ( ) Returns key of webspace.
isMain ( ) : boolean Returns true if url is main.
setAnalyticsKey ( string $analyticsKey ) Sets the analytics key of this Portalinformation.
setLocalization ( Localization $localization ) Sets the localization for this PortalInformation.
setMain ( boolean $main ) Sets true if url is main.
setPortal ( Portal $portal ) Sets the portal for this PortalInformation.
setPriority ( integer $priority )
setRedirect ( string $redirect ) Sets the redirect for the PortalInformation.
setSegment ( Segment $segment ) Sets the segment for the PortalInformation.
setType ( integer $type ) Sets the match type of this PortalInformation.
setUrl ( string $url ) Sets the URL of this Portalinformation.
setUrlExpression ( string $urlExpression ) Sets expression for url.
setWebspace ( Webspace $webspace ) Sets the webspace for this PortalInformation.
toArray ( $depth = null )

Приватные методы

Метод Описание
getHostLength ( ) : integer Calculate the length of the host part of the URL.

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

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

public __construct ( $type, Webspace $webspace = null, Portal $portal = null, Localization $localization = null, $url = null, Segment $segment = null, $redirect = null, $analyticsKey = null, $main = false, $urlExpression = null, $priority )
$webspace Webspace
$portal Portal
$localization Sulu\Component\Localization\Localization
$segment Segment

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

Returns the analytics key of this Portalinformation.
public getAnalyticsKey ( ) : string
Результат string

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

Returns the host including the domain for the PortalInformation.
public getHost ( ) : string
Результат string

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

Returns the localization for this PortalInformation.
public getLocale ( ) : string
Результат string

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

Returns the localization for this PortalInformation.
public getLocalization ( ) : Localization
Результат Sulu\Component\Localization\Localization

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

Returns the portal for this PortalInformation.
public getPortal ( ) : Portal
Результат Portal

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

Returns key of portal.
public getPortalKey ( )

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

Returns the prefix (the url without the host) for this PortalInformation.
public getPrefix ( ) : string
Результат string

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

public getPriority ( ) : integer
Результат integer

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

Returns the redirect for the PortalInformation.
public getRedirect ( ) : string
Результат string

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

Returns the segment for the PortalInformation.
public getSegment ( ) : Segment
Результат Segment

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

Returns the match type of this PortalInformation.
public getType ( ) : integer
Результат integer

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

Returns the URL of this Portalinformation.
public getUrl ( ) : string
Результат string

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

Returns expression for url.
public getUrlExpression ( ) : string
Результат string

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

Returns the webspace for this PortalInformation.
public getWebspace ( ) : Webspace
Результат Webspace

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

Returns key of webspace.
public getWebspaceKey ( )

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

Returns true if url is main.
public isMain ( ) : boolean
Результат boolean

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

Sets the analytics key of this Portalinformation.
public setAnalyticsKey ( string $analyticsKey )
$analyticsKey string

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

Sets the localization for this PortalInformation.
public setLocalization ( Localization $localization )
$localization Sulu\Component\Localization\Localization

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

Sets true if url is main.
public setMain ( boolean $main )
$main boolean

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

Sets the portal for this PortalInformation.
public setPortal ( Portal $portal )
$portal Portal

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

public setPriority ( integer $priority )
$priority integer

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

Sets the redirect for the PortalInformation.
public setRedirect ( string $redirect )
$redirect string

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

Sets the segment for the PortalInformation.
public setSegment ( Segment $segment )
$segment Segment

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

Sets the match type of this PortalInformation.
public setType ( integer $type )
$type integer

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

Sets the URL of this Portalinformation.
public setUrl ( string $url )
$url string

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

Sets expression for url.
public setUrlExpression ( string $urlExpression )
$urlExpression string

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

Sets the webspace for this PortalInformation.
public setWebspace ( Webspace $webspace )
$webspace Webspace

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

public toArray ( $depth = null )