Public Member Functions | |
getTypeIdByAttributeSetId ($attributeSetId, $targetCountry) | |
Protected Member Functions | |
_construct () |
Definition at line 34 of file Type.php.
_construct | ( | ) | [protected] |
Resource initialization
Reimplemented from Mage_Core_Model_Resource_Abstract.
Definition at line 36 of file Type.php.
00037 { 00038 $this->_init('googlebase/types', 'type_id'); 00039 }
getTypeIdByAttributeSetId | ( | $ | attributeSetId, | |
$ | targetCountry | |||
) |
Return Type ID by Attribute Set Id and target country
int | $attributeSetId Attribute Set | |
string | $targetCountry Two-letters country ISO code |
Definition at line 48 of file Type.php.
00049 { 00050 $select = $this->_getReadAdapter()->select() 00051 ->from($this->getMainTable(), 'type_id') 00052 ->where('attribute_set_id=?', $attributeSetId) 00053 ->where('target_country=?', $targetCountry); 00054 00055 return $this->_getReadAdapter()->fetchOne($select); 00056 }