protected function sqlValuesList($buffer_id)
	{
		$first = true;

		if (isset($this->buffers[$buffer_id])) {
			echo $this->indent, $buffer_id, "\n";
			foreach ($this->buffers[$buffer_id] as $buf) {
				if (count($buf) == 1) {
					// One argument -- insert values from array
					foreach ($buf[0] as $row) {
						if ($first) {
							$first = false;
							echo $this->sub_indent, '(';
						} else {
							echo "),\n", $this->sub_indent, '(';
						}

						echo join(', ', array_map(array($this, 'quote'), $row)); // FIXME: bind values
					}
				} else {
					throw new \Exception('Not implemented yet.');
				}
			}
			echo ')';
			echo "\n";
		}
	}
protected function sqlValuesList($buffer_id)
	{
		$first = true;

		if (isset($this->buffers[$buffer_id])) {
			echo $this->indent, $buffer_id, "\n";
			foreach ($this->buffers[$buffer_id] as $buf) {
				if (count($buf) == 1) {
					// One argument -- insert values from array
					foreach ($buf[0] as $row) {
						if ($first) {
							$first = false;
							echo $this->sub_indent, '(';
						} else {
							echo "),\n", $this->sub_indent, '(';
						}

						echo join(', ', array_map(array($this, 'quote'), $row)); // FIXME: bind values
					}
				} else {
					throw new \Exception('Not implemented yet.');
				}
			}
			echo ')';
			echo "\n";
		}
	}
protected function sqlValuesList ( $ buffer_id ) { $ first = true ; if ( isset ( $ this -> buffers [ $ buffer_id ] ) ) { echo $ this -> indent , $ buffer_id , "\n" ; foreach ( $ this -> buffers [ $ buffer_id ] as $ buf ) { if ( count ( $ buf ) == 1 ) { // One argument -- insert values from array foreach ( $ buf [ 0 ] as $ row ) { if ( $ first ) { $ first = false ; echo $ this -> sub_indent , '(' ; } else { echo "),\n" , $ this -> sub_indent , '(' ; } echo join ( ', ' , array_map ( array ( $ this , 'quote' ) , $ row ) ) ; // FIXME: bind values } } else { throw new \ Exception ( 'Not implemented yet.' ) ; } } echo ')' ; echo "\n" ; } }
Generate SQL fragment made of list values.
Generate SQL fragment made of list values .