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

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

Protected Properties

Property Type Description
$element string Element that will be matched against the regex.
$itemNumber string Item number to pick in regex.
$matchedSiteAccess string
$regex string Regular expression used for matching.
$request eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest

Public Methods

Method Description
__construct ( string $regex, integer $itemNumber ) Constructor.
__sleep ( )
match ( )
setMatchElement ( string $element ) Injects element to match against with the regexp.
setRequest ( SimplifiedRequest $request ) Injects the request object to match against.

Protected Methods

Method Description
getMatchedSiteAccess ( ) : string | boolean Returns matched SiteAccess.

Method Details

__construct() public method

Constructor.
public __construct ( string $regex, integer $itemNumber )
$regex string Regular Expression to use.
$itemNumber integer Item number to pick in regex.

__sleep() public method

public __sleep ( )

getMatchedSiteAccess() protected method

Returns matched SiteAccess.
protected getMatchedSiteAccess ( ) : string | boolean
return string | boolean

match() public method

public match ( )

setMatchElement() public method

Injects element to match against with the regexp.
public setMatchElement ( string $element )
$element string

setRequest() public method

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

Property Details

$element protected_oe property

Element that will be matched against the regex.
protected string $element
return string

$itemNumber protected_oe property

Item number to pick in regex.
protected string $itemNumber
return string

$matchedSiteAccess protected_oe property

protected string $matchedSiteAccess
return string

$regex protected_oe property

Regular expression used for matching.
protected string $regex
return string

$request protected_oe property

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