Store
in component
Gives information about stores. Results are cached per store.
Table of Contents
Properties
Methods
- getStoreConfig() : Config
- Returns the store settings.
- getStoreInfo() : array<string|int, mixed>
- Returns store information: 'store_name', 'sender', 'store_url', 'store_login_url'.
- __construct() : mixed
- Loads store information and settings.
Properties
$cache
public
static mixed
$cache
= array()
$config
public
mixed
$config
$data
public
mixed
$data
= array()
$db
public
mixed
$db
$registry
public
mixed
$registry
Methods
getStoreConfig()
Returns the store settings.
public
static getStoreConfig(mixed $store_id) : Config
$store_id — store ID.
Parameters
- $store_id : mixed
Return values
ConfiggetStoreInfo()
Returns store information: 'store_name', 'sender', 'store_url', 'store_login_url'.
public
static getStoreInfo(mixed $store_id) : array<string|int, mixed>
$store_id — store ID.
Parameters
- $store_id : mixed
Return values
array<string|int, mixed>__construct()
Loads store information and settings.
protected
__construct([mixed $store_id = 0 ]) : mixed
$store_id — store ID.
Parameters
- $store_id : mixed = 0