Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | CHECKOUT_STATE_BEGIN = 'begin' |
![]() | |
const | HOST_KEY = '_session_hosts' |
Protected Member Functions | |
_getQuoteIdKey () | |
setIsQuoteMasked ($isQuoteMasked) | |
isQuoteMasked () | |
![]() | |
registerSaveHandler () | |
_addHost () | |
_getHosts () | |
_cleanHosts () | |
clearSubDomainSessionCookie () | |
Protected Attributes | |
$_quote | |
$_customer | |
$_loadInactive = false | |
$_order | |
$_orderFactory | |
$_customerSession | |
$quoteRepository | |
$_remoteAddress | |
$_eventManager | |
$_storeManager | |
$customerRepository | |
$quoteIdMaskFactory | |
$isQuoteMasked | |
$quoteFactory | |
![]() | |
$defaultDestroyOptions = ['send_expire_cookie' => true, 'clear_storage' => true] | |
$validator | |
$request | |
$sidResolver | |
$sessionConfig | |
$saveHandler | |
$storage | |
$cookieManager | |
$cookieMetadataFactory | |
Additional Inherited Members | |
![]() | |
static | $urlHostCache = [] |
@api @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 17 of file Session.php.
\Magento\Framework\App\Request\Http | $request | |
\Magento\Framework\Session\SidResolverInterface | $sidResolver | |
\Magento\Framework\Session\Config\ConfigInterface | $sessionConfig | |
\Magento\Framework\Session\SaveHandlerInterface | $saveHandler | |
\Magento\Framework\Session\ValidatorInterface | $validator | |
\Magento\Framework\Session\StorageInterface | $storage | |
\Magento\Framework\Stdlib\CookieManagerInterface | $cookieManager | |
\Magento\Framework\Stdlib\Cookie\CookieMetadataFactory | $cookieMetadataFactory | |
\Magento\Framework\App\State | $appState | |
\Magento\Sales\Model\OrderFactory | $orderFactory | |
\Magento\Customer\Model\Session | $customerSession | |
\Magento\Quote\Api\CartRepositoryInterface | $quoteRepository | |
\Magento\Framework\HTTP\PhpEnvironment\RemoteAddress | $remoteAddress | |
\Magento\Framework\Event\ManagerInterface | $eventManager | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Customer\Api\CustomerRepositoryInterface | $customerRepository | |
QuoteIdMaskFactory | $quoteIdMaskFactory | |
\Magento\Quote\Model\QuoteFactory | $quoteFactory | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 123 of file Session.php.
|
protected |
Definition at line 292 of file Session.php.
clearHelperData | ( | ) |
clearQuote | ( | ) |
Destroy/end a session Unset all data associated with object
Definition at line 415 of file Session.php.
clearStorage | ( | ) |
Unset all session data and quote
Implements SessionManagerInterface.
Definition at line 429 of file Session.php.
getLastRealOrder | ( | ) |
Get order instance based on last order ID
Definition at line 472 of file Session.php.
getQuoteId | ( | ) |
Definition at line 311 of file Session.php.
getStepData | ( | $step = null , |
|
$data = null |
|||
) |
string | null | $step | |
string | null | $data |
Definition at line 391 of file Session.php.
hasQuote | ( | ) |
Check whether current session has quote
Definition at line 184 of file Session.php.
|
protected |
loadCustomerQuote | ( | ) |
Load data for customer quote and merge with current quote
Definition at line 321 of file Session.php.
replaceQuote | ( | $quote | ) |
resetCheckout | ( | ) |
Definition at line 450 of file Session.php.
setCustomerData | ( | $customer | ) |
Set customer data.
CustomerInterface | null | $customer |
Definition at line 172 of file Session.php.
|
protected |
$isQuoteMasked | bool |
Definition at line 513 of file Session.php.
setLoadInactive | ( | $load = true | ) |
Set quote to be loaded even if inactive
bool | $load |
Definition at line 196 of file Session.php.
setQuoteId | ( | $quoteId | ) |
setStepData | ( | $step, | |
$data, | |||
$value = null |
|||
) |
string | $step | |
array | string | $data | |
bool | string | null | $value |
Definition at line 366 of file Session.php.
|
protected |
Definition at line 36 of file Session.php.
|
protected |
Definition at line 60 of file Session.php.
|
protected |
Definition at line 75 of file Session.php.
|
protected |
Definition at line 43 of file Session.php.
|
protected |
Definition at line 50 of file Session.php.
|
protected |
Definition at line 55 of file Session.php.
|
protected |
Definition at line 29 of file Session.php.
|
protected |
Definition at line 70 of file Session.php.
|
protected |
Definition at line 80 of file Session.php.
|
protected |
Definition at line 85 of file Session.php.
|
protected |
bool |
Definition at line 95 of file Session.php.
|
protected |
Definition at line 100 of file Session.php.
|
protected |
QuoteIdMaskFactory |
Definition at line 90 of file Session.php.
|
protected |
Definition at line 65 of file Session.php.
const CHECKOUT_STATE_BEGIN = 'begin' |
Checkout state begin
Definition at line 22 of file Session.php.