[icinga-checkins] icinga.org: icingaweb2/feature/backend-classes-7635: DataView: query instantiation is up to the backend

git at icinga.org git at icinga.org
Tue Nov 11 15:58:57 CET 2014


Module: icingaweb2
Branch: feature/backend-classes-7635
Commit: 1557410b72dbec994c46589079a67bf33bc996a8
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=1557410b72dbec994c46589079a67bf33bc996a8

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Nov 11 15:49:27 2014 +0100

DataView: query instantiation is up to the backend

refs #7635

---

 modules/monitoring/library/Monitoring/DataView/DataView.php |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/monitoring/library/Monitoring/DataView/DataView.php b/modules/monitoring/library/Monitoring/DataView/DataView.php
index 2c4ec53..f5d7daf 100644
--- a/modules/monitoring/library/Monitoring/DataView/DataView.php
+++ b/modules/monitoring/library/Monitoring/DataView/DataView.php
@@ -44,8 +44,7 @@ abstract class DataView implements Browsable, Countable, Filterable, Sortable
     public function __construct(ConnectionInterface $connection, array $columns = null)
     {
         $this->connection = $connection;
-        $queryClass = $connection->getQueryClass($this->getQueryName());
-        $this->query = new $queryClass($this->connection->getResource(), $columns);
+        $this->query = $connection->query($this->getQueryName(), $columns);
         $this->filter = Filter::matchAll();
         $this->init();
     }



More information about the icinga-checkins mailing list