PHP Class Sulu\Component\Webspace\Manager\WebspaceManager

Inheritance: implements Sulu\Component\Webspace\Manager\WebspaceManagerInterface
ファイルを表示 Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__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.

Protected Methods

Method Description
isFromDomain ( $url, $domain ) : array Url is from domain.
matchUrl ( string $url, string $portalUrl ) : boolean Matches given url with portal-url.

Method Details

__construct() public method

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() public method

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

findPortalInformationByUrl() public method

public findPortalInformationByUrl ( $url, $environment )

findPortalInformationsByPortalKeyAndLocale() public method

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

findPortalInformationsByUrl() public method

public findPortalInformationsByUrl ( $url, $environment )

findPortalInformationsByWebspaceKeyAndLocale() public method

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

findUrlByResourceLocator() public method

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

findUrlsByResourceLocator() public method

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

findWebspaceByKey() public method

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

getAllLocalesByWebspaces() public method

getAllLocalizations() public method

public getAllLocalizations ( )

getPortalInformations() public method

public getPortalInformations ( $environment )

getPortalInformationsByWebspaceKey() public method

public getPortalInformationsByWebspaceKey ( $environment, $webspaceKey )

getPortals() public method

public getPortals ( )

getUrls() public method

public getUrls ( $environment )

getWebspaceCollection() public method

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

isFromDomain() protected method

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

matchUrl() protected method

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

setOptions() public method

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