Method | Description | |
---|---|---|
__construct ( Illuminate\Session\Store $session, |
Initializes the object | |
get ( boolean $locale = true, string $type = 'frontend' ) : Aimeos\MShop\Context\Item\Iface | Returns the current context |
Method | Description | |
---|---|---|
addCache ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the cache object to the context | |
addDatabaseManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the database manager object to the context | |
addFilesystemManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the filesystem manager object to the context | |
addGroups ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the group IDs if available | |
addLogger ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the logger object to the context | |
addMailer ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the mailer object to the context | |
addMessageQueueManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the message queue manager object to the context | |
addSession ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the session object to the context | |
addUser ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | Adds the user ID and name if available |
public __construct ( Illuminate\Session\Store $session, |
||
$session | Illuminate\Session\Store | Laravel session object |
$config | Configuration object | |
$locale | Locale object | |
$i18n | Internationalisation object |
protected addCache ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object including config |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
protected addDatabaseManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
protected addFilesystemManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
protected addGroups ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
protected addLogger ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
protected addMailer ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
protected addMessageQueueManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
protected addSession ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
protected addUser ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface | ||
$context | Aimeos\MShop\Context\Item\Iface | Context object |
return | Aimeos\MShop\Context\Item\Iface | Modified context object |
public get ( boolean $locale = true, string $type = 'frontend' ) : Aimeos\MShop\Context\Item\Iface | ||
$locale | boolean | True to add locale object to context, false if not (deprecated, use \Aimeos\Shop\Base\Locale) |
$type | string | Configuration type, i.e. "frontend" or "backend" (deprecated, use \Aimeos\Shop\Base\Config) |
return | Aimeos\MShop\Context\Item\Iface | Context object |