Example #1
0
 function setListCollection()
 {
     $flexibleSearch = new Elite_Vaf_Model_FlexibleSearch(new Elite_Vaf_Model_Schema(), $this->getRequest());
     if ($flexibleSearch->shouldClear()) {
         return;
     }
     $this->getChild('search_result_list')->setCollection($this->_getProductCollection());
 }
Example #2
0
 /** @return Elite_Vaf_Model_FlexibleSearch */
 function flexibleSearch()
 {
     $search = new Elite_Vaf_Model_FlexibleSearch($this->schema(), $this->getRequest());
     $search->setConfig($this->getConfig());
     if (file_exists(ELITE_PATH . '/Vafwheel')) {
         $search = new Elite_Vafwheel_Model_FlexibleSearch($search);
     }
     if (file_exists(ELITE_PATH . '/Vaftire')) {
         $search = new Elite_Vaftire_Model_FlexibleSearch($search);
     }
     if (file_exists(ELITE_PATH . '/Vafwheeladapter')) {
         $search = new Elite_Vafwheeladapter_Model_FlexibleSearch($search);
     }
     return $search;
 }
Example #3
0
 /** @return array */
 protected function getRequestLevels()
 {
     $levels = array();
     $displayLevels = $this->getLevels();
     foreach ($displayLevels as $level) {
         $search = new Elite_Vaf_Model_FlexibleSearch($this->getSchema(), $this->getRequest());
         $val = $search->getValueForSelectedLevel($level);
         if (!is_null($val)) {
             $levels[$level] = $val;
         }
     }
     return $levels;
 }