function storeTireSizeInSession()
 {
     if ($this->shouldClear()) {
         return $this->clear();
     }
     $this->clearSelection();
     $wheelSearch = new VF_Wheel_FlexibleSearch($this);
     $wheelSearch->clear();
     $_SESSION['section_width'] = $this->getParam('section_width');
     $_SESSION['aspect_ratio'] = $this->getParam('aspect_ratio');
     $_SESSION['diameter'] = $this->getParam('diameter');
     $_SESSION['tire_type'] = $this->getParam('tire_type');
 }
Esempio n. 2
0
 /**
  * store paramaters in the session
  * @return integer fit_id
  */
 function storeFitInSession()
 {
     $search = $this->flexibleSearch();
     $mapping_id = $search->storeFitInSession();
     if ($this->shouldEnableVaftireModule()) {
         $tireSearch = new VF_Tire_FlexibleSearch($search);
         $tireSearch->storeTireSizeInSession();
     }
     if ($this->shouldEnableVafWheelModule()) {
         $wheelSearch = new VF_Wheel_FlexibleSearch($search);
         $wheelSearch->storeSizeInSession();
     }
     if ($this->shouldEnableVafwheeladapterModule()) {
         $wheeladapterSearch = new VF_Wheeladapter_FlexibleSearch($search);
         $wheeladapterSearch->storeAdapterSizeInSession();
     }
     return $mapping_id;
 }