PHP Class eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map

Inheritance: implements eZ\Publish\Core\MVC\Symfony\SiteAccess\VersatileMatcher
ファイルを表示 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$key string String that will be looked up in the map.
$map array Map used for the matching.
$request eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest
$reverseMap array Map used for reverse matching.

Public Methods

Method Description
__construct ( array $map ) Constructor.
__sleep ( ) : array Do not serialize the Siteaccess configuration in order to reduce ESI request URL size.
getMapKey ( ) : string
getRequest ( )
match ( ) : string | false Returns matching Siteaccess.
reverseMatch ( string $siteAccessName ) : eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher | Map | null
setMapKey ( string $key ) Injects the key that will be used for matching against the map configuration.
setRequest ( SimplifiedRequest $request )

Private Methods

Method Description
getReverseMap ( $defaultSiteAccess )

Method Details

__construct() public method

Constructor.
public __construct ( array $map )
$map array Map used for matching.

__sleep() public method

Do not serialize the Siteaccess configuration in order to reduce ESI request URL size.
See also: https://jira.ez.no/browse/EZP-23168
public __sleep ( ) : array
return array

getMapKey() public method

public getMapKey ( ) : string
return string

getRequest() public method

public getRequest ( )

match() public method

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

reverseMatch() public method

public reverseMatch ( string $siteAccessName ) : eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher | Map | null
$siteAccessName string
return eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher | Map | null

setMapKey() public method

Injects the key that will be used for matching against the map configuration.
public setMapKey ( string $key )
$key string

setRequest() public method

public setRequest ( SimplifiedRequest $request )
$request eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest

Property Details

$key protected_oe property

String that will be looked up in the map.
protected string $key
return string

$map protected_oe property

Map used for the matching.
protected array $map
return array

$request protected_oe property

protected SimplifiedRequest,eZ\Publish\Core\MVC\Symfony\Routing $request
return eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest

$reverseMap protected_oe property

Map used for reverse matching.
protected array $reverseMap
return array