Mage_Adminhtml_Block_Tax_Rate_Title Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Tax_Rate_Title:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getTitles ()
 getStores ()

Protected Member Functions

 _construct ()

Protected Attributes

 $_titles


Detailed Description

Tax Rate Titles Renderer

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 33 of file Title.php.


Member Function Documentation

_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.

00038     {
00039         $this->setTemplate('tax/rate/title.phtml');
00040     }

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     }


Member Data Documentation

$_titles [protected]

Definition at line 35 of file Title.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:05 2009 for Magento by  doxygen 1.5.8