PHP Class Sulu\Component\Webspace\PortalInformation

Inheritance: implements Sulu\Component\Util\ArrayableInterface
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
__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 )

Private Methods

Méthode Description
getHostLength ( ) : integer Calculate the length of the host part of the URL.

Method Details

__construct() public méthode

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() public méthode

Returns the analytics key of this Portalinformation.
public getAnalyticsKey ( ) : string
Résultat string

getHost() public méthode

Returns the host including the domain for the PortalInformation.
public getHost ( ) : string
Résultat string

getLocale() public méthode

Returns the localization for this PortalInformation.
public getLocale ( ) : string
Résultat string

getLocalization() public méthode

Returns the localization for this PortalInformation.
public getLocalization ( ) : Localization
Résultat Sulu\Component\Localization\Localization

getPortal() public méthode

Returns the portal for this PortalInformation.
public getPortal ( ) : Portal
Résultat Portal

getPortalKey() public méthode

Returns key of portal.
public getPortalKey ( )

getPrefix() public méthode

Returns the prefix (the url without the host) for this PortalInformation.
public getPrefix ( ) : string
Résultat string

getPriority() public méthode

public getPriority ( ) : integer
Résultat integer

getRedirect() public méthode

Returns the redirect for the PortalInformation.
public getRedirect ( ) : string
Résultat string

getSegment() public méthode

Returns the segment for the PortalInformation.
public getSegment ( ) : Segment
Résultat Segment

getType() public méthode

Returns the match type of this PortalInformation.
public getType ( ) : integer
Résultat integer

getUrl() public méthode

Returns the URL of this Portalinformation.
public getUrl ( ) : string
Résultat string

getUrlExpression() public méthode

Returns expression for url.
public getUrlExpression ( ) : string
Résultat string

getWebspace() public méthode

Returns the webspace for this PortalInformation.
public getWebspace ( ) : Webspace
Résultat Webspace

getWebspaceKey() public méthode

Returns key of webspace.
public getWebspaceKey ( )

isMain() public méthode

Returns true if url is main.
public isMain ( ) : boolean
Résultat boolean

setAnalyticsKey() public méthode

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

setLocalization() public méthode

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

setMain() public méthode

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

setPortal() public méthode

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

setPriority() public méthode

public setPriority ( integer $priority )
$priority integer

setRedirect() public méthode

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

setSegment() public méthode

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

setType() public méthode

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

setUrl() public méthode

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

setUrlExpression() public méthode

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

setWebspace() public méthode

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

toArray() public méthode

public toArray ( $depth = null )