Public Member Functions | |
getTitles () | |
getStores () | |
Protected Member Functions | |
_construct () | |
Protected Attributes | |
$_titles |
Definition at line 33 of file Title.php.
_construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 37 of file Title.php.
getStores | ( | ) |
Definition at line 59 of file Title.php.
00060 { 00061 $stores = $this->getData('stores'); 00062 if (is_null($stores)) { 00063 $stores = Mage::getModel('core/store') 00064 ->getResourceCollection() 00065 ->setLoadDefault(false) 00066 ->load(); 00067 $this->setData('stores', $stores); 00068 } 00069 return $stores; 00070 }
getTitles | ( | ) |
Definition at line 42 of file Title.php.
00043 { 00044 if (is_null($this->_titles)) { 00045 $this->_titles = array(); 00046 $titles = Mage::getSingleton('tax/calculation_rate')->getTitles(); 00047 foreach ($titles as $title) { 00048 $this->_titles[$title->getStoreId()] = $title->getValue(); 00049 } 00050 foreach ($this->getStores() as $store) { 00051 if (!isset($this->_titles[$store->getId()])) { 00052 $this->_titles[$store->getId()] = ''; 00053 } 00054 } 00055 } 00056 return $this->_titles; 00057 }