Mage_Tax_Model_System_Config_Source_Tax_Region Class Reference

List of all members.

Public Member Functions

 toOptionArray ($noEmpty=false, $country=null)

Protected Attributes

 $_options


Detailed Description

Definition at line 28 of file Region.php.


Member Function Documentation

toOptionArray ( noEmpty = false,
country = null 
)

Definition at line 32 of file Region.php.

00033     {
00034         $options = Mage::getModel('directory/region')
00035             ->getCollection()
00036             ->addCountryFilter($country)
00037             ->toOptionArray();
00038 
00039         if ($noEmpty) {
00040             unset($options[0]);
00041         } else {
00042             if ($options) {
00043                 $options[0]['label'] = '*';
00044             } else {
00045                 $options = array(array('value'=>'', 'label'=>'*'));
00046             }
00047         }
00048 
00049         return $options;
00050     }


Member Data Documentation

$_options [protected]

Definition at line 30 of file Region.php.


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

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