PHP 클래스 Aimeos\ShopBundle\Service\Locale

파일 보기 프로젝트 열기: aimeos/aimeos-symfony2

공개 메소드들

메소드 설명
__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