Class Mage_Downloadable_Model_Product_Type

Description

Downloadable product type model

Located in /Downloadable/Model/Product/Type.php (line 34)

Mage_Catalog_Model_Product_Type_Abstract
   |
   --Mage_Catalog_Model_Product_Type_Virtual
      |
      --Mage_Downloadable_Model_Product_Type
Class Constant Summary
TYPE_DOWNLOADABLE = 'downloadable'
Method Summary
void beforeSave ([Mage_Catalog_Model_Product $product = null])
bool canConfigure ([Mage_Catalog_Model_Product $product = null])
array getLinks ([Mage_Catalog_Model_Product $product = null])
array getOrderOptions ([Mage_Catalog_Model_Product $product = null])
array getSearchableData ([Mage_Catalog_Model_Product $product = null])
boolean hasLinks ([Mage_Catalog_Model_Product $product = null])
boolean hasOptions ([Mage_Catalog_Model_Product $product = null])
boolean hasSamples ([Mage_Catalog_Model_Product $product = null])
bool isSalable ([Mage_Catalog_Model_Product $product = null])
array processBuyRequest (Mage_Catalog_Model_Product $product, Varien_Object $buyRequest)
array|string _prepareProduct ( $buyRequest, Mage_Catalog_Model_Product $product, string $processMode)
Variables
Methods
beforeSave (line 384)

Setting flag if dowenloadable product can be or not in complex product based on link can be purchased separately or not

  • access: public
void beforeSave ([Mage_Catalog_Model_Product $product = null])

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::beforeSave()
Before save type related data
canConfigure (line 476)

Check if downloadable product has links and they can be purchased separately

  • access: public
bool canConfigure ([Mage_Catalog_Model_Product $product = null])

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::canConfigure()
Check if product is configurable
checkProductBuyState (line 333)

Check if product can be bought

  • throws: Mage_Core_Exception
  • access: public
Mage_Bundle_Model_Product_Type checkProductBuyState ([Mage_Catalog_Model_Product $product = null])

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::checkProductBuyState()
Check if product can be bought
getLinks (line 44)

Get downloadable product links

  • access: public
array getLinks ([Mage_Catalog_Model_Product $product = null])
getLinkSelectionRequired (line 112)

Check if product cannot be purchased with no links selected

  • access: public
boolean getLinkSelectionRequired ([Mage_Catalog_Model_Product $product = null])
getOrderOptions (line 356)

Prepare additional options/information for order item which will be created from this product

  • access: public
array getOrderOptions ([Mage_Catalog_Model_Product $product = null])

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::getOrderOptions()
Prepare additional options/information for order item which will be created from this product
getSamples (line 123)

Get downloadable product samples

  • access: public
getSearchableData (line 422)

Retrieve additional searchable data from type instance Using based on product id and store_id data

  • access: public
array getSearchableData ([Mage_Catalog_Model_Product $product = null])

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::getSearchableData()
Retrieve additional searchable data from type instance Using based on product id and store_id data
hasLinks (line 71)

Check if product has links

  • access: public
boolean hasLinks ([Mage_Catalog_Model_Product $product = null])
hasOptions (line 85)

Check if product has options

  • access: public
boolean hasOptions ([Mage_Catalog_Model_Product $product = null])

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::hasOptions()
Return true if product has options
hasRequiredOptions (line 98)

Check if product has required options

  • access: public
bool hasRequiredOptions ([Mage_Catalog_Model_Product $product = null])

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::hasRequiredOptions()
Check if product has required options
hasSamples (line 143)

Check if product has samples

  • access: public
boolean hasSamples ([Mage_Catalog_Model_Product $product = null])
isSalable (line 448)

Check is product available for sale

  • access: public
bool isSalable ([Mage_Catalog_Model_Product $product = null])

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::isSalable()
Check is product available for sale
processBuyRequest (line 460)

Prepare selected options for downloadable product

  • access: public
array processBuyRequest (Mage_Catalog_Model_Product $product, Varien_Object $buyRequest)

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::processBuyRequest()
Prepare selected options for product
save (line 154)

Save Product downloadable information (links and samples)

  • access: public

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::save()
Save type related data
_prepareProduct (line 284)

Prepare product and its configuration to be added to some products list.

Perform standard preparation process and then prepare options for downloadable links.

  • access: protected
array|string _prepareProduct ( $buyRequest, Mage_Catalog_Model_Product $product, string $processMode)

Redefinition of:
Mage_Catalog_Model_Product_Type_Abstract::_prepareProduct()
Prepare product and its configuration to be added to some products list.

Inherited Methods

Inherited From Mage_Catalog_Model_Product_Type_Virtual

Mage_Catalog_Model_Product_Type_Virtual::isVirtual()

Inherited From Mage_Catalog_Model_Product_Type_Abstract

Mage_Catalog_Model_Product_Type_Abstract::addFileQueue()
Mage_Catalog_Model_Product_Type_Abstract::assignProductToOption()
Mage_Catalog_Model_Product_Type_Abstract::attributesCompare()
Mage_Catalog_Model_Product_Type_Abstract::beforeSave()
Mage_Catalog_Model_Product_Type_Abstract::canConfigure()
Mage_Catalog_Model_Product_Type_Abstract::canUseQtyDecimals()
Mage_Catalog_Model_Product_Type_Abstract::checkProductBuyState()
Mage_Catalog_Model_Product_Type_Abstract::checkProductConfiguration()
Mage_Catalog_Model_Product_Type_Abstract::getAttributeById()
Mage_Catalog_Model_Product_Type_Abstract::getChildrenIds()
Mage_Catalog_Model_Product_Type_Abstract::getEditableAttributes()
Mage_Catalog_Model_Product_Type_Abstract::getForceChildItemQtyChanges()
Mage_Catalog_Model_Product_Type_Abstract::getOptionSku()
Mage_Catalog_Model_Product_Type_Abstract::getOrderOptions()
Mage_Catalog_Model_Product_Type_Abstract::getParentIdsByChild()
Mage_Catalog_Model_Product_Type_Abstract::getProduct()
Mage_Catalog_Model_Product_Type_Abstract::getProductsToPurchaseByReqGroups()
Mage_Catalog_Model_Product_Type_Abstract::getRelationInfo()
Mage_Catalog_Model_Product_Type_Abstract::getSearchableData()
Mage_Catalog_Model_Product_Type_Abstract::getSetAttributes()
Mage_Catalog_Model_Product_Type_Abstract::getSku()
Mage_Catalog_Model_Product_Type_Abstract::getSpecifyOptionMessage()
Mage_Catalog_Model_Product_Type_Abstract::getStoreFilter()
Mage_Catalog_Model_Product_Type_Abstract::getWeight()
Mage_Catalog_Model_Product_Type_Abstract::hasOptions()
Mage_Catalog_Model_Product_Type_Abstract::hasRequiredOptions()
Mage_Catalog_Model_Product_Type_Abstract::isComposite()
Mage_Catalog_Model_Product_Type_Abstract::isSalable()
Mage_Catalog_Model_Product_Type_Abstract::isVirtual()
Mage_Catalog_Model_Product_Type_Abstract::prepareForCart()
Mage_Catalog_Model_Product_Type_Abstract::prepareForCartAdvanced()
Mage_Catalog_Model_Product_Type_Abstract::prepareQuoteItemQty()
Mage_Catalog_Model_Product_Type_Abstract::processBuyRequest()
Mage_Catalog_Model_Product_Type_Abstract::processConfiguration()
Mage_Catalog_Model_Product_Type_Abstract::processFileQueue()
Mage_Catalog_Model_Product_Type_Abstract::save()
Mage_Catalog_Model_Product_Type_Abstract::setConfig()
Mage_Catalog_Model_Product_Type_Abstract::setProduct()
Mage_Catalog_Model_Product_Type_Abstract::setStoreFilter()
Mage_Catalog_Model_Product_Type_Abstract::setTypeId()
Mage_Catalog_Model_Product_Type_Abstract::updateQtyOption()
Mage_Catalog_Model_Product_Type_Abstract::_isStrictProcessMode()
Mage_Catalog_Model_Product_Type_Abstract::_prepareOptions()
Mage_Catalog_Model_Product_Type_Abstract::_prepareOptionsForCart()
Mage_Catalog_Model_Product_Type_Abstract::_prepareProduct()
Mage_Catalog_Model_Product_Type_Abstract::_removeNotApplicableAttributes()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:15:16 +0200 by phpDocumentor 1.4.3