Mage_Adminhtml_Model_System_Config_Source_Country Class Reference

Inheritance diagram for Mage_Adminhtml_Model_System_Config_Source_Country:

Mage_Adminhtml_Model_System_Config_Source_Country_Full Mage_Tax_Model_System_Config_Source_Tax_Country

List of all members.

Public Member Functions

 toOptionArray ($isMultiselect=false)

Protected Attributes

 $_options


Detailed Description

Definition at line 28 of file Country.php.


Member Function Documentation

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     }


Member Data Documentation

$_options [protected]

Reimplemented in Mage_Tax_Model_System_Config_Source_Tax_Country.

Definition at line 30 of file Country.php.


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

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