public function Set($params) { $this->_current_url_no_lacate = \Av\UrlControllerHelper::BuildUrl($params); $params[self::COUNTRY_ID] = \Av\Localization\LocalizationController::GetLocale()->GetCountryId(); $params[self::LANGUAGE_ID] = \Av\Localization\LocalizationController::GetLocale()->GetLanguageId(); $this->_current_url = \Av\UrlControllerHelper::BuildUrl($params); }
/** * Returns only site map "sitemap.xml?map=0,0" * @param array $params */ public function GetSitemapIndex($params = null) { // $oLocaleLoade = new LocalizationLocaleModel(); // $oMenuLoader = new MenuController(); // $allLocale = $oLocaleLoade->GetAllLocaleIndexes(); // foreach($allLocale as $locale) // { // $params[\Av\Component\Menu\iMenuModelInterface::LOCALE] = $locale; // $allMenus = $oMenuLoader->LoadMenu($params); // $this->AddDebug(__METHOD__ . " #" . __LINE__ ." all languages" .print_r($allLocale,true)); // $this->AddDebug(__METHOD__ . " #" . __LINE__ ." all menues" .print_r($allMenus,true)); // } return array(\Av\UrlControllerHelper::BuildUrl(array(\Av\UrlControllerHelper::URL => \RouterSettings::GetBaseUrl() . DIRECTORY_SEPARATOR . \SitemapSettings::GetSitemapFilename(), \Av\UrlControllerHelper::PARAMS => array(self::MAP_PARAM => "0,0")))); }