src/Query/Insert.php
protected function parseData()
    {
        $values = [];
        foreach ($this->parts['data'] as $key => $data) {
            foreach ($data as $value) {
                if (!is_array($value)) {
                    $value = [$value];
                }

                foreach ($value as $insertValue) {
                    $values[$key][] = $this->getManager()->getAdapter()->quote($insertValue);
                }
            }
        }
        foreach ($values as &$value) {
            $value = "(" . implode(", ", $value) . ")";
        }

        return ' VALUES ' . implode(', ', $values);
    }
protected function parseData()
    {
        $values = [];
        foreach ($this->parts['data'] as $key => $data) {
            foreach ($data as $value) {
                if (!is_array($value)) {
                    $value = [$value];
                }

                foreach ($value as $insertValue) {
                    $values[$key][] = $this->getManager()->getAdapter()->quote($insertValue);
                }
            }
        }
        foreach ($values as &$value) {
            $value = "(" . implode(", ", $value) . ")";
        }

        return ' VALUES ' . implode(', ', $values);
    }
protected function parseData ( ) { $ values = [ ] ; foreach ( $ this -> parts [ 'data' ] as $ key => $ data ) { foreach ( $ data as $ value ) { if ( ! is_array ( $ value ) ) { $ value = [ $ value ] ; } foreach ( $ value as $ insertValue ) { $ values [ $ key ] [ ] = $ this -> getManager ( ) -> getAdapter ( ) -> quote ( $ insertValue ) ; } } } foreach ( $ values as & $ value ) { $ value = "(" . implode ( ", " , $ value ) . ")" ; } return ' VALUES ' . implode ( ', ' , $ values ) ; }
Parses INSERT data

@return string
Parses INSERT data