PHP 클래스 eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\URIElement

상속: implements eZ\Publish\Core\MVC\Symfony\SiteAccess\VersatileMatcher, implements eZ\Publish\Core\MVC\Symfony\SiteAccess\URILexer
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( integer | array $elementNumber ) Constructor.
__sleep ( )
analyseLink ( string $linkUri ) : string Analyses $linkUri when generating a link to a route, in order to have the siteaccess part back in the URI.
analyseURI ( string $uri ) : string Analyses $uri and removes the siteaccess part, if needed.
getName ( )
getRequest ( ) : SimplifiedRequest
match ( ) : string | false Returns matching Siteaccess.
reverseMatch ( string $siteAccessName ) : URIElement | null Returns matcher object corresponding to $siteAccessName or null if non applicable.
setRequest ( SimplifiedRequest $request ) Injects the request object to match against.

보호된 메소드들

메소드 설명
getURIElements ( ) : array Returns URI elements as an array.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( integer | array $elementNumber )
$elementNumber integer | array Number of elements to take into account.

__sleep() 공개 메소드

public __sleep ( )

analyseURI() 공개 메소드

Analyses $uri and removes the siteaccess part, if needed.
public analyseURI ( string $uri ) : string
$uri string The original URI
리턴 string The modified URI

getName() 공개 메소드

public getName ( )

getRequest() 공개 메소드

public getRequest ( ) : SimplifiedRequest
리턴 eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest

getURIElements() 보호된 메소드

Returns URI elements as an array.
protected getURIElements ( ) : array
리턴 array

match() 공개 메소드

Returns matching Siteaccess.
public match ( ) : string | false
리턴 string | false Siteaccess matched or false.

reverseMatch() 공개 메소드

Limitation: If the element number is > 1, we cannot predict how URI segments are expected to be built. So we expect "_" will be reversed to "/" e.g. foo_bar => foo/bar with elementNumber == 2 Hence if number of elements is different than the element number, we report as non matched.
public reverseMatch ( string $siteAccessName ) : URIElement | null
$siteAccessName string
리턴 URIElement | null

setRequest() 공개 메소드

Injects the request object to match against.
public setRequest ( SimplifiedRequest $request )
$request eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest