source/Core/SeoEncoder.php
public function addSeoEntry($sObjectId, $iShopId, $iLang, $sStdUrl, $sSeoUrl, $sType, $blFixed = 1, $sKeywords = '', $sDescription = '', $sParams = '', $blExclude = false, $sAltObjectId = null)
    {
        $sSeoUrl = $this->_processSeoUrl($this->_trimUrl($sSeoUrl ? $sSeoUrl : $this->_getAltUri($sAltObjectId ? $sAltObjectId : $sObjectId, $iLang)), $sObjectId, $iLang, $blExclude);
        if ($this->_saveToDb($sType, $sObjectId, $sStdUrl, $sSeoUrl, $iLang, $iShopId, $blFixed, $sParams)) {
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            //
            $sQtedObjectId = $oDb->quote($sAltObjectId ? $sAltObjectId : $sObjectId);
            $iQtedShopId = $oDb->quote($iShopId);

            $oStr = getStr();
            if ($sKeywords !== false) {
                $sKeywords = $oDb->quote($oStr->htmlspecialchars($this->encodeString($oStr->strip_tags($sKeywords), false, $iLang)));
            }

            if ($sDescription !== false) {
                $sDescription = $oDb->quote($oStr->htmlspecialchars($oStr->strip_tags($sDescription)));
            }

            $sQ = "insert into oxobject2seodata
                       ( oxobjectid, oxshopid, oxlang, oxkeywords, oxdescription )
                   values
                       ( {$sQtedObjectId}, {$iQtedShopId}, {$iLang}, " . ($sKeywords ? $sKeywords : "''") . ", " . ($sDescription ? $sDescription : "''") . " )
                   on duplicate key update
                       oxkeywords = " . ($sKeywords ? $sKeywords : "oxkeywords") . ", oxdescription = " . ($sDescription ? $sDescription : "oxdescription");
            $oDb->execute($sQ);
        }
    }
public function addSeoEntry($sObjectId, $iShopId, $iLang, $sStdUrl, $sSeoUrl, $sType, $blFixed = 1, $sKeywords = '', $sDescription = '', $sParams = '', $blExclude = false, $sAltObjectId = null)
    {
        $sSeoUrl = $this->_processSeoUrl($this->_trimUrl($sSeoUrl ? $sSeoUrl : $this->_getAltUri($sAltObjectId ? $sAltObjectId : $sObjectId, $iLang)), $sObjectId, $iLang, $blExclude);
        if ($this->_saveToDb($sType, $sObjectId, $sStdUrl, $sSeoUrl, $iLang, $iShopId, $blFixed, $sParams)) {
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            //
            $sQtedObjectId = $oDb->quote($sAltObjectId ? $sAltObjectId : $sObjectId);
            $iQtedShopId = $oDb->quote($iShopId);

            $oStr = getStr();
            if ($sKeywords !== false) {
                $sKeywords = $oDb->quote($oStr->htmlspecialchars($this->encodeString($oStr->strip_tags($sKeywords), false, $iLang)));
            }

            if ($sDescription !== false) {
                $sDescription = $oDb->quote($oStr->htmlspecialchars($oStr->strip_tags($sDescription)));
            }

            $sQ = "insert into oxobject2seodata
                       ( oxobjectid, oxshopid, oxlang, oxkeywords, oxdescription )
                   values
                       ( {$sQtedObjectId}, {$iQtedShopId}, {$iLang}, " . ($sKeywords ? $sKeywords : "''") . ", " . ($sDescription ? $sDescription : "''") . " )
                   on duplicate key update
                       oxkeywords = " . ($sKeywords ? $sKeywords : "oxkeywords") . ", oxdescription = " . ($sDescription ? $sDescription : "oxdescription");
            $oDb->execute($sQ);
        }
    }
public function addSeoEntry ( $ sObjectId , $ iShopId , $ iLang , $ sStdUrl , $ sSeoUrl , $ sType , $ blFixed = 1 , $ sKeywords = '' , $ sDescription = '' , $ sParams = '' , $ blExclude = false , $ sAltObjectId = null ) { $ sSeoUrl = $ this -> _processSeoUrl ( $ this -> _trimUrl ( $ sSeoUrl ? $ sSeoUrl : $ this -> _getAltUri ( $ sAltObjectId ? $ sAltObjectId : $ sObjectId , $ iLang ) ) , $ sObjectId , $ iLang , $ blExclude ) ; if ( $ this -> _saveToDb ( $ sType , $ sObjectId , $ sStdUrl , $ sSeoUrl , $ iLang , $ iShopId , $ blFixed , $ sParams ) ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; // $ sQtedObjectId = $ oDb -> quote ( $ sAltObjectId ? $ sAltObjectId : $ sObjectId ) ; $ iQtedShopId = $ oDb -> quote ( $ iShopId ) ; $ oStr = getStr ( ) ; if ( $ sKeywords !== false ) { $ sKeywords = $ oDb -> quote ( $ oStr -> htmlspecialchars ( $ this -> encodeString ( $ oStr -> strip_tags ( $ sKeywords ) , false , $ iLang ) ) ) ; } if ( $ sDescription !== false ) { $ sDescription = $ oDb -> quote ( $ oStr -> htmlspecialchars ( $ oStr -> strip_tags ( $ sDescription ) ) ) ; } $ sQ = "insert into oxobject2seodata
                       ( oxobjectid, oxshopid, oxlang, oxkeywords, oxdescription )
                   values
                       ( {$sQtedObjectId}, {$iQtedShopId}, {$iLang}, " . ( $ sKeywords ? $ sKeywords : "''" ) . ", " . ( $ sDescription ? $ sDescription : "''" ) . " )
                   on duplicate key update
                       oxkeywords = " . ( $ sKeywords ? $ sKeywords : "oxkeywords" ) . ", oxdescription = " . ( $ sDescription ? $ sDescription : "oxdescription" ) ; $ oDb -> execute ( $ sQ ) ; } }
Adds new seo entry to db

@param string $sObjectId    objects id
@param int    $iShopId      shop id
@param int    $iLang        objects language
@param string $sStdUrl      default url
@param string $sSeoUrl      seo url
@param string $sType        object type
@param bool   $blFixed      marker to keep seo config unchangeable
@param string $sKeywords    seo keywords
@param string $sDescription seo description
@param string $sParams      additional seo params. optional (mostly used for db indexing)
@param bool   $blExclude    exclude language prefix while building seo url
@param string $sAltObjectId alternative object id used while saving meta info (used to override object id when saving tags related info)
Adds new seo entry to db