PHP 클래스 Sulu\Component\Webspace\Manager\WebspaceManager

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

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Config\Loader\LoaderInterface $loader, Sulu\Component\Webspace\Url\ReplacerInterface $urlReplacer, $options = [] )
findPortalByKey ( string $key ) : Portal Returns the portal with the given key.
findPortalInformationByUrl ( $url, $environment )
findPortalInformationsByPortalKeyAndLocale ( $portalKey, $locale, $environment )
findPortalInformationsByUrl ( $url, $environment )
findPortalInformationsByWebspaceKeyAndLocale ( $webspaceKey, $locale, $environment )
findUrlByResourceLocator ( $resourceLocator, $environment, $languageCode, $webspaceKey = null, $domain = null, $scheme = 'http' )
findUrlsByResourceLocator ( $resourceLocator, $environment, $languageCode, $webspaceKey = null, $domain = null, $scheme = 'http' )
findWebspaceByKey ( $key ) : Webspace Returns the webspace with the given key.
getAllLocalesByWebspaces ( )
getAllLocalizations ( )
getPortalInformations ( $environment )
getPortalInformationsByWebspaceKey ( $environment, $webspaceKey )
getPortals ( )
getUrls ( $environment )
getWebspaceCollection ( ) : WebspaceCollection Returns all the webspaces managed by this specific instance.
setOptions ( $options ) Sets the options for the manager.

보호된 메소드들

메소드 설명
isFromDomain ( $url, $domain ) : array Url is from domain.
matchUrl ( string $url, string $portalUrl ) : boolean Matches given url with portal-url.

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\Config\Loader\LoaderInterface $loader, Sulu\Component\Webspace\Url\ReplacerInterface $urlReplacer, $options = [] )
$loader Symfony\Component\Config\Loader\LoaderInterface
$urlReplacer Sulu\Component\Webspace\Url\ReplacerInterface

findPortalByKey() 공개 메소드

Returns the portal with the given key.
public findPortalByKey ( string $key ) : Portal
$key string The key to search for
리턴 Sulu\Component\Webspace\Portal

findPortalInformationByUrl() 공개 메소드

public findPortalInformationByUrl ( $url, $environment )

findPortalInformationsByPortalKeyAndLocale() 공개 메소드

public findPortalInformationsByPortalKeyAndLocale ( $portalKey, $locale, $environment )

findPortalInformationsByUrl() 공개 메소드

public findPortalInformationsByUrl ( $url, $environment )

findPortalInformationsByWebspaceKeyAndLocale() 공개 메소드

public findPortalInformationsByWebspaceKeyAndLocale ( $webspaceKey, $locale, $environment )

findUrlByResourceLocator() 공개 메소드

public findUrlByResourceLocator ( $resourceLocator, $environment, $languageCode, $webspaceKey = null, $domain = null, $scheme = 'http' )

findUrlsByResourceLocator() 공개 메소드

public findUrlsByResourceLocator ( $resourceLocator, $environment, $languageCode, $webspaceKey = null, $domain = null, $scheme = 'http' )

findWebspaceByKey() 공개 메소드

Returns the webspace with the given key.
public findWebspaceByKey ( $key ) : Webspace
$key string The key to search for
리턴 Sulu\Component\Webspace\Webspace

getAllLocalesByWebspaces() 공개 메소드

getAllLocalizations() 공개 메소드

public getAllLocalizations ( )

getPortalInformations() 공개 메소드

public getPortalInformations ( $environment )

getPortalInformationsByWebspaceKey() 공개 메소드

public getPortalInformationsByWebspaceKey ( $environment, $webspaceKey )

getPortals() 공개 메소드

public getPortals ( )

getUrls() 공개 메소드

public getUrls ( $environment )

getWebspaceCollection() 공개 메소드

Returns all the webspaces managed by this specific instance.
public getWebspaceCollection ( ) : WebspaceCollection
리턴 WebspaceCollection

isFromDomain() 보호된 메소드

Url is from domain.
protected isFromDomain ( $url, $domain ) : array
$url
$domain
리턴 array

matchUrl() 보호된 메소드

Matches given url with portal-url.
protected matchUrl ( string $url, string $portalUrl ) : boolean
$url string
$portalUrl string
리턴 boolean

setOptions() 공개 메소드

Sets the options for the manager.
public setOptions ( $options )
$options