all-in-one-event-calendar/lib/dbi/dbi-utils.php

26 lines
478 B
PHP
Raw Normal View History

2017-03-16 16:59:53 +01:00
<?php
/**
* DBI utils.
*
* @author Time.ly Network Inc.
* @since 2.2
*
* @package AI1EC
* @subpackage AI1EC.Dbi
*/
class Ai1ec_Dbi_Utils extends Ai1ec_Base {
2017-11-09 17:36:04 +01:00
/**
* Returns SQL string for INSERT statement.
*
* @param array $value Array of values.
*
* @return string SQL statement.
*/
public function array_value_to_sql_value( array $value ) {
return '(' . implode( ',', array_values( $value ) ) . ')';
}
2017-03-16 16:59:53 +01:00
}