PHP Class Sulu\Component\Webspace\Manager\WebspaceManager

Inheritance: implements Sulu\Component\Webspace\Manager\WebspaceManagerInterface
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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 méthode

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

findPortalInformationByUrl() public méthode

public findPortalInformationByUrl ( $url, $environment )

findPortalInformationsByPortalKeyAndLocale() public méthode

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

findPortalInformationsByUrl() public méthode

public findPortalInformationsByUrl ( $url, $environment )

findPortalInformationsByWebspaceKeyAndLocale() public méthode

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

findUrlByResourceLocator() public méthode

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

findUrlsByResourceLocator() public méthode

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

findWebspaceByKey() public méthode

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

getAllLocalesByWebspaces() public méthode

getAllLocalizations() public méthode

public getAllLocalizations ( )

getPortalInformations() public méthode

public getPortalInformations ( $environment )

getPortalInformationsByWebspaceKey() public méthode

public getPortalInformationsByWebspaceKey ( $environment, $webspaceKey )

getPortals() public méthode

public getPortals ( )

getUrls() public méthode

public getUrls ( $environment )

getWebspaceCollection() public méthode

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

isFromDomain() protected méthode

Url is from domain.
protected isFromDomain ( $url, $domain ) : array
$url
$domain
Résultat array

matchUrl() protected méthode

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

setOptions() public méthode

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