PHP Class Sulu\Component\Webspace\Url

Inheritance: implements Sulu\Component\Util\ArrayableInterface
显示文件 Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( $url = null, $environment = null )
getAnalyticsKey ( ) : string Returns the analytics key.
getCountry ( ) : string Returns the country to which this url leads.
getEnvironment ( ) : string Returns the environment.
getLanguage ( ) : string Returns the language to which this url leads.
getRedirect ( ) : string Returns the redirect url.
getSegment ( ) : string Returns the segment to which this url leads.
getUrl ( ) : string Returns the url.
isMain ( ) : boolean Return main flag.
setAnalyticsKey ( string $analyticsKey ) Sets the analytics key for this url.
setCountry ( string $country ) Sets the country to which this url leads.
setEnvironment ( string $environment ) Sets the environment.
setLanguage ( string $language ) Sets the language to which this url leads.
setMain ( boolean $main ) Sets main flag.
setRedirect ( string $redirect ) Sets the redirect for this url.
setSegment ( string $segment ) Sets the segment to which this url leads.
setUrl ( string $url ) Sets the url.
toArray ( $depth = null )

Method Details

__construct() public method

public __construct ( $url = null, $environment = null )

getAnalyticsKey() public method

Returns the analytics key.
public getAnalyticsKey ( ) : string
return string

getCountry() public method

Returns the country to which this url leads.
public getCountry ( ) : string
return string

getEnvironment() public method

Returns the environment.
public getEnvironment ( ) : string
return string

getLanguage() public method

Returns the language to which this url leads.
public getLanguage ( ) : string
return string

getRedirect() public method

Returns the redirect url.
public getRedirect ( ) : string
return string

getSegment() public method

Returns the segment to which this url leads.
public getSegment ( ) : string
return string

getUrl() public method

Returns the url.
public getUrl ( ) : string
return string

isMain() public method

Return main flag.
public isMain ( ) : boolean
return boolean

setAnalyticsKey() public method

Sets the analytics key for this url.
public setAnalyticsKey ( string $analyticsKey )
$analyticsKey string

setCountry() public method

Sets the country to which this url leads.
public setCountry ( string $country )
$country string

setEnvironment() public method

Sets the environment.
public setEnvironment ( string $environment )
$environment string

setLanguage() public method

Sets the language to which this url leads.
public setLanguage ( string $language )
$language string

setMain() public method

Sets main flag.
public setMain ( boolean $main )
$main boolean

setRedirect() public method

Sets the redirect for this url.
public setRedirect ( string $redirect )
$redirect string

setSegment() public method

Sets the segment to which this url leads.
public setSegment ( string $segment )
$segment string

setUrl() public method

Sets the url.
public setUrl ( string $url )
$url string

toArray() public method

public toArray ( $depth = null )