Mage_Customer_Model_Entity_Address_Attribute_Source_Country Class Reference

Inheritance diagram for Mage_Customer_Model_Entity_Address_Attribute_Source_Country:

Mage_Eav_Model_Entity_Attribute_Source_Table Mage_Eav_Model_Entity_Attribute_Source_Abstract Mage_Eav_Model_Entity_Attribute_Source_Interface

List of all members.

Public Member Functions

 getAllOptions ()


Detailed Description

Definition at line 34 of file Country.php.


Member Function Documentation

getAllOptions (  ) 

Retrieve All options

Returns:
array

Implements Mage_Eav_Model_Entity_Attribute_Source_Interface.

Definition at line 36 of file Country.php.

00037     {
00038         if (!$this->_options) {
00039             $this->_options = Mage::getResourceModel('directory/country_collection')->load()->toOptionArray();
00040             /*$baseUrl = Mage::getBaseUrl();
00041             foreach ($this->_options as $index=>$option) {
00042                 $this->_options[$index]['style'] = 'background-image:url('.$baseUrl.'skins/default/images/icons/flags/'.strtolower($option['title']).'.gif)';
00043             }*/
00044         }
00045         return $this->_options;
00046     }


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

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