PHP Класс eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator

См. также: eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter
Наследование: extends eZ\Publish\Core\MVC\Symfony\Routing\Generator
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( eZ\Publish\API\Repository\Repository $repository, Symfony\Component\Routing\RouterInterface $defaultRouter, eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, array $unsafeCharMap = [] )
doGenerate ( eZ\Publish\API\Repository\Values\Content\Location $location, array $parameters ) : string Generates the URL from $urlResource and $parameters.
getPathPrefixByRootLocationId ( integer $rootLocationId, array $languages = null, string $siteaccess = null ) : string Returns path corresponding to $rootLocationId.
isUriPrefixExcluded ( string $uri ) : boolean Checks if passed URI has an excluded prefix, when a root location is defined.
loadLocation ( integer $locationId ) : Location Loads a location by its locationId, regardless to user limitations since the router is invoked BEFORE security (no user authenticated yet).
setExcludedUriPrefixes ( array $excludedUriPrefixes )
setRootLocationId ( integer $rootLocationId ) Injects current root locationId that will be used for link generation.

Описание методов

__construct() публичный Метод

public __construct ( eZ\Publish\API\Repository\Repository $repository, Symfony\Component\Routing\RouterInterface $defaultRouter, eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, array $unsafeCharMap = [] )
$repository eZ\Publish\API\Repository\Repository
$defaultRouter Symfony\Component\Routing\RouterInterface
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$unsafeCharMap array

doGenerate() публичный Метод

Entries in $parameters will be added in the query string.
public doGenerate ( eZ\Publish\API\Repository\Values\Content\Location $location, array $parameters ) : string
$location eZ\Publish\API\Repository\Values\Content\Location
$parameters array
Результат string

getPathPrefixByRootLocationId() публичный Метод

Returns path corresponding to $rootLocationId.
public getPathPrefixByRootLocationId ( integer $rootLocationId, array $languages = null, string $siteaccess = null ) : string
$rootLocationId integer
$languages array
$siteaccess string
Результат string

isUriPrefixExcluded() публичный Метод

Checks if passed URI has an excluded prefix, when a root location is defined.
public isUriPrefixExcluded ( string $uri ) : boolean
$uri string
Результат boolean

loadLocation() публичный Метод

Not to be used for link generation.
public loadLocation ( integer $locationId ) : Location
$locationId integer
Результат eZ\Publish\Core\Repository\Values\Content\Location

setExcludedUriPrefixes() публичный Метод

public setExcludedUriPrefixes ( array $excludedUriPrefixes )
$excludedUriPrefixes array

setRootLocationId() публичный Метод

Injects current root locationId that will be used for link generation.
public setRootLocationId ( integer $rootLocationId )
$rootLocationId integer