Advertisement
Guest User

Collection.php

a guest
Jul 27th, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2. class EM_LayeredNavigation_Model_Resource_Filter_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract {
  3.     protected function _construct() {
  4.         $this->_init('layerednavigation/filter');
  5.     }
  6.    
  7.     public function getDisplayConfigs() {
  8.         $this->addFieldToSelect('attribute_code');
  9.         $this->addFieldToSelect('display_as');
  10.         $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
  11.         return $connection->fetchPairs($this->getSelect());
  12.     }
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement