Session
class Session extends Session
extends mfony\Component\HttpFoundation\Session\Session for adding some helpers
Class Session
Methods
No description
No description
Return current currency
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Set the cart to store in the current session.
Return the cart stored in the current session
Clear the current session cart, and store a new, empty one in the session.
No description
Set consumed coupons by the Customer
Get Customer consumed coupons
Get saved errored forms information
Save errored forms information
Details
at line 52
Lang|null
getLang(
bool $forceDefault = true)
at line 62
setLang(
Lang $lang)
at line 69
setCurrency(
Currency $currency)
at line 81
Currency
getCurrency(
bool $forceDefault = true)
Return current currency
at line 94
getAdminEditionCurrency()
at line 105
setAdminEditionCurrency($currencyId)
at line 115
Lang
getAdminEditionLang()
at line 130
$this
setAdminEditionLang(
Lang $lang)
at line 139
setCustomerUser(
UserInterface $user)
at line 149
UserInterface|null
getCustomerUser()
at line 154
clearCustomerUser()
at line 161
setAdminUser(
UserInterface $user)
at line 168
getAdminUser()
at line 173
clearAdminUser()
at line 180
setReturnToUrl($url)
at line 191
string
getReturnToUrl()
at line 205
$this
setSessionCart(
Cart $cart = null)
Set the cart to store in the current session.
at line 226
Cart
getSessionCart(
EventDispatcherInterface $dispatcher = null)
Return the cart stored in the current session
at line 275
clearSessionCart(
EventDispatcherInterface $dispatcher)
Clear the current session cart, and store a new, empty one in the session.
at line 297
Cart|null
getCart()
Return cart if it exists and is valid (checking customer)
at line 325
setOrder(
Order $order)
at line 335
Order
getOrder()
at line 354
$this
setConsumedCoupons(
array $couponsCode)
Set consumed coupons by the Customer
at line 366
array
getConsumedCoupons()
Get Customer consumed coupons
at line 376
array
getFormErrorInformation()
Get saved errored forms information
at line 387
mixed
setFormErrorInformation(
array $formInformation)
Save errored forms information