function storeTireSizeInSession() { if ($this->shouldClear()) { return $this->clear(); } $this->clearSelection(); $wheelSearch = new Elite_Vafwheel_Model_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'); }
/** * 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; }