Public Member Functions | |
getMaxValue ($attribute, $entityIdsFilter) | |
getCount ($attribute, $range, $entitySelect) | |
getFilteredEntities ($attribute, $range, $index, $entityIdsFilter) | |
applyFilterToCollection ($collection, $attribute, $range, $index) | |
addMinimalPrices (Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $collection) | |
Protected Member Functions | |
_construct () |
Definition at line 33 of file Price.php.
_construct | ( | ) | [protected] |
Enter description here...
Reimplemented from Varien_Object.
Definition at line 35 of file Price.php.
00036 { 00037 $this->_init('catalogindex/price'); 00038 $this->_getResource()->setStoreId(Mage::app()->getStore()->getId()); 00039 $this->_getResource()->setRate(Mage::app()->getStore()->getCurrentCurrencyRate()); 00040 $this->_getResource()->setCustomerGroupId(Mage::getSingleton('customer/session')->getCustomerGroupId()); 00041 }
addMinimalPrices | ( | Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $ | collection | ) |
Definition at line 63 of file Price.php.
00064 { 00065 $minimalPrices = $this->_getResource()->getMinimalPrices($collection->getLoadedIds()); 00066 00067 foreach ($minimalPrices as $row) { 00068 $item = $collection->getItemById($row['entity_id']); 00069 if ($item) { 00070 $item->setData('minimal_price', $row['value']); 00071 $item->setData('minimal_tax_class_id', $row['tax_class_id']); 00072 } 00073 } 00074 }
applyFilterToCollection | ( | $ | collection, | |
$ | attribute, | |||
$ | range, | |||
$ | index | |||
) |
Definition at line 58 of file Price.php.
00059 { 00060 return $this->_getResource()->applyFilterToCollection($collection, $attribute, $range, $index); 00061 }
getCount | ( | $ | attribute, | |
$ | range, | |||
$ | entitySelect | |||
) |
Definition at line 48 of file Price.php.
00049 { 00050 return $this->_getResource()->getCount($range, $attribute, $entitySelect); 00051 }
getFilteredEntities | ( | $ | attribute, | |
$ | range, | |||
$ | index, | |||
$ | entityIdsFilter | |||
) |
Definition at line 53 of file Price.php.
00054 { 00055 return $this->_getResource()->getFilteredEntities($range, $index, $attribute, $entityIdsFilter); 00056 }
getMaxValue | ( | $ | attribute, | |
$ | entityIdsFilter | |||
) |
Definition at line 43 of file Price.php.
00044 { 00045 return $this->_getResource()->getMaxValue($attribute, $entityIdsFilter); 00046 }