source/Application/Controller/Admin/ManufacturerMainAjax.php
protected function formArticleToManufacturerAdditionQuery($manufacturerId, $articlesToAdd)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        return "
            UPDATE oxarticles
            SET oxmanufacturerid = " . $database->quote($manufacturerId) . "
            WHERE oxid IN ( " . implode(", ", $database->quoteArray($articlesToAdd)) . " )";
    }
protected function formArticleToManufacturerAdditionQuery($manufacturerId, $articlesToAdd)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        return "
            UPDATE oxarticles
            SET oxmanufacturerid = " . $database->quote($manufacturerId) . "
            WHERE oxid IN ( " . implode(", ", $database->quoteArray($articlesToAdd)) . " )";
    }
protected function formArticleToManufacturerAdditionQuery ( $ manufacturerId , $ articlesToAdd ) { $ database = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; return "
            UPDATE oxarticles
            SET oxmanufacturerid = " . $ database -> quote ( $ manufacturerId ) . "
            WHERE oxid IN ( " . implode ( ", " , $ database -> quoteArray ( $ articlesToAdd ) ) . " )" ; }
Forms and returns query for articles addition to manufacturer.

@param string $manufacturerId Manufacturer id.
@param array  $articlesToAdd  Array of article ids to be added to manufacturer.

@return string
Forms and returns query for articles addition to manufacturer .