PHP Class Aimeos\Shop\Base\Locale

Show file Open project: aimeos/aimeos-laravel Class Usage Examples

Public Methods

Method Description
__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

Method Details

__construct() public method

Initializes the object
public __construct ( Illuminate\Contracts\Config\Repository $config )
$config Illuminate\Contracts\Config\Repository Configuration object

get() public method

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
return Aimeos\MShop\Locale\Item\Iface Locale item object

getBackend() public method

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
return Aimeos\MShop\Locale\Item\Iface Locale item object