PHP Класс Aimeos\Shop\Base\Locale

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( Illuminate\Contracts\Config\Repository $config ) Initializes the 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 object
public __construct ( Illuminate\Contracts\Config\Repository $config )
$config Illuminate\Contracts\Config\Repository Configuration object

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