public static function dc_insert_assoc( $dc, $table_name, $array ) { $target_table = mysql_real_escape_string( "${dc}_${table_name}" ); if ( CopyTools::sane_key_exists( "add_transaction_id", $array ) ) { $array["add_transaction_id"] = getUpdateTransactionId(); } return CopyTools::mysql_insert_assoc( $target_table, $array ); }