/** * get link of current view * * @param int $iLang requested language * * @return string */ public function getLink($iLang = null) { if ($oRecomm = $this->getActiveRecommList()) { $sLink = $oRecomm->getLink($iLang); } else { $sLink = oxUBase::getLink($iLang); } $sSearch = oxConfig::getParameter('searchrecomm'); if ($sSearch) { $sLink .= (strpos($sLink, '?') === false ? '?' : '&') . "searchrecomm={$sSearch}"; } return $sLink; }
/** * get link of current view * * @param int $iLang requested language * * @return string */ public function getLink($iLang = null) { $sLink = parent::getLink($iLang); // active category if ($sVal = oxRegistry::getConfig()->getRequestParameter('cnid')) { $sLink .= (strpos($sLink, '?') === false ? '?' : '&') . "cnid={$sVal}"; } // active article if ($sVal = oxRegistry::getConfig()->getRequestParameter('anid')) { $sLink .= (strpos($sLink, '?') === false ? '?' : '&') . "anid={$sVal}"; } return $sLink; }