/** * List of tables that follow allowedTables, disallowedTables conditions * * @return array */ protected function getTables() { $result = []; $tables = $this->connection->getTables(); foreach ($tables as $table) { $isAllowed = false; foreach ($this->allowedTables as $allowedTable) { if (strpos($table, $allowedTable) !== false) { $isAllowed = true; } } foreach ($this->disallowedTables as $disallowedTable) { if (strpos($table, $disallowedTable) !== false) { $isAllowed = false; } } if (!$isAllowed) { continue; } $result[$table] = $this->getTextColumns($table); } return $result; }