Exemplo n.º 1
0
 function storeSizeInSession()
 {
     if ($this->shouldClear()) {
         $this->clear();
     }
     if (!$this->lugCount() || !$this->studSpread()) {
         return;
     }
     $this->clearSelection();
     $tireSearch = new VF_Tire_FlexibleSearch($this);
     $tireSearch->clear();
     $_SESSION['lug_count'] = $this->lugCount();
     $_SESSION['stud_spread'] = $this->studSpread();
 }
Exemplo 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;
 }