Mage_Directory_Model_Mysql4_Country_Format_Collection Class Reference

Inheritance diagram for Mage_Directory_Model_Mysql4_Country_Format_Collection:

Mage_Core_Model_Mysql4_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 setCountryFilter ($country)

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 35 of file Collection.php.


Member Function Documentation

_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

Parameters:
string|Mage_Directory_Model_Country $country
Returns:
Mage_Directory_Model_Mysql4_Country_Format_Collection

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     }


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

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