Class Mage_Wishlist_Model_Item
Wishlist item model
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_Wishlist_Model_Item implements Mage_Catalog_Model_Product_Configuration_Item_Interface
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Wishlist/Model/Item.php
protected
|
|
public
|
|
protected
|
|
protected
boolean
|
|
protected
|
|
protected
boolean
|
#
_hasModelChanged( )
Checks that item model has data changes. Call save item options if model isn't need to save in DB |
protected
|
|
public
|
|
protected
|
|
public
boolean
|
|
protected
|
|
public
|
#
loadByProductWishlist( integer $wishlistId, integer $productId, array $sharedStores )
Load item by product, wishlist and shared stores |
public
|
|
public
boolean
|
#
addToCart(
Add or Move item product to shopping cart |
public
string
|
|
public
Varien_Object
|
#
getBuyRequest( )
Returns formatted buy request - object, holding request received from product view page with keys and options for configured product |
public
|
|
public
|
#
setBuyRequest( Varien_Object $buyRequest )
Set buy request - object, holding request received from product view page with keys and options for configured product |
public
boolean
|
#
isRepresent(
Check product representation in item |
public
boolean
|
|
public
boolean
|
#
compareOptions( array $options1, array $options2 )
Check if two options array are identical First options array is prerogative Second options array checked against first one |
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
null|Varien_Object
|
#
getFileDownloadParams( )
Returns special download params (if needed) for custom option with type = 'file'. Needed to implement Mage_Catalog_Model_Product_Configuration_Item_Interface. |
public
|
#
loadWithOptions( integer $id, null|string|array $optionsFilter = null )
Loads item together with its options (default load() method doesn't load options). If we need to load only some of options, then option code or array of option codes can be provided in $optionsFilter. |
integer |
EXCEPTION_CODE_NOT_SALABLE
|
901 |
|
integer |
EXCEPTION_CODE_HAS_REQUIRED_OPTIONS
|
902 |
protected
string
|
$_customOptionDownloadUrl | 'wishlist/index/downloadCustomOption' |
#
Custom path to download attached file |
protected
string
|
$_eventPrefix | 'wishlist_item' |
#
Prefix of model events names |
protected
string
|
$_eventObject | 'item' |
#
Parameter name in event |
protected
array
|
$_options | array() |
#
Item options array |
protected
array
|
$_optionsByCode | array() |
#
Item options by code cache |
protected
array
|
$_notRepresentOptions | array('info_buyRequest') |
#
Not Represent options |
protected
mixed
|
$_flagOptionsSaved | null |
#
Flag stating that options were successfully saved |
$_cacheTag,
$_dataSaveAllowed,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|