Public Member Functions | |
setStore ($store) | |
getStore () | |
formatPrice ($price, $format=true, $includeContainer=true) | |
reset () | |
addProduct (Mage_Catalog_Model_Product $product) | |
getProducts () | |
Protected Member Functions | |
_getUrlParams () | |
Protected Attributes | |
$_products = array() | |
$_store |
Definition at line 35 of file Abstract.php.
_getUrlParams | ( | ) | [protected] |
Get store url params
Definition at line 131 of file Abstract.php.
00132 { 00133 return array( 00134 '_store' => $this->getStore(), 00135 '_store_to_url' => true 00136 ); 00137 }
addProduct | ( | Mage_Catalog_Model_Product $ | product | ) |
Add product to collection
Mage_Catalog_Model_Product | $product |
Definition at line 111 of file Abstract.php.
Convert price from default currency to current currency
double | $price | |
boolean | $format Format price to currency format | |
boolean | $includeContainer Enclose into |
Definition at line 92 of file Abstract.php.
00093 { 00094 return $this->getStore()->convertPrice($price, $format, $includeContainer); 00095 }
getProducts | ( | ) |
getStore | ( | ) |
Retrieve current store object
Definition at line 76 of file Abstract.php.
00077 { 00078 if (is_null($this->_store)) { 00079 $this->_store = Mage::app()->getStore(); 00080 } 00081 return $this->_store; 00082 }
reset | ( | ) |
Reset product collection
Definition at line 101 of file Abstract.php.
00102 { 00103 $this->_products = array(); 00104 }
setStore | ( | $ | store | ) |
Set Store scope
int|string|Mage_Core_Model_Website|Mage_Core_Model_Store | $store | |
Mage_ProductAlert_Block_Email_Price |
Definition at line 57 of file Abstract.php.
00058 { 00059 if ($store instanceof Mage_Core_Model_Website) { 00060 $store = $store->getDefaultStore(); 00061 } 00062 if (!$store instanceof Mage_Core_Model_Store) { 00063 $store = Mage::app()->getStore($store); 00064 } 00065 00066 $this->_store = $store; 00067 00068 return $this; 00069 }
$_products = array() [protected] |
Definition at line 42 of file Abstract.php.
$_store [protected] |
Definition at line 49 of file Abstract.php.