function storeSizeInSession() { if ($this->shouldClear()) { $this->clear(); } if (!$this->lugCount() || !$this->studSpread()) { return; } $this->clearSelection(); $tireSearch = new Elite_Vaftire_Model_FlexibleSearch($this); $tireSearch->clear(); $_SESSION['lug_count'] = $this->lugCount(); $_SESSION['stud_spread'] = $this->studSpread(); }
/** * store paramaters in the session * @return integer fit_id */ function storeFitInSession() { $search = $this->flexibleSearch(); $mapping_id = $search->storeFitInSession(); if (file_exists(ELITE_PATH . '/Vaftire')) { $tireSearch = new Elite_Vaftire_Model_FlexibleSearch($search); $tireSearch->storeTireSizeInSession(); } if (file_exists(ELITE_PATH . '/Vafwheel')) { $wheelSearch = new Elite_Vafwheel_Model_FlexibleSearch($search); $wheelSearch->storeSizeInSession(); } if (file_exists(ELITE_PATH . '/Vafwheeladapter')) { $wheeladapterSearch = new Elite_Vafwheeladapter_Model_FlexibleSearch($search); $wheeladapterSearch->storeAdapterSizeInSession(); } return $mapping_id; }