コード例 #1
0
ファイル: Abstract.php プロジェクト: blazeriaz/youguess
 /**
  * Clean up attribute collection.
  *
  * @param Mage_Eav_Model_Resource_Entity_Attribute_Collection $collection
  * @return Mage_Eav_Model_Resource_Entity_Attribute_Collection
  */
 public function filterAttributeCollection(Mage_Eav_Model_Resource_Entity_Attribute_Collection $collection)
 {
     $collection->load();
     foreach ($collection as $attribute) {
         if (in_array($attribute->getAttributeCode(), $this->_disabledAttrs)) {
             $collection->removeItemByKey($attribute->getId());
         }
     }
     return $collection;
 }