| Conditions | 3 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | private function getQueryHead() |
||
| 21 | { |
||
| 22 | $sql = 'INSERT '; |
||
| 23 | |||
| 24 | if (true === $this->debug) { |
||
| 25 | $sql .= 'IGNORE '; |
||
| 26 | } |
||
| 27 | |||
| 28 | $sql .= 'INTO `'.$this->table.'` ('; |
||
| 29 | $c = 1; |
||
| 30 | $values = array_keys($this->mapping); |
||
| 31 | |||
| 32 | foreach ($values as $value) { |
||
| 33 | $sql .= '`'.$value.'`'; |
||
| 34 | $sql .= $this->appendComma($c, $values); |
||
| 35 | $c++; |
||
| 36 | } |
||
| 37 | |||
| 38 | $sql .= ') VALUES '; |
||
| 39 | |||
| 40 | return $sql; |
||
| 41 | } |
||
| 78 |