|
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Stdlib\DateTime\DateTime $date, \Magento\Catalog\Model\ResourceModel\Url $catalogUrl, OptionFactory $wishlistOptFactory, CollectionFactory $wishlOptionCollectionFactory, \Magento\Catalog\Model\ProductTypes\ConfigInterface $productTypeConfig, ProductRepositoryInterface $productRepository, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[], \Magento\Framework\Serialize\Serializer\Json $serializer=null) |
|
| setQty ($qty) |
|
| saveItemOptions () |
|
| setIsOptionsSaved ($flag) |
|
| isOptionsSaved () |
|
| afterSave () |
|
| validate () |
|
| beforeSave () |
|
| loadByProductWishlist ($wishlistId, $productId, $sharedStores) |
|
| getProduct () |
|
| addToCart (\Magento\Checkout\Model\Cart $cart, $delete=false) |
|
| getProductUrl () |
|
| getBuyRequest () |
|
| mergeBuyRequest ($buyRequest) |
|
| setBuyRequest ($buyRequest) |
|
| isRepresent ($product, $buyRequest) |
|
| representProduct ($product) |
|
| compareOptions ($options1, $options2) |
|
| setOptions ($options) |
|
| getOptions () |
|
| getOptionsByCode () |
|
| addOption ($option) |
|
| removeOption ($code) |
|
| getOptionByCode ($code) |
|
| canHaveQty () |
|
| getCustomDownloadUrl () |
|
| setCustomDownloadUrl ($url) |
|
| getFileDownloadParams () |
|
| loadWithOptions ($id, $optionsFilter=null) |
|
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) |
|
| __sleep () |
|
| __wakeup () |
|
| setIdFieldName ($name) |
|
| getIdFieldName () |
|
| getId () |
|
| setId ($value) |
|
| isDeleted ($isDeleted=null) |
|
| hasDataChanges () |
|
| setData ($key, $value=null) |
|
| unsetData ($key=null) |
|
| setDataChanges ($value) |
|
| getOrigData ($key=null) |
|
| setOrigData ($key=null, $data=null) |
|
| dataHasChangedFor ($field) |
|
| getResourceName () |
|
| getResourceCollection () |
|
| getCollection () |
|
| load ($modelId, $field=null) |
|
| beforeLoad ($identifier, $field=null) |
|
| afterLoad () |
|
| isSaveAllowed () |
|
| setHasDataChanges ($flag) |
|
| save () |
|
| afterCommitCallback () |
|
| isObjectNew ($flag=null) |
|
| beforeSave () |
|
| validateBeforeSave () |
|
| getCacheTags () |
|
| cleanModelCache () |
|
| afterSave () |
|
| delete () |
|
| beforeDelete () |
|
| afterDelete () |
|
| afterDeleteCommit () |
|
| getResource () |
|
| getEntityId () |
|
| setEntityId ($entityId) |
|
| clearInstance () |
|
| getStoredData () |
|
| getEventPrefix () |
|
| __construct (array $data=[]) |
|
| addData (array $arr) |
|
| setData ($key, $value=null) |
|
| unsetData ($key=null) |
|
| getData ($key='', $index=null) |
|
| getDataByPath ($path) |
|
| getDataByKey ($key) |
|
| setDataUsingMethod ($key, $args=[]) |
|
| getDataUsingMethod ($key, $args=null) |
|
| hasData ($key='') |
|
| toArray (array $keys=[]) |
|
| convertToArray (array $keys=[]) |
|
| toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) |
|
| convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) |
|
| toJson (array $keys=[]) |
|
| convertToJson (array $keys=[]) |
|
| toString ($format='') |
|
| __call ($method, $args) |
|
| isEmpty () |
|
| serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') |
|
| debug ($data=null, &$objects=[]) |
|
| offsetSet ($offset, $value) |
|
| offsetExists ($offset) |
|
| offsetUnset ($offset) |
|
| offsetGet ($offset) |
|
Wishlist item model
@method int getWishlistId() @method \Magento\Wishlist\Model\Item setWishlistId(int $value) @method int getProductId() @method \Magento\Wishlist\Model\Item setProductId(int $value) @method int getStoreId() @method \Magento\Wishlist\Model\Item setStoreId(int $value) @method string getAddedAt() @method \Magento\Wishlist\Model\Item setAddedAt(string $value) @method string getDescription() @method \Magento\Wishlist\Model\Item setDescription(string $value) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@api
- Since
- 100.0.2
Definition at line 36 of file Item.php.