
Public Member Functions | |
| setCountryFilter ($country) | |
Protected Member Functions | |
| _construct () | |
Definition at line 35 of file Collection.php.
| _construct | ( | ) | [protected] |
Initialization here
Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.
Definition at line 38 of file Collection.php.
00039 { 00040 $this->_init('directory/country_format'); 00041 }
| setCountryFilter | ( | $ | country | ) |
Set country filter
| string|Mage_Directory_Model_Country | $country |
Definition at line 49 of file Collection.php.
00050 { 00051 if(is_object($country)) { 00052 $countryId = $country->getId(); 00053 } else { 00054 $countryId = $country; 00055 } 00056 00057 $this->addFieldToFilter('country_id', $countryId); 00058 return $this; 00059 }
1.5.8