Class Mage_Bundle_Model_Mysql4_Price_Index

Description

Bundle Product Price Index Resource model

Located in /Bundle/Model/Mysql4/Price/Index.php (line 37)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Bundle_Model_Mysql4_Price_Index
Variable Summary
Method Summary
array getCustomOptions (int $productId,  $website)
array getProducts ([Mage_Core_Model_Product|Mage_Catalog_Model_Product_Condition_Interface|array|int $product = null], [int $lastEntityId = 0], [int $limit = 100])
array getProductsPriceData (int|array $products,  $website)
array getProductsPriceFromIndex (int|array $productIds)
array getProductsSalableStatus (int|array $products,  $website)
array getSelections (int $productId)
array loadPriceIndex (int|array $productIds, int $websiteId, int $groupId)
Mage_Bundle_Model_Price_Index reindex ([Mage_Core_Model_Product|Mage_Catalog_Model_Product_Condition_Interface|array|int $products = null])
Mage_Bundle_Model_Mysql4_Price_Index _addAttributeDataToSelect ( $select, string $attributeCode,  $website)
array _calculateBundleSelections ( $options,  $salableStatus, int $productId, int $priceType, float $basePrice, array $priceData, array $priceIndex, Mage_Core_Model_Website $website, Mage_Customer_Model_Group $group)
array _calculateCustomOptions ( $options, float $basePrice, float $minPrice, float $maxPrice)
float _calculateSpecialPrice (float $finalPrice,  $priceData,  $website)
void _construct ()
float _getBasePrice (int $productId,  $priceData, Mage_Core_Model_Website $website, Mage_Customer_Model_Group $customerGroup)
array _getWebsites ()
Mage_Bundle_Model_Mysql4_Price_Index _reindexProduct (int $productId, int $priceType)
Mage_Bundle_Model_Mysql4_Price_Index _savePriceIndex (int $productId, int $websiteId, int $groupId, float $minPrice, float $maxPrice)
Variables
Methods
getCustomOptions (line 509)

Retrieve custom options for product

  • access: public
array getCustomOptions (int $productId,  $website)
getProducts (line 121)

Retrieve product ids array by product condition

  • access: public
array getProducts ([Mage_Core_Model_Product|Mage_Catalog_Model_Product_Condition_Interface|array|int $product = null], [int $lastEntityId = 0], [int $limit = 100])
getProductsPriceData (line 410)

Retrieve product(s) price data

  • access: public
array getProductsPriceData (int|array $products,  $website)
getProductsPriceFromIndex (line 381)

Retrieve Selection Product price from Price Index Return index key {entity_id}-{website_id}-{customer_group_id}

  • access: public
array getProductsPriceFromIndex (int|array $productIds)
  • int|array $productIds
getProductsSalableStatus (line 316)

Retrieve salable product statuses

  • access: public
array getProductsSalableStatus (int|array $products,  $website)
getSelections (line 269)

Retrieve bundle options with selections and prices by product

  • access: public
array getSelections (int $productId)
  • int $productId
loadPriceIndex (line 783)

Retrieve price index for products

  • access: public
array loadPriceIndex (int|array $productIds, int $websiteId, int $groupId)
  • int|array $productIds
  • int $websiteId
  • int $groupId
reindex (line 165)

Reindex Bundle product Price Index

  • access: public
Mage_Bundle_Model_Price_Index reindex ([Mage_Core_Model_Product|Mage_Catalog_Model_Product_Condition_Interface|array|int $products = null])
_addAttributeDataToSelect (line 443)

Add attribute data to select

  • access: protected
Mage_Bundle_Model_Mysql4_Price_Index _addAttributeDataToSelect ( $select, string $attributeCode,  $website)
_calculateBundleSelections (line 678)

Calculate minimal and maximal price for bundle selections Return array with prices (0 -> min_price, 1 -> max_price)

  • access: public
array _calculateBundleSelections ( $options,  $salableStatus, int $productId, int $priceType, float $basePrice, array $priceData, array $priceIndex, Mage_Core_Model_Website $website, Mage_Customer_Model_Group $group)
_calculateCustomOptions (line 629)

Calculate custom options price Return array with indexes(0 -> min_price, 1 -> max_price)

  • access: public
array _calculateCustomOptions ( $options, float $basePrice, float $minPrice, float $maxPrice)
  • array $options
  • float $basePrice
  • float $minPrice
  • float $maxPrice
_calculateSpecialPrice (line 760)

Apply special price

  • access: public
float _calculateSpecialPrice (float $finalPrice,  $priceData,  $website)
_construct (line 64)

Initialize connection and define main table

  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_getAttribute (line 75)

Retrieve attribute object

  • access: protected
Mage_Catalog_Model_Resource_Eav_Attribute _getAttribute (string $attributeCode)
  • string $attributeCode
_getBasePrice (line 486)

Retrieve fixed bundle base price (with special price and rules)

  • access: protected
float _getBasePrice (int $productId,  $priceData, Mage_Core_Model_Website $website, Mage_Customer_Model_Group $customerGroup)
_getCustomerGroups (line 102)

Retrieve customer groups collection array

  • access: protected
array _getCustomerGroups ()
_getWebsites (line 89)

Retrieve websites collection array

  • access: protected
array _getWebsites ()
_reindexProduct (line 190)

Reindex product price

  • access: protected
Mage_Bundle_Model_Mysql4_Price_Index _reindexProduct (int $productId, int $priceType)
  • int $productId
  • int $priceType
_savePriceIndex (line 249)

Save price index

  • access: protected
Mage_Bundle_Model_Mysql4_Price_Index _savePriceIndex (int $productId, int $websiteId, int $groupId, float $minPrice, float $maxPrice)
  • int $productId
  • int $websiteId
  • int $groupId
  • float $minPrice
  • float $maxPrice

Inherited Methods

Inherited From Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::addUniqueField()
Mage_Core_Model_Mysql4_Abstract::afterLoad()
Mage_Core_Model_Mysql4_Abstract::delete()
Mage_Core_Model_Mysql4_Abstract::forsedSave()
Mage_Core_Model_Mysql4_Abstract::getChecksum()
Mage_Core_Model_Mysql4_Abstract::getIdFieldName()
Mage_Core_Model_Mysql4_Abstract::getMainTable()
Mage_Core_Model_Mysql4_Abstract::getReadConnection()
Mage_Core_Model_Mysql4_Abstract::getTable()
Mage_Core_Model_Mysql4_Abstract::getUniqueFields()
Mage_Core_Model_Mysql4_Abstract::getValueTable()
Mage_Core_Model_Mysql4_Abstract::hasDataChanged()
Mage_Core_Model_Mysql4_Abstract::load()
Mage_Core_Model_Mysql4_Abstract::resetUniqueField()
Mage_Core_Model_Mysql4_Abstract::save()
Mage_Core_Model_Mysql4_Abstract::unserializeFields()
Mage_Core_Model_Mysql4_Abstract::_afterDelete()
Mage_Core_Model_Mysql4_Abstract::_afterLoad()
Mage_Core_Model_Mysql4_Abstract::_afterSave()
Mage_Core_Model_Mysql4_Abstract::_beforeDelete()
Mage_Core_Model_Mysql4_Abstract::_beforeSave()
Mage_Core_Model_Mysql4_Abstract::_checkUnique()
Mage_Core_Model_Mysql4_Abstract::_getConnection()
Mage_Core_Model_Mysql4_Abstract::_getLoadSelect()
Mage_Core_Model_Mysql4_Abstract::_getReadAdapter()
Mage_Core_Model_Mysql4_Abstract::_getWriteAdapter()
Mage_Core_Model_Mysql4_Abstract::_init()
Mage_Core_Model_Mysql4_Abstract::_initUniqueFields()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForSave()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForTable()
Mage_Core_Model_Mysql4_Abstract::_prepareValueForSave()
Mage_Core_Model_Mysql4_Abstract::_serializeFields()
Mage_Core_Model_Mysql4_Abstract::_setMainTable()
Mage_Core_Model_Mysql4_Abstract::_setResource()

Inherited From Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::__construct()
Mage_Core_Model_Resource_Abstract::addCommitCallback()
Mage_Core_Model_Resource_Abstract::beginTransaction()
Mage_Core_Model_Resource_Abstract::commit()
Mage_Core_Model_Resource_Abstract::formatDate()
Mage_Core_Model_Resource_Abstract::mktime()
Mage_Core_Model_Resource_Abstract::rollBack()
Mage_Core_Model_Resource_Abstract::_construct()
Mage_Core_Model_Resource_Abstract::_getReadAdapter()
Mage_Core_Model_Resource_Abstract::_getWriteAdapter()
Mage_Core_Model_Resource_Abstract::_serializeField()
Mage_Core_Model_Resource_Abstract::_unserializeField()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:06:28 +0200 by phpDocumentor 1.4.3