@@ 437-454 (lines=18) @@ | ||
434 | private function getDatabaseStructure() |
|
435 | { |
|
436 | // Listing all tables from database |
|
437 | if (empty($this->dumpSettings['include-tables'])) { |
|
438 | // include all tables for now, blacklisting happens later |
|
439 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
440 | array_push($this->tables, current($row)); |
|
441 | } |
|
442 | } else { |
|
443 | // include only the tables mentioned in include-tables |
|
444 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
445 | if (in_array(current($row), $this->dumpSettings['include-tables'], true)) { |
|
446 | array_push($this->tables, current($row)); |
|
447 | $elem = array_search( |
|
448 | current($row), |
|
449 | $this->dumpSettings['include-tables'] |
|
450 | ); |
|
451 | unset($this->dumpSettings['include-tables'][$elem]); |
|
452 | } |
|
453 | } |
|
454 | } |
|
455 | ||
456 | // Listing all views from database |
|
457 | if (empty($this->dumpSettings['include-views'])) { |
|
@@ 457-474 (lines=18) @@ | ||
454 | } |
|
455 | ||
456 | // Listing all views from database |
|
457 | if (empty($this->dumpSettings['include-views'])) { |
|
458 | // include all views for now, blacklisting happens later |
|
459 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
460 | array_push($this->views, current($row)); |
|
461 | } |
|
462 | } else { |
|
463 | // include only the tables mentioned in include-tables |
|
464 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
465 | if (in_array(current($row), $this->dumpSettings['include-views'], true)) { |
|
466 | array_push($this->views, current($row)); |
|
467 | $elem = array_search( |
|
468 | current($row), |
|
469 | $this->dumpSettings['include-views'] |
|
470 | ); |
|
471 | unset($this->dumpSettings['include-views'][$elem]); |
|
472 | } |
|
473 | } |
|
474 | } |
|
475 | ||
476 | // Listing all triggers from database |
|
477 | if (false === $this->dumpSettings['skip-triggers']) { |