Exemplo n.º 1
0
 /**
  * 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)));
 }