Class

eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex

abstract class Regex implements Matcher

Methods

__construct(string $regex, int $itemNumber)

Constructor.

__sleep()

string|false match()

Returns matched Siteaccess or false if no siteaccess could be matched.

setRequest(SimplifiedRequest $request)

Injects the request object to match against.

setMatchElement(string $element)

Injects element to match against with the regexp.

Details

at line 53
public __construct(string $regex, int $itemNumber)

Constructor.

Parameters

string $regex Regular Expression to use.
int $itemNumber Item number to pick in regex.

at line 59
public __sleep()

at line 64
public string|false match()

Returns matched Siteaccess or false if no siteaccess could be matched.

Return Value

string|false

at line 96
public setRequest(SimplifiedRequest $request)

Injects the request object to match against.

Parameters

SimplifiedRequest $request

at line 106
public setMatchElement(string $element)

Injects element to match against with the regexp.

Parameters

string $element