Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (QuoteFactory $quoteFactory, StoreManagerInterface $storeManager, \Magento\Quote\Model\ResourceModel\Quote\Collection $quoteCollection, \Magento\Quote\Api\Data\CartSearchResultsInterfaceFactory $searchResultsDataFactory, JoinProcessorInterface $extensionAttributesJoinProcessor, CollectionProcessorInterface $collectionProcessor=null, \Magento\Quote\Model\ResourceModel\Quote\CollectionFactory $quoteCollectionFactory=null) | |
get ($cartId, array $sharedStoreIds=[]) | |
getForCustomer ($customerId, array $sharedStoreIds=[]) | |
getActive ($cartId, array $sharedStoreIds=[]) | |
getActiveForCustomer ($customerId, array $sharedStoreIds=[]) | |
save (\Magento\Quote\Api\Data\CartInterface $quote) | |
delete (\Magento\Quote\Api\Data\CartInterface $quote) | |
![]() | |
get ($cartId) | |
getList (\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria) | |
save (\Magento\Quote\Api\Data\CartInterface $quote) | |
delete (\Magento\Quote\Api\Data\CartInterface $quote) | |
Protected Member Functions | |
addFilterGroupToCollection (FilterGroup $filterGroup, QuoteCollection $collection) | |
Protected Attributes | |
$quotesById = [] | |
$quotesByCustomerId = [] | |
$quoteFactory | |
$storeManager | |
$quoteCollection | |
$searchResultsDataFactory | |
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 26 of file QuoteRepository.php.
__construct | ( | QuoteFactory | $quoteFactory, |
StoreManagerInterface | $storeManager, | ||
\Magento\Quote\Model\ResourceModel\Quote\Collection | $quoteCollection, | ||
\Magento\Quote\Api\Data\CartSearchResultsInterfaceFactory | $searchResultsDataFactory, | ||
JoinProcessorInterface | $extensionAttributesJoinProcessor, | ||
CollectionProcessorInterface | $collectionProcessor = null , |
||
\Magento\Quote\Model\ResourceModel\Quote\CollectionFactory | $quoteCollectionFactory = null |
||
) |
Constructor
QuoteFactory | $quoteFactory | |
StoreManagerInterface | $storeManager | |
\Magento\Quote\Model\ResourceModel\Quote\Collection | $quoteCollection | |
\Magento\Quote\Api\Data\CartSearchResultsInterfaceFactory | $searchResultsDataFactory | |
JoinProcessorInterface | $extensionAttributesJoinProcessor | |
CollectionProcessorInterface | null | $collectionProcessor | |
\Magento\Quote\Model\ResourceModel\Quote\CollectionFactory | null | $quoteCollectionFactory | @SuppressWarnings(PHPMD.UnusedFormalParameter) |
Definition at line 96 of file QuoteRepository.php.
|
protected |
Adds a specified filter group to the specified quote collection.
FilterGroup | $filterGroup | The filter group. |
QuoteCollection | $collection | The quote collection. |
InputException | The specified filter group or quote collection does not exist. |
Definition at line 252 of file QuoteRepository.php.
delete | ( | \Magento\Quote\Api\Data\CartInterface | $quote | ) |
get | ( | $cartId, | |
array | $sharedStoreIds = [] |
||
) |
getActive | ( | $cartId, | |
array | $sharedStoreIds = [] |
||
) |
{Get active quote by id
int | $cartId | |
int[] | $sharedStoreIds |
Implements CartRepositoryInterface.
Definition at line 145 of file QuoteRepository.php.
getActiveForCustomer | ( | $customerId, | |
array | $sharedStoreIds = [] |
||
) |
{Get active quote by customer Id
int | $customerId | |
int[] | $sharedStoreIds |
Implements CartRepositoryInterface.
Definition at line 157 of file QuoteRepository.php.
getForCustomer | ( | $customerId, | |
array | $sharedStoreIds = [] |
||
) |
{Get quote by customer Id
int | $customerId | |
int[] | $sharedStoreIds |
Implements CartRepositoryInterface.
Definition at line 131 of file QuoteRepository.php.
save | ( | \Magento\Quote\Api\Data\CartInterface | $quote | ) |
|
protected |
Definition at line 52 of file QuoteRepository.php.
|
protected |
Definition at line 41 of file QuoteRepository.php.
|
protected |
Definition at line 36 of file QuoteRepository.php.
|
protected |
Definition at line 31 of file QuoteRepository.php.
|
protected |
Definition at line 57 of file QuoteRepository.php.
|
protected |
Definition at line 46 of file QuoteRepository.php.