PHP 클래스 Sulu\Component\Webspace\Webspace

상속: implements Sulu\Component\Util\ArrayableInterface
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
addDefaultTemplate ( string $type, string $template ) Add a new default template for given type.
addLocalization ( Localization $localization ) Adds a localization to the webspace.
addPortal ( Portal $portal ) Adds a portal to the webspace.
addSegment ( Segment $segment ) Adds a segment to the webspace.
addTemplate ( string $type, string $template ) Add a new template for given type.
getAllLocalizations ( ) : Localization[] Returns a list of all localizations and sublocalizations.
getDefaultLocalization ( ) : Localization Returns the default localization for this webspace.
getDefaultSegment ( ) : Segment Returns the default segment for this webspace.
getDefaultTemplate ( string $type ) : string | null Returns a error template for given code.
getDefaultTemplates ( ) : string Returns a array of default template.
getKey ( ) : string Returns the key of the webspace.
getLocalization ( string $localization ) : Localization | null Returns the localization object for a given localization string.
getLocalizations ( ) : Localization[] Returns the localizations of this webspace.
getName ( ) : string Returns the name of the webspace.
getNavigation ( ) : Navigation
getPortals ( ) : Portal[] Returns the portals of this webspace.
getResourceLocatorStrategy ( ) : string Returns resource-locator strategy.
getSecurity ( ) : Security Returns the security system.
getSegments ( ) : Segment[] Returns the segments of this webspace.
getTemplate ( string $type ) : string | null Returns a template for the given type.
getTemplates ( ) : string[] Returns an array of templates.
getTheme ( ) : string Returns the theme for this portal.
getXDefaultLocalization ( ) : Localization Returns the x-default localization for this webspace.
hasDomain ( string $domain, string $environment ) : boolean Returns false if domain not exists in webspace.
setDefaultLocalization ( Localization $defaultLocalization ) Sets the default localization for this webspace.
setDefaultSegment ( Segment $defaultSegment ) Sets the default segment of this webspace.
setKey ( string $key ) Sets the key of the webspace.
setLocalizations ( Localization[] $localizations ) Returns the localizations of this webspace.
setName ( string $name ) Sets the name of the webspace.
setNavigation ( Navigation $navigation )
setPortals ( Portal[] $portals ) Sets the portals of this webspace.
setResourceLocatorStrategy ( string $resourceLocatorStrategy ) Set resource-locator strategy.
setSecurity ( Security $security ) Sets the security system.
setSegments ( Segment[] $segments ) Sets the segments of this webspace.
setTheme ( string | null $theme = null ) Sets the theme for this portal.
toArray ( $depth = null )

메소드 상세

addDefaultTemplate() 공개 메소드

Add a new default template for given type.
public addDefaultTemplate ( string $type, string $template )
$type string
$template string

addLocalization() 공개 메소드

Adds a localization to the webspace.
public addLocalization ( Localization $localization )
$localization Sulu\Component\Localization\Localization

addPortal() 공개 메소드

Adds a portal to the webspace.
public addPortal ( Portal $portal )
$portal Portal

addSegment() 공개 메소드

Adds a segment to the webspace.
public addSegment ( Segment $segment )
$segment Segment

addTemplate() 공개 메소드

Add a new template for given type.
public addTemplate ( string $type, string $template )
$type string
$template string

getAllLocalizations() 공개 메소드

Returns a list of all localizations and sublocalizations.
public getAllLocalizations ( ) : Localization[]
리턴 Sulu\Component\Localization\Localization[]

getDefaultLocalization() 공개 메소드

Returns the default localization for this webspace.
public getDefaultLocalization ( ) : Localization
리턴 Sulu\Component\Localization\Localization

getDefaultSegment() 공개 메소드

Returns the default segment for this webspace.
public getDefaultSegment ( ) : Segment
리턴 Segment

getDefaultTemplate() 공개 메소드

Returns a error template for given code.
public getDefaultTemplate ( string $type ) : string | null
$type string
리턴 string | null

getDefaultTemplates() 공개 메소드

Returns a array of default template.
public getDefaultTemplates ( ) : string
리턴 string

getKey() 공개 메소드

Returns the key of the webspace.
public getKey ( ) : string
리턴 string

getLocalization() 공개 메소드

Returns the localization object for a given localization string.
public getLocalization ( string $localization ) : Localization | null
$localization string
리턴 Sulu\Component\Localization\Localization | null

getLocalizations() 공개 메소드

Returns the localizations of this webspace.
public getLocalizations ( ) : Localization[]
리턴 Sulu\Component\Localization\Localization[]

getName() 공개 메소드

Returns the name of the webspace.
public getName ( ) : string
리턴 string

getNavigation() 공개 메소드

public getNavigation ( ) : Navigation
리턴 Navigation

getPortals() 공개 메소드

Returns the portals of this webspace.
public getPortals ( ) : Portal[]
리턴 Portal[]

getResourceLocatorStrategy() 공개 메소드

Returns resource-locator strategy.

getSecurity() 공개 메소드

Returns the security system.
public getSecurity ( ) : Security
리턴 Security

getSegments() 공개 메소드

Returns the segments of this webspace.
public getSegments ( ) : Segment[]
리턴 Segment[]

getTemplate() 공개 메소드

Returns a template for the given type.
public getTemplate ( string $type ) : string | null
$type string
리턴 string | null

getTemplates() 공개 메소드

Returns an array of templates.
public getTemplates ( ) : string[]
리턴 string[]

getTheme() 공개 메소드

Returns the theme for this portal.
public getTheme ( ) : string
리턴 string

getXDefaultLocalization() 공개 메소드

Returns the x-default localization for this webspace.
public getXDefaultLocalization ( ) : Localization
리턴 Sulu\Component\Localization\Localization

hasDomain() 공개 메소드

Returns false if domain not exists in webspace.
public hasDomain ( string $domain, string $environment ) : boolean
$domain string
$environment string
리턴 boolean

setDefaultLocalization() 공개 메소드

Sets the default localization for this webspace.
public setDefaultLocalization ( Localization $defaultLocalization )
$defaultLocalization Sulu\Component\Localization\Localization

setDefaultSegment() 공개 메소드

Sets the default segment of this webspace.
public setDefaultSegment ( Segment $defaultSegment )
$defaultSegment Segment

setKey() 공개 메소드

Sets the key of the webspace.
public setKey ( string $key )
$key string

setLocalizations() 공개 메소드

Returns the localizations of this webspace.
public setLocalizations ( Localization[] $localizations )
$localizations Sulu\Component\Localization\Localization[]

setName() 공개 메소드

Sets the name of the webspace.
public setName ( string $name )
$name string

setNavigation() 공개 메소드

public setNavigation ( Navigation $navigation )
$navigation Navigation

setPortals() 공개 메소드

Sets the portals of this webspace.
public setPortals ( Portal[] $portals )
$portals Portal[]

setResourceLocatorStrategy() 공개 메소드

Set resource-locator strategy.
public setResourceLocatorStrategy ( string $resourceLocatorStrategy )
$resourceLocatorStrategy string

setSecurity() 공개 메소드

Sets the security system.
public setSecurity ( Security $security )
$security Security

setSegments() 공개 메소드

Sets the segments of this webspace.
public setSegments ( Segment[] $segments )
$segments Segment[]

setTheme() 공개 메소드

Sets the theme for this portal.
public setTheme ( string | null $theme = null )
$theme string | null this parameter is options

toArray() 공개 메소드

public toArray ( $depth = null )