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

All classes extending this one must implement a NAME class constant.
Inheritance: implements eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\CompoundInterface, implements eZ\Publish\Core\MVC\Symfony\SiteAccess\URILexer
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$config Collection of rules using the Compound matcher.
$matcherBuilder eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface
$matchersMap array Consists of an array of matchers, grouped by ruleset (so array of array of matchers).
$request eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest
$subMatchers eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher[]

Public Methods

Method Description
__construct ( array $config )
__sleep ( ) Serialization occurs when serializing the siteaccess for subrequests.
analyseLink ( $linkUri )
analyseURI ( $uri )
getName ( ) : string Returns the matcher's name.
getRequest ( )
getSubMatchers ( )
setMatcherBuilder ( eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface $matcherBuilder )
setRequest ( SimplifiedRequest $request )
setSubMatchers ( array $subMatchers )

Method Details

__construct() public method

public __construct ( array $config )
$config array

__sleep() public method

Serialization occurs when serializing the siteaccess for subrequests.
See also: eZ\Bundle\EzPublishCoreBundle\Fragment\FragmentUriGenerator::generateFragmentUri()
public __sleep ( )

analyseURI() public method

public analyseURI ( $uri )

getName() public method

This information will be stored in the SiteAccess object itself to quickly be able to identify the matcher type.
public getName ( ) : string
return string

getRequest() public method

public getRequest ( )

getSubMatchers() public method

public getSubMatchers ( )

setMatcherBuilder() public method

public setMatcherBuilder ( eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface $matcherBuilder )
$matcherBuilder eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface

setRequest() public method

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

setSubMatchers() public method

public setSubMatchers ( array $subMatchers )
$subMatchers array

Property Details

$config protected property

Collection of rules using the Compound matcher.
protected $config

$matcherBuilder protected property

protected MatcherBuilderInterface,eZ\Publish\Core\MVC\Symfony\SiteAccess $matcherBuilder
return eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilderInterface

$matchersMap protected property

Consists of an array of matchers, grouped by ruleset (so array of array of matchers).
protected array $matchersMap
return array

$request protected property

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

$subMatchers protected property

protected Matcher[],eZ\Publish\Core\MVC\Symfony\SiteAccess $subMatchers
return eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher[]