PHP Класс Sulu\Component\Webspace\Manager\WebspaceManager

Наследование: implements Sulu\Component\Webspace\Manager\WebspaceManagerInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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