Mage_Tax_Model_Class_Source_Customer Class Reference

Inheritance diagram for Mage_Tax_Model_Class_Source_Customer:

Mage_Eav_Model_Entity_Attribute_Source_Abstract Mage_Eav_Model_Entity_Attribute_Source_Interface

List of all members.

Public Member Functions

 getAllOptions ()
 toOptionArray ()


Detailed Description

Definition at line 28 of file Customer.php.


Member Function Documentation

getAllOptions (  ) 

Retrieve All options

Returns:
array

Implements Mage_Eav_Model_Entity_Attribute_Source_Interface.

Definition at line 30 of file Customer.php.

00031     {
00032         if (!$this->_options) {
00033             $this->_options = Mage::getResourceModel('tax/class_collection')
00034                 ->addFieldToFilter('class_type', 'CUSTOMER')
00035                 ->load()->toOptionArray();
00036         }
00037         return $this->_options;
00038     }

toOptionArray (  ) 

Definition at line 40 of file Customer.php.

00041     {
00042         return $this->getAllOptions();
00043     }


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

Generated on Sat Jul 4 17:24:54 2009 for Magento by  doxygen 1.5.8