1 | <?php |
||
35 | class Insert extends StatementAbstract implements InsertStatementInterface |
||
36 | { |
||
37 | use ClauseTrait, TableTrait, SetTrait; |
||
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | public function into(/*# string */ $table) |
||
43 | { |
||
44 | return $this->table($table); |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * INSERT ... SELECT |
||
49 | * |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | public function select()/*# : SelectStatementInterface */ |
||
53 | { |
||
54 | return $this->getBuilder()->select() |
||
55 | ->setPrevious($this) // previous stmt is INSERT |
||
56 | ->col(func_get_args()) // cols from select() |
||
57 | ->table(''); // clear table list |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | protected function getConfigs()/*# : array */ |
||
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | protected function getType()/*# : string */ |
||
79 | } |
||
80 |