eZPublishCommunityProject  2013.9
eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener Class Reference

SiteAccess match listener. More...

+ Inheritance diagram for eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener:
+ Collaboration diagram for eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener:

Public Member Functions

 __construct (ContainerInterface $container, RouterInterface $defaultRouter, UrlAliasGenerator $urlAliasGenerator)
 
 onSiteAccessMatch (PostSiteAccessMatchEvent $event)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Private Member Functions

 generateViewParametersArray ($vpString)
 Generates the view parameters array from the view parameters string. More...
 
 getViewParameters ($pathinfo)
 Extracts view parameters from $pathinfo. More...
 

Private Attributes

 $container
 
 $defaultRouter
 
 $urlAliasGenerator
 

Detailed Description

SiteAccess match listener.

Constructor & Destructor Documentation

eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::__construct ( ContainerInterface  $container,
RouterInterface  $defaultRouter,
UrlAliasGenerator  $urlAliasGenerator 
)

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::generateViewParametersArray (   $vpString)
private

Generates the view parameters array from the view parameters string.

Parameters
$vpString
Returns
array

Referenced by eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener\getViewParameters(), and eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener\onSiteAccessMatch().

static eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::getSubscribedEvents ( )
static
eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::getViewParameters (   $pathinfo)
private

Extracts view parameters from $pathinfo.

In the pathinfo, view parameters are in the form /(param_name)/param_value.

Parameters
string$pathinfo
Returns
array First element is the cleaned up pathinfo (without the view parameters string). Second element is the view parameters hash. Third element is the view parameters string (e.g. /(foo)/bar)

Referenced by eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener\onSiteAccessMatch().

eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::onSiteAccessMatch ( PostSiteAccessMatchEvent  $event)

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::$container
private
eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::$defaultRouter
private
eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::$urlAliasGenerator
private

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