PugMoRe_Mageploy_Helper_Data::getEavEntityAttributeId PHP Method

getEavEntityAttributeId() public method

public getEavEntityAttributeId ( $entityTypeId, $attributeSetId, $attributeGroupId, $attributeId )
    public function getEavEntityAttributeId($entityTypeId, $attributeSetId, $attributeGroupId, $attributeId)
    {
        $res = Mage::getSingleton('core/resource');
        $conn = $res->getConnection('core_read');
        $select = $conn->select()->where('entity_type_id=?', $entityTypeId)->where('attribute_set_id=?', $attributeSetId)->where('attribute_group_id=?', $attributeGroupId)->where('attribute_id=?', $attributeId)->from($res->getTableName('eav/entity_attribute'));
        $row = $conn->fetchRow($select);
        return $row['entity_attribute_id'];
    }