|
@@ 299-300 (lines=2) @@
|
| 296 |
|
protected function formatTableName($table) { |
| 297 |
|
$table = trim($table, '`'); |
| 298 |
|
|
| 299 |
|
if (strpos($table, '.')) return implode('.', array_map(array($this, 'formatTableName'), explode('.', $table))); |
| 300 |
|
else return '`' . str_replace('`', '``', $table) . '`'; |
| 301 |
|
} |
| 302 |
|
|
| 303 |
|
public function update() { |
|
@@ 533-534 (lines=2) @@
|
| 530 |
|
else if (is_array($value)) { |
| 531 |
|
// non-assoc array? |
| 532 |
|
if (array_values($value) === $value) { |
| 533 |
|
if (is_array($value[0])) return implode(', ', array_map(array($this, 'sanitize'), $value)); |
| 534 |
|
else return '(' . implode(', ', array_map(array($this, 'sanitize'), $value)) . ')'; |
| 535 |
|
} |
| 536 |
|
|
| 537 |
|
$pairs = array(); |