source/Core/SeoEncoder.php
public function markAsExpired($sId, $iShopId = null, $iExpStat = 1, $iLang = null, $sParams = null)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sWhere = $sId ? "where oxobjectid =  " . $oDb->quote($sId) : '';
        $sWhere .= isset($iShopId) ? ($sWhere ? " and oxshopid = " . $oDb->quote($iShopId) : "where oxshopid = " . $oDb->quote($iShopId)) : '';
        $sWhere .= !is_null($iLang) ? ($sWhere ? " and oxlang = '{$iLang}'" : "where oxlang = '{$iLang}'") : '';
        $sWhere .= $sParams ? ($sWhere ? " and {$sParams}" : "where {$sParams}") : '';

        $sQ = "update oxseo set oxexpired =  " . $oDb->quote($iExpStat) . " $sWhere ";
        $oDb->execute($sQ);
    }
public function markAsExpired($sId, $iShopId = null, $iExpStat = 1, $iLang = null, $sParams = null)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sWhere = $sId ? "where oxobjectid =  " . $oDb->quote($sId) : '';
        $sWhere .= isset($iShopId) ? ($sWhere ? " and oxshopid = " . $oDb->quote($iShopId) : "where oxshopid = " . $oDb->quote($iShopId)) : '';
        $sWhere .= !is_null($iLang) ? ($sWhere ? " and oxlang = '{$iLang}'" : "where oxlang = '{$iLang}'") : '';
        $sWhere .= $sParams ? ($sWhere ? " and {$sParams}" : "where {$sParams}") : '';

        $sQ = "update oxseo set oxexpired =  " . $oDb->quote($iExpStat) . " $sWhere ";
        $oDb->execute($sQ);
    }
public function markAsExpired ( $ sId , $ iShopId = null , $ iExpStat = 1 , $ iLang = null , $ sParams = null ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sWhere = $ sId ? "where oxobjectid =  " . $ oDb -> quote ( $ sId ) : '' ; $ sWhere .= isset ( $ iShopId ) ? ( $ sWhere ? " and oxshopid = " . $ oDb -> quote ( $ iShopId ) : "where oxshopid = " . $ oDb -> quote ( $ iShopId ) ) : '' ; $ sWhere .= ! is_null ( $ iLang ) ? ( $ sWhere ? " and oxlang = '{$iLang}'" : "where oxlang = '{$iLang}'" ) : '' ; $ sWhere .= $ sParams ? ( $ sWhere ? " and {$sParams}" : "where {$sParams}" ) : '' ; $ sQ = "update oxseo set oxexpired =  " . $ oDb -> quote ( $ iExpStat ) . " $sWhere " ; $ oDb -> execute ( $ sQ ) ; }
Marks object seo records as expired

@param string $sId      changed object id. If null is passed, object dependency is not checked
@param int    $iShopId  active shop id. Shop id must be passed uf you want to do shop level update (default null)
@param int    $iExpStat expiration status: 1 - standard expiration
@param int    $iLang    active language (optiona;)
@param string $sParams  additional params
Marks object seo records as expired