39 $iLang = $oManufacturer->getLanguage();
42 if ($blRegenerate || !($sSeoUrl = $this->
_loadFromDb(
'oxmanufacturer', $oManufacturer->getId(), $iLang))) {
44 if ($iLang != $oManufacturer->getLanguage()) {
45 $sId = $oManufacturer->getId();
46 $oManufacturer =
oxNew(
'oxmanufacturer');
47 $oManufacturer->loadInLang($iLang, $sId);
51 if ($oManufacturer->getId() !=
'root') {
52 if (!isset($this->_aRootManufacturerUri[$iLang])) {
53 $oRootManufacturer =
oxNew(
'oxmanufacturer');
54 $oRootManufacturer->loadInLang($iLang,
'root');
55 $this->_aRootManufacturerUri[$iLang] = $this->
getManufacturerUri($oRootManufacturer, $iLang);
57 $sSeoUrl .= $this->_aRootManufacturerUri[$iLang];
60 $sSeoUrl .= $this->
_prepareTitle($oManufacturer->oxmanufacturers__oxtitle->value,
false, $oManufacturer->getLanguage()) .
'/';
61 $sSeoUrl = $this->
_processSeoUrl($sSeoUrl, $oManufacturer->getId(), $iLang);
64 $this->
_saveToDb(
'oxmanufacturer', $oManufacturer->getId(), $oManufacturer->getBaseStdLink($iLang), $sSeoUrl, $iLang);
83 $iLang = $oManufacturer->getLanguage();
85 $sStdUrl = $oManufacturer->getBaseStdLink($iLang) .
'&pgNr=' . $iPage;
86 $sParams = $sParams = (int) ($iPage + 1);
88 $sStdUrl = $this->
_trimUrl($sStdUrl, $iLang);
91 if ($blFixed === null) {
92 $blFixed = $this->
_isFixed(
'oxmanufacturers', $oManufacturer->getId(), $iLang);
95 return $this->
_getFullUrl($this->
_getPageUri($oManufacturer,
'oxmanufacturers', $sStdUrl, $sSeoUrl, $sParams, $iLang, $blFixed), $iLang);
108 if (!isset($iLang)) {
109 $iLang = $oManufacturer->getLanguage();
123 $sIdQuoted = $oDb->quote($oManufacturer->getId());
124 $oDb->execute(
"delete from oxseo where oxobjectid = $sIdQuoted and oxtype = 'oxmanufacturer'");
125 $oDb->execute(
"delete from oxobject2seodata where oxobjectid = $sIdQuoted");
139 $oManufacturer =
oxNew(
"oxmanufacturer");
140 if ($oManufacturer->loadInLang($iLang, $sObjectId)) {