GlobalContext
Context class with data, required on all views in the shop.
Namespace
Ceres\Contexts
Implements
Type | Name | Description |
---|---|---|
|
Passthrough variables from the controller. |
|
|
The configuration for the shop. |
|
|
The http request. |
|
|
The language code of the current language. |
|
|
Deprecated: since 5.0.20 will be removed in 6.0.0 |
|
|
Defines if the meta data should have the attrribute content set to "NOINDEX". |
|
|
Deprecated: since 5.0.20 will be removed in 6.0.0 |
|
|
Deprecated: since 5.0.20 will be removed in 6.0.0 |
|
|
Categories for the navigation. |
|
|
List of all parent categories including current category. |
|
|
List of all notifications stored in the session. |
|
|
The basket object. |
|
|
The webstore configuration. |
|
|
The name and the symbol for the currently selected currency. |
|
|
Defines if net prices should be shown. |
|
|
Deprecated: since 4.3 Use ShopUrls::$home instead |
|
|
Represents the system setting for splitting bundles. |
|
|
Deprecated: since 4.5 Use ShopUrls::getTemplateType() instead |
|
|
Defines if the shop is opened in ShopBuilder mode. |
|
|
Defines if the shop is loaded in safe mode. |
|
|
Array of CSS classes to apply to the body. |
|
|
Hash of the latest plugin deployment. |
|
|
Key for the assets to be loaded. |
Methods
public init($params)
Type |
Name |
Description |
|
public getParam($key, $defaultValue = null):string
Get value from $params, filtered by the key.
Type |
Name |
Description |
|
Key to search for in the $params. |
|
|
Optional: If set, the method will return the $defaultValue, when there is no value for the given $key. (Default: null) |