1 2 3 4 5 6 7 8 9 10 11 12 13 |
private function _getGeneralFromAttributeSets(array $attributeSetIds) { if (count($attributeSetIds) > 50) { throw new Ess_M2ePro_Model_Exception("Attribute sets must be less then 50"); } $attributeCollection = Mage::getResourceModel('catalog/product_attribute_collection') ->addVisibleFilter() ->setInAllAttributeSetsFilter($attributeSetIds) ->setOrder('frontend_label', Varien_Data_Collection_Db::SORT_ORDER_ASC); return $attributeCollection->getAllIds(); } |
1 2 3 4 5 6 7 8 9 10 11 12 |
private function _getGeneralFromAttributeSets(array $attributeSetIds) { if (count($attributeSetIds) > 500) { throw new Ess_M2ePro_Model_Exception("Attribute sets must be less then 500"); } $attributeCollection = Mage::getResourceModel('catalog/product_attribute_collection') ->addVisibleFilter() ->setOrder('frontend_label', Varien_Data_Collection_Db::SORT_ORDER_ASC); return $attributeCollection->getAllIds(); } |