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