@@ 454-471 (lines=18) @@ | ||
451 | private function getDatabaseStructure() |
|
452 | { |
|
453 | // Listing all tables from database |
|
454 | if (empty($this->dumpSettings['include-tables'])) { |
|
455 | // include all tables for now, blacklisting happens later |
|
456 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
457 | array_push($this->tables, current($row)); |
|
458 | } |
|
459 | } else { |
|
460 | // include only the tables mentioned in include-tables |
|
461 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
462 | if (in_array(current($row), $this->dumpSettings['include-tables'], true)) { |
|
463 | array_push($this->tables, current($row)); |
|
464 | $elem = array_search( |
|
465 | current($row), |
|
466 | $this->dumpSettings['include-tables'] |
|
467 | ); |
|
468 | unset($this->dumpSettings['include-tables'][$elem]); |
|
469 | } |
|
470 | } |
|
471 | } |
|
472 | ||
473 | // Listing all views from database |
|
474 | if (empty($this->dumpSettings['include-views'])) { |
|
@@ 474-491 (lines=18) @@ | ||
471 | } |
|
472 | ||
473 | // Listing all views from database |
|
474 | if (empty($this->dumpSettings['include-views'])) { |
|
475 | // include all views for now, blacklisting happens later |
|
476 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
477 | array_push($this->views, current($row)); |
|
478 | } |
|
479 | } else { |
|
480 | // include only the tables mentioned in include-tables |
|
481 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
482 | if (in_array(current($row), $this->dumpSettings['include-views'], true)) { |
|
483 | array_push($this->views, current($row)); |
|
484 | $elem = array_search( |
|
485 | current($row), |
|
486 | $this->dumpSettings['include-views'] |
|
487 | ); |
|
488 | unset($this->dumpSettings['include-views'][$elem]); |
|
489 | } |
|
490 | } |
|
491 | } |
|
492 | ||
493 | // Listing all triggers from database |
|
494 | if (false === $this->dumpSettings['skip-triggers']) { |