\Thelia\Core\HttpFoundation\SessionSession

Summary

Methods
Properties
Constants
getLocale()
getLang()
setCustomerUser()
getCustomerUser()
clearCustomerUser()
setAdminUser()
getAdminUser()
clearAdminUser()
setErrorFormName()
getErrorFormName()
clearErrorFormName()
setReturnToUrl()
getReturnToUrl()
getCart()
setCart()
No public properties found
No constants found
verifyValidCart()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getLocale()

getLocale()

getLang()

getLang()

getCustomerUser()

getCustomerUser()

clearCustomerUser()

clearCustomerUser()

getAdminUser()

getAdminUser()

clearAdminUser()

clearAdminUser()

setErrorFormName()

setErrorFormName(string $formName)

Parameters

string $formName

the form name

getErrorFormName()

getErrorFormName()

clearErrorFormName()

clearErrorFormName()

setReturnToUrl()

setReturnToUrl( $url)

Parameters

$url

getReturnToUrl()

getReturnToUrl() : \Thelia\Core\HttpFoundation\Session\the

Returns

\Thelia\Core\HttpFoundation\Session\the —

return-to URL, or the index page if none is defined.

getCart()

getCart() : \Thelia\Model\Cart|null

return cart if exists and is valid (checking customer)

Returns

\Thelia\Model\Cart|null

setCart()

setCart(mixed $cart_id)

assign cart id in session

Parameters

mixed $cart_id

verifyValidCart()

verifyValidCart(\Thelia\Model\Cart $cart)

Parameters

\Thelia\Model\Cart $cart

Throws

\Thelia\Exception\InvalidCartException