eZPublishCommunityProject  2013.4
eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper Class Reference

Templating helper object globally accessible, through the "ezpublish" variable (in Twig). More...

+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper:

Public Member Functions

 __construct (ContainerInterface $container)
 
 getConfigResolver ()
 Returns the config resolver. More...
 
 getRequestedUriString ()
 Returns the requested URI string (aka semanticPathInfo). More...
 
 getSiteaccess ()
 Returns the current siteaccess. More...
 
 getViewParameters ()
 Returns the view parameters as a hash. More...
 
 getViewParametersString ()
 Returns the view parameters as a string. More...
 

Protected Attributes

 $container
 

Detailed Description

Templating helper object globally accessible, through the "ezpublish" variable (in Twig).

Container is injected to be sure to lazy load underlying services and to avoid scope conflict.

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper::__construct ( ContainerInterface  $container)

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper::getConfigResolver ( )

Returns the config resolver.

Returns
eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper::getRequestedUriString ( )

Returns the requested URI string (aka semanticPathInfo).

Returns
string
eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper::getSiteaccess ( )

Returns the current siteaccess.

Returns
|null
eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper::getViewParameters ( )

Returns the view parameters as a hash.

Returns
array|null
eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper::getViewParametersString ( )

Returns the view parameters as a string.

e.g. /(foo)/bar

Returns
string

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper::$container
protected

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