Class Mage_Catalog_Model_Product
Catalog product model
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_Catalog_Model_Abstract
- Mage_Catalog_Model_Product
Direct known subclasses
Mage_ImportExport_Model_Import_Proxy_ProductCategory: 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/Catalog/Model/Product.php
protected
|
|
protected
Varien_Object
|
|
public
integer
|
|
public
object
|
|
public
|
|
public
|
|
public
string
|
|
public
unknown
|
|
public
|
|
public
string
|
|
public
integer
|
|
public
|
|
public
|
#
setTypeInstance(
Set type instance for external |
public
|
|
public
integer
|
|
public
integer
|
|
public
|
|
public
|
|
public
array
|
|
public
Varien_Data_Collection
|
|
public
array
|
|
public
array
|
|
public
array
|
#
getAttributes( integer $groupId = null, boolean $skipSuper = false )
Retrieve product attributes if $groupId is null - retrieve all product attributes |
protected
|
|
public
boolean
|
#
canAffectOptions( boolean $value = null )
Check/set if options can be affected when saving product If value specified, it will be set. |
protected
|
|
protected
|
#
_beforeDelete( )
Clear chache related with product and protect delete from not admin Register indexing event before delete product |
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
float
|
|
public
float
|
|
public
integer
|
|
public
array
|
|
public
array
|
|
public
|
|
public
float
|
|
public
float
|
|
public
float
|
|
public
float
|
|
public
mixed
|
|
public
mixed
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
Varien_Data_Collection
|
|
public
|
#
addImageToMediaGallery( string $file, string|array $mediaAttribute = null, boolean $move = false, boolean $exclude = true )
Add image to media gallery |
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
array
|
|
public
boolean
|
|
public
array
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
getUrlPath(
Retrieve Product Url Path (include category) |
public
|
#
addAttributeUpdate( string $code, mixed $value, integer $store )
Save current attribute with code $code and assign new value |
public
array
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
unknown
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
boolean
|
|
public
|
#
addCustomOption( string $code, mixed $value, integer $product = null )
Add custom option information to product |
public
|
|
public
array
|
|
public
array
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
integer
|
|
protected
|
|
public
array
|
|
public
boolean
|
#
isReservedAttribute(
Check whether attribute reserved or not |
public
Varien_Object
|
|
public
|
|
public
array
|
|
public
boolean|null
|
|
public
Varien_Object
|
#
processBuyRequest( Varien_Object $buyRequest )
Parse buyRequest into options values used by product |
public
Varien_Object
|
|
public
|
#
prepareCustomOptions( )
Prepare product custom options. To be sure that all product custom options does not has ID and has product instance |
protected
|
|
protected
|
|
protected
|
|
public
array
|
|
public
boolean
|
string |
ENTITY
|
'catalog_product' |
#
Entity code. Can be used as part of method name for entity processing |
string |
CACHE_TAG
|
'catalog_product' |
DEFAULT_STORE_ID
|
protected
string
|
$_cacheTag | 'catalog_product' |
#
Model cache tag for clear cache in after save and after delete |
protected
string
|
$_eventPrefix | 'catalog_product' |
#
Prefix of model events names |
protected
string
|
$_eventObject | 'product' |
#
Parameter name in event |
protected
boolean
|
$_canAffectOptions | false |
|
protected
|
$_typeInstance | null |
#
Product type instance |
protected
mixed
|
$_typeInstanceSingleton | null |
#
Product type instance as singleton |
protected
|
$_linkInstance |
|
#
Product link instance |
protected
array
|
$_customOptions | array() |
#
Product object customization (not stored in DB) |
protected
|
$_urlModel | null |
#
Product Url Instance |
protected static
mixed
|
$_url |
|
|
protected static
mixed
|
$_urlRewrite |
|
|
protected
array
|
$_errors | array() |
|
protected
mixed
|
$_optionInstance |
|
|
protected
array
|
$_options | array() |
|
protected
mixed
|
$_reservedAttributes |
|
#
Product reserved attribute codes |
protected
boolean
|
$_isDuplicable | true |
#
Flag for available duplicate function |
protected
boolean
|
$_calculatePrice | true |
#
Flag for get Price function |
$_defaultValues,
$_isDeleteable,
$_isReadonly,
$_lockedAttributes,
$_storeValuesFlags
|
$_dataSaveAllowed,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|