PHP Интерфейс eZ\Publish\Core\MVC\Symfony\SiteAccess\VersatileMatcher

VersatileMatcher makes it possible to do a reverse match (e.g. "Is this matcher knows provided SiteAccess name?"). Versatile matchers enable cross-siteAccess linking.
Наследование: extends eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher
Показать файл Открыть проект

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

Метод Описание
getRequest ( ) : SimplifiedRequest Returns the SimplifiedRequest object corresponding to the reverse match.
reverseMatch ( string $siteAccessName ) : eZ\Publish\Core\MVC\Symfony\SiteAccess\VersatileMatcher | null Returns matcher object corresponding to $siteAccessName or null if non applicable.

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

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

This request object can then be used to build a link to the "reverse matched" SiteAccess.
См. также: reverseMatch()
public getRequest ( ) : SimplifiedRequest
Результат eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest

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

Note: VersatileMatcher objects always receive a request with cleaned up pathinfo (i.e. no SiteAccess part inside).
public reverseMatch ( string $siteAccessName ) : eZ\Publish\Core\MVC\Symfony\SiteAccess\VersatileMatcher | null
$siteAccessName string
Результат eZ\Publish\Core\MVC\Symfony\SiteAccess\VersatileMatcher | null Typically the current matcher, with updated request.