コード例 #1
0
ファイル: Banners.php プロジェクト: Jaree/revive-adserver
 /**
  * Move banner to different campaign
  *
  * @param int $bannerId
  * @param int $campaignId
  * @return bool  True on success
  */
 function moveBannerToCampaign($bannerId, $campaignId)
 {
     $Record = DBC::NewRecord();
     $oDbh = OA_DB::singleton();
     $tableB = $oDbh->quoteIdentifier($this->getTablePrefix() . 'banners', true);
     return $Record->update($tableB, array(), "bannerid=" . DBC::makeLiteral($bannerId), array('campaignid' => DBC::makeLiteral($campaignId)));
 }