A super easy PHP Framework for web development!
				https://github.com/exacti/phacil-framework
			
			
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							37 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							37 lines
						
					
					
						
							1.1 KiB
						
					
					
				<?php
 | 
						|
/**
 | 
						|
 * Copyright © 2024 ExacTI Technology Solutions. All rights reserved.
 | 
						|
 * GPLv3 General License.
 | 
						|
 * https://exacti.com.br
 | 
						|
 * Phacil PHP Framework - https://github.com/exacti/phacil-framework
 | 
						|
 */
 | 
						|
 | 
						|
namespace Phacil\Framework\MagiQL\Builder\Syntax\Adapt\SQLite3;
 | 
						|
 | 
						|
use Phacil\Framework\MagiQL\Builder\Syntax\InsertWriter as GenericWriter;
 | 
						|
use Phacil\Framework\MagiQL\Api\BuilderInterface;
 | 
						|
use Phacil\Framework\MagiQL\Builder\Syntax\PlaceholderWriter;
 | 
						|
use Phacil\Framework\MagiQL\Builder\Syntax\Adapt\SQLite3\ColumnWriter;
 | 
						|
 | 
						|
class InsertWriter extends GenericWriter
 | 
						|
{
 | 
						|
	/**
 | 
						|
	 * @param \Phacil\Framework\MagiQL\Api\BuilderInterface $writer
 | 
						|
	 * @param PlaceholderWriter $placeholder
 | 
						|
	 */
 | 
						|
	public function __construct(BuilderInterface $writer, PlaceholderWriter $placeholder)
 | 
						|
	{
 | 
						|
		$this->writer = $writer;
 | 
						|
		$this->columnWriter = new ColumnWriter($this->writer, $placeholder);
 | 
						|
	}
 | 
						|
 | 
						|
	/**
 | 
						|
	 * @param $columns
 | 
						|
	 *
 | 
						|
	 * @return string
 | 
						|
	 */
 | 
						|
	protected function writeQueryColumns($columns)
 | 
						|
	{
 | 
						|
		return $this->writeCommaSeparatedValues($columns, $this->columnWriter, 'writeColumnWithoutTable');
 | 
						|
	}
 | 
						|
}
 | 
						|
 |