57 $iLang = $oManufacturer->getLanguage();
60 if ( $blRegenerate || !( $sSeoUrl = $this->
_loadFromDb(
'oxmanufacturer', $oManufacturer->getId(), $iLang ) ) ) {
62 if ( $iLang != $oManufacturer->getLanguage() ) {
63 $sId = $oManufacturer->getId();
64 $oManufacturer =
oxNew(
'oxmanufacturer');
65 $oManufacturer->loadInLang( $iLang, $sId );
69 if ( $oManufacturer->getId() !=
'root' ) {
70 if ( !isset( $this->_aRootManufacturerUri[$iLang] ) ) {
71 $oRootManufacturer =
oxNew(
'oxmanufacturer');
72 $oRootManufacturer->loadInLang( $iLang,
'root' );
73 $this->_aRootManufacturerUri[$iLang] = $this->
getManufacturerUri( $oRootManufacturer, $iLang );
75 $sSeoUrl .= $this->_aRootManufacturerUri[$iLang];
78 $sSeoUrl .= $this->
_prepareTitle( $oManufacturer->oxmanufacturers__oxtitle->value,
false, $oManufacturer->getLanguage() ) .
'/';
79 $sSeoUrl = $this->
_processSeoUrl( $sSeoUrl, $oManufacturer->getId(), $iLang );
82 $this->
_saveToDb(
'oxmanufacturer', $oManufacturer->getId(), $oManufacturer->getBaseStdLink($iLang), $sSeoUrl, $iLang );
100 $iLang = $oManufacturer->getLanguage();
102 $sStdUrl = $oManufacturer->getBaseStdLink($iLang) .
'&pgNr=' . $iPage;
103 $sParams = $sParams = (int) ($iPage + 1);
105 $sStdUrl = $this->
_trimUrl( $sStdUrl, $iLang );
108 if ( $blFixed === null ) {
109 $blFixed = $this->
_isFixed(
'oxmanufacturers', $oManufacturer->getId(), $iLang );
111 return $this->
_getFullUrl( $this->
_getPageUri( $oManufacturer,
'oxmanufacturers', $sStdUrl, $sSeoUrl, $sParams, $iLang, $blFixed ), $iLang );
124 if (!isset($iLang)) {
125 $iLang = $oManufacturer->getLanguage();
140 $sIdQuoted = $oDb->quote( $oManufacturer->getId() );
141 $oDb->execute(
"delete from oxseo where oxobjectid = $sIdQuoted and oxtype = 'oxmanufacturer'");
142 $oDb->execute(
"delete from oxobject2seodata where oxobjectid = $sIdQuoted");
156 $oManufacturer =
oxNew(
"oxmanufacturer" );
157 if ( $oManufacturer->loadInLang( $iLang, $sObjectId ) ) {