src/Titon/Db/Driver/Dialect/AbstractDialect.php
public function formatValues(Query $query) {
        $fields = $query->getData();

        switch ($query->getType()) {
            case Query::INSERT:
                return sprintf($this->getClause(self::GROUP), implode(', ', array_fill(0, count($fields), '?')));
            break;
            case Query::MULTI_INSERT:
                $value = sprintf($this->getClause(self::GROUP), implode(', ', array_fill(0, count($fields[0]), '?')));

                return implode(', ', array_fill(0, count($fields), $value));
            break;
        }

        return '';
    }
public function formatValues(Query $query) {
        $fields = $query->getData();

        switch ($query->getType()) {
            case Query::INSERT:
                return sprintf($this->getClause(self::GROUP), implode(', ', array_fill(0, count($fields), '?')));
            break;
            case Query::MULTI_INSERT:
                $value = sprintf($this->getClause(self::GROUP), implode(', ', array_fill(0, count($fields[0]), '?')));

                return implode(', ', array_fill(0, count($fields), $value));
            break;
        }

        return '';
    }
public function formatValues ( Query $ query ) { $ fields = $ query -> getData ( ) ; switch ( $ query -> getType ( ) ) { case Query :: INSERT : return sprintf ( $ this -> getClause ( self :: GROUP ) , implode ( ', ' , array_fill ( 0 , count ( $ fields ) , '?' ) ) ) ; break ; case Query :: MULTI_INSERT : $ value = sprintf ( $ this -> getClause ( self :: GROUP ) , implode ( ', ' , array_fill ( 0 , count ( $ fields [ 0 ] ) , '?' ) ) ) ; return implode ( ', ' , array_fill ( 0 , count ( $ fields ) , $ value ) ) ; break ; } return '' ; }
Format the fields values structure depending on the type of query.

@param \Titon\Db\Query $query
@return string
Format the fields values structure depending on the type of query .