ImportrunTable: pagination count workaround
Our generic "count" implementation is not yet able to cope whit this
This commit is contained in:
parent
6777911a07
commit
b104b78dde
|
@ -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()
|
public function getBaseQuery()
|
||||||
{
|
{
|
||||||
$db = $this->connection()->getConnection();
|
$db = $this->connection()->getConnection();
|
||||||
|
|
Loading…
Reference in New Issue