PHP 클래스 eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator

또한 보기: eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter
상속: extends eZ\Publish\Core\MVC\Symfony\Routing\Generator
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__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