/** * Returns Manufacturer SEO url for specified page * * @param oxManufacturer $oManufacturer manufacturer object * @param int $iPage page tu prepare number * @param int $iLang language * @param bool $blFixed fixed url marker (default is null) * * @return string */ public function getManufacturerPageUrl($oManufacturer, $iPage, $iLang = null, $blFixed = null) { if (!isset($iLang)) { $iLang = $oManufacturer->getLanguage(); } $sStdUrl = $oManufacturer->getBaseStdLink($iLang) . '&pgNr=' . $iPage; $sParams = $sParams = (int) ($iPage + 1); $sStdUrl = $this->_trimUrl($sStdUrl, $iLang); $sSeoUrl = $this->getManufacturerUri($oManufacturer, $iLang) . $sParams . "/"; if ($blFixed === null) { $blFixed = $this->_isFixed('oxmanufacturers', $oManufacturer->getId(), $iLang); } return $this->_getFullUrl($this->_getPageUri($oManufacturer, 'oxmanufacturers', $sStdUrl, $sSeoUrl, $sParams, $iLang, $blFixed), $iLang); }
/** * Encodes manufacturer category URLs into SEO format * * @param oxManufacturer $oManufacturer Manufacturer object * @param int $iLang language * * @return string */ public function getManufacturerUrl($oManufacturer, $iLang = null) { if (!isset($iLang)) { $iLang = $oManufacturer->getLanguage(); } return $this->_getFullUrl($this->getManufacturerUri($oManufacturer, $iLang), $iLang); }