ImportrunTable: pagination count workaround

Our generic "count" implementation is not yet able to cope whit this
This commit is contained in:
Thomas Gelf 2015-07-24 15:23:58 +02:00
parent 6777911a07
commit b104b78dde
1 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,17 @@ class ImportrunTable extends QuickTable
);
}
public function count()
{
$db = $this->connection()->getConnection();
return $db->fetchOne(
$db->select()->from(
array('sub' => $this->getBaseQuery()->columns($this->getColumns())),
'COUNT(*)'
)
);
}
public function getBaseQuery()
{
$db = $this->connection()->getConnection();