PHP Класс eZ\Publish\Core\MVC\Symfony\Templating\GlobalHelper

Container is injected to be sure to lazy load underlying services and to avoid scope conflict.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$locationService eZ\Publish\API\Repository\LocationService
$router Symfony\Component\Routing\RouterInterface
$translationHelper eZ\Publish\Core\Helper\TranslationHelper

Открытые методы

Метод Описание
__construct ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, eZ\Publish\API\Repository\LocationService $locationService, Symfony\Component\Routing\RouterInterface $router, TranslationHelper $translationHelper )
getAvailableLanguages ( ) : array Returns the list of available languages.
getConfigResolver ( ) : eZ\Publish\Core\MVC\ConfigResolverInterface Returns the config resolver.
getRequestedUriString ( ) : string Returns the requested URI string (aka semanticPathInfo).
getRootLocation ( ) : eZ\Publish\API\Repository\Values\Content\Location Returns the root location.
getSiteaccess ( ) : SiteAccess | null Returns the current siteaccess.
getSystemUriString ( ) : null | string Returns the "system" URI string.
getTranslationSiteAccess ( string $language ) : null | string Returns the translation SiteAccess for $language, or null if it cannot be found.
getViewParameters ( ) : array | null Returns the view parameters as a hash.
getViewParametersString ( ) : string Returns the view parameters as a string.

Описание методов

__construct() публичный Метод

public __construct ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, eZ\Publish\API\Repository\LocationService $locationService, Symfony\Component\Routing\RouterInterface $router, TranslationHelper $translationHelper )
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$locationService eZ\Publish\API\Repository\LocationService
$router Symfony\Component\Routing\RouterInterface
$translationHelper eZ\Publish\Core\Helper\TranslationHelper

getAvailableLanguages() публичный Метод

Returns the list of available languages.
public getAvailableLanguages ( ) : array
Результат array

getConfigResolver() публичный Метод

Returns the config resolver.
public getConfigResolver ( ) : eZ\Publish\Core\MVC\ConfigResolverInterface
Результат eZ\Publish\Core\MVC\ConfigResolverInterface

getRequestedUriString() публичный Метод

Returns the requested URI string (aka semanticPathInfo).
public getRequestedUriString ( ) : string
Результат string

getRootLocation() публичный Метод

Returns the root location.
public getRootLocation ( ) : eZ\Publish\API\Repository\Values\Content\Location
Результат eZ\Publish\API\Repository\Values\Content\Location

getSiteaccess() публичный Метод

Returns the current siteaccess.
public getSiteaccess ( ) : SiteAccess | null
Результат eZ\Publish\Core\MVC\Symfony\SiteAccess | null

getSystemUriString() публичный Метод

System URI is the URI for internal content controller. E.g. /content/location/123/full. If current route is not an URLAlias, then the current Pathinfo is returned.
public getSystemUriString ( ) : null | string
Результат null | string

getTranslationSiteAccess() публичный Метод

Returns the translation SiteAccess for $language, or null if it cannot be found.
public getTranslationSiteAccess ( string $language ) : null | string
$language string
Результат null | string

getViewParameters() публичный Метод

Returns the view parameters as a hash.
public getViewParameters ( ) : array | null
Результат array | null

getViewParametersString() публичный Метод

e.g. /(foo)/bar.
public getViewParametersString ( ) : string
Результат string

Описание свойств

$configResolver защищенное свойство

protected ConfigResolverInterface,eZ\Publish\Core\MVC $configResolver
Результат eZ\Publish\Core\MVC\ConfigResolverInterface

$locationService защищенное свойство

protected LocationService,eZ\Publish\API\Repository $locationService
Результат eZ\Publish\API\Repository\LocationService

$router защищенное свойство

protected RouterInterface,Symfony\Component\Routing $router
Результат Symfony\Component\Routing\RouterInterface

$translationHelper защищенное свойство

protected TranslationHelper,eZ\Publish\Core\Helper $translationHelper
Результат eZ\Publish\Core\Helper\TranslationHelper