Exemple #1
0
 /** @return VF_FlexibleSearch */
 function flexibleSearch()
 {
     if (!$this->flexibleSearch instanceof VF_FlexibleSearch) {
         $this->flexibleSearch = new VF_FlexibleSearch($this->schema(), $this->getRequest());
         $this->flexibleSearch->setConfig($this->getConfig());
     }
     if ($this->shouldEnableVafWheelModule()) {
         $this->flexibleSearch = new VF_Wheel_FlexibleSearch($this->flexibleSearch);
     }
     if ($this->shouldEnableVaftireModule()) {
         $this->flexibleSearch = new VF_Tire_FlexibleSearch($this->flexibleSearch);
     }
     if ($this->shouldEnableVafwheeladapterModule()) {
         $this->flexibleSearch = new VF_Wheeladapter_FlexibleSearch($this->flexibleSearch);
     }
     return $this->flexibleSearch;
 }
 /** @return VF_FlexibleSearch */
 function flexibleSearch()
 {
     $search = new VF_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;
 }