PHP Класс Aimeos\ShopBundle\Service\Locale

Показать файл Открыть проект

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

Метод Описание
__construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\DependencyInjection\Container $container ) Initializes the locale factory object
get ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Locale\Item\Iface Returns the locale item for the current request
getBackend ( Aimeos\MShop\Context\Item\Iface $context, string $site ) : Aimeos\MShop\Locale\Item\Iface Returns the locale item for the current request

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

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

Initializes the locale factory object
public __construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\DependencyInjection\Container $container )
$requestStack Symfony\Component\HttpFoundation\RequestStack Current request stack
$container Symfony\Component\DependencyInjection\Container Container object to access parameters

get() публичный метод

Returns the locale item for the current request
public get ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Locale\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
Результат Aimeos\MShop\Locale\Item\Iface Locale item object

getBackend() публичный метод

Returns the locale item for the current request
public getBackend ( Aimeos\MShop\Context\Item\Iface $context, string $site ) : Aimeos\MShop\Locale\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
$site string Unique site code
Результат Aimeos\MShop\Locale\Item\Iface Locale item object