public function getAttributeLabels($attribute)
{
// FIXME: after having this warning in for some time, promote to a parameter type-hint.
if (!$attribute instanceof \Mage_Eav_Model_Entity_Attribute) {
trigger_error(sprintf('Attribute not of type Mage_Eav_Model_Entity_Attribute, is of type %s', get_class($attribute)));
}
$select = $this->readConnection->select()->from(\Mage::getSingleton('core/resource')->getTableName('eav_attribute_label'))->where('attribute_id = ?', $attribute->getId());
$query = $select->query();
$attributeLabels = array();
foreach ($query->fetchAll() as $row) {
$attributeLabels[$row['store_id']] = $row['value'];
}
return $attributeLabels;
}