source/Application/Controller/Admin/ArticleMain.php
protected function formQueryForCopyingToCategory($newArticleId, $sUid, $sCatId, $sTime)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        return "insert into oxobject2category (oxid, oxobjectid, oxcatnid, oxtime) " .
            "VALUES (" . $oDb->quote($sUid) . ", " . $oDb->quote($newArticleId) . ", " .
            $oDb->quote($sCatId) . ", " . $oDb->quote($sTime) . ") ";
    }
protected function formQueryForCopyingToCategory($newArticleId, $sUid, $sCatId, $sTime)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        return "insert into oxobject2category (oxid, oxobjectid, oxcatnid, oxtime) " .
            "VALUES (" . $oDb->quote($sUid) . ", " . $oDb->quote($newArticleId) . ", " .
            $oDb->quote($sCatId) . ", " . $oDb->quote($sTime) . ") ";
    }
protected function formQueryForCopyingToCategory ( $ newArticleId , $ sUid , $ sCatId , $ sTime ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; return "insert into oxobject2category (oxid, oxobjectid, oxcatnid, oxtime) " . "VALUES (" . $ oDb -> quote ( $ sUid ) . ", " . $ oDb -> quote ( $ newArticleId ) . ", " . $ oDb -> quote ( $ sCatId ) . ", " . $ oDb -> quote ( $ sTime ) . ") " ; }
Forms query which is used for adding article to category.

@param string $newArticleId
@param string $sUid
@param string $sCatId
@param string $sTime

@return string
Forms query which is used for adding article to category .