From 98fd4995999a73d2f4c5cc50ed73c87e0d010e7f Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 28 Apr 2021 13:40:54 +0200 Subject: [PATCH] rename executeQuery method to a better name --- src/Application/Model/ExportBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application/Model/ExportBase.php b/src/Application/Model/ExportBase.php index bf69d7e..08b8ea1 100644 --- a/src/Application/Model/ExportBase.php +++ b/src/Application/Model/ExportBase.php @@ -50,7 +50,7 @@ abstract class ExportBase implements QueryBase */ public function run($format = RendererBridge::FORMAT_CSV) { - [ $rows, $fieldNames ] = $this->executeQuery( $this->getQuery() ); + [ $rows, $fieldNames ] = $this->getExportData( $this->getQuery() ); $content = $this->renderContent($rows, $fieldNames, $format); @@ -132,7 +132,7 @@ abstract class ExportBase implements QueryBase * @throws DatabaseConnectionException * @throws DatabaseErrorException */ - protected function executeQuery( array $query ): array + public function getExportData( array $query ): array { [ $queryString, $parameters ] = $query;