public function _construct()
 {
     $this->_init('prxgt_qof_model/suggestions', 'entity_id');
     /** get all available attributes and compose filter to be used in products lookup */
     $allAttrs = array_keys(Mage::getModel('prxgt_qof_model/source_attributes')->toOptionArray());
     $searchAttrs = Praxigento_Quickorder_Config::cfgSearchAttributes();
     $this->_filters = array_intersect($searchAttrs, $allAttrs);
 }
 public function testCfg()
 {
     // System / Configuration
     $this->assertTrue(is_array(Praxigento_Quickorder_Config::cfgCustomerGroupsAllowed()));
     $this->assertTrue(is_array(Praxigento_Quickorder_Config::cfgSearchAttributes()));
     $this->assertTrue(is_bool(Praxigento_Quickorder_Config::cfgOutOfStockEnabled()));
     $this->assertTrue(is_bool(Praxigento_Quickorder_Config::cfgInvisibleIncluded()));
     $this->assertTrue(is_bool(Praxigento_Quickorder_Config::cfgComplexProdsIncluded()));
     $this->assertTrue(is_string(Praxigento_Quickorder_Config::cfgSortAttr()));
     $this->assertTrue(is_string(Praxigento_Quickorder_Config::cfgSortOrder()));
 }