Public Member Functions | |
toOptionArray ($isMultiselect=false) | |
Protected Attributes | |
$_options |
Definition at line 28 of file Country.php.
toOptionArray | ( | $ | isMultiselect = false |
) |
Reimplemented in Mage_Adminhtml_Model_System_Config_Source_Country_Full, and Mage_Tax_Model_System_Config_Source_Tax_Country.
Definition at line 32 of file Country.php.
00033 { 00034 if (!$this->_options) { 00035 $this->_options = Mage::getResourceModel('directory/country_collection')->loadData()->toOptionArray(false); 00036 } 00037 00038 $options = $this->_options; 00039 if(!$isMultiselect){ 00040 array_unshift($options, array('value'=>'', 'label'=> Mage::helper('adminhtml')->__('--Please Select--'))); 00041 } 00042 00043 return $options; 00044 }
$_options [protected] |
Reimplemented in Mage_Tax_Model_System_Config_Source_Tax_Country.
Definition at line 30 of file Country.php.