eZPublishCommunityProject  2012.12
eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex:

Public Member Functions

 __construct ($regex, $itemNumber)
 Constructor. More...
 
 match ()
 Returns matching Siteaccess. More...
 
 setMatchElement ($element)
 Injects element to match against with the regexp. More...
 
- Public Member Functions inherited from eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher
 getName ()
 Returns the matcher's name. More...
 
 setRequest (SimplifiedRequest $request)
 Injects the request object to match against. More...
 

Private Attributes

 $element
 
 $itemNumber
 
 $regex
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex::__construct (   $regex,
  $itemNumber 
)

Constructor.

Parameters
string$regexRegular Expression to use.
int$itemNumberItem number to pick in regex.

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex::match ( )

Returns matching Siteaccess.

Returns
string|false Siteaccess matched or false.

Implements eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher.

eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex::setMatchElement (   $element)

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex::$element
private
eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex::$itemNumber
private
eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex::$regex
private

The documentation for this class was generated from the following file: