コード例 #1
0
ファイル: Pgsql.php プロジェクト: ballistiq/revive-adserver
 /**
  * Prepares a VALUES part of PostgreSQL stored procedure.
  *
  * @param array $aIgnore  List of columns to ignore (count is not included by default)
  * @return string  Comma separated VALUES list
  */
 protected function _getSPValuesList(Plugins_DeliveryLog $component, $aIgnore = array(Plugins_DeliveryLog::COUNT_COLUMN))
 {
     $values = '';
     $c = 1;
     $comma = '';
     $aColumns = $component->getBucketTableColumns();
     foreach ($aColumns as $columnName => $columnType) {
         if (in_array($columnName, $aIgnore)) {
             continue;
         }
         $values .= $comma . '$' . $c;
         $comma = ', ';
         $c++;
     }
     return $values;
 }