mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
parent
11f587aa09
commit
1557410b72
@ -44,8 +44,7 @@ abstract class DataView implements Browsable, Countable, Filterable, Sortable
|
|||||||
public function __construct(ConnectionInterface $connection, array $columns = null)
|
public function __construct(ConnectionInterface $connection, array $columns = null)
|
||||||
{
|
{
|
||||||
$this->connection = $connection;
|
$this->connection = $connection;
|
||||||
$queryClass = $connection->getQueryClass($this->getQueryName());
|
$this->query = $connection->query($this->getQueryName(), $columns);
|
||||||
$this->query = new $queryClass($this->connection->getResource(), $columns);
|
|
||||||
$this->filter = Filter::matchAll();
|
$this->filter = Filter::matchAll();
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user