getJournal(); // Handle grid paging (deprecated style) $rangeInfo = $this->getGridRangeInfo($request, $this->getId()); $collector = Repo::issue()->getCollector() ->filterByContextIds([$journal->getId()]); $totalCount = $collector->getCount(); $collector->limit($rangeInfo->getCount()); $collector->offset($rangeInfo->getOffset() + max(0, $rangeInfo->getPage() - 1) * $rangeInfo->getCount()); return new \PKP\core\VirtualArrayIterator($collector->getMany()->toArray(), $totalCount, $rangeInfo->getPage(), $rangeInfo->getCount()); } /** * @copydoc GridHandler::initFeatures() */ public function initFeatures($request, $args) { return [new SelectableItemsFeature(), new PagingFeature()]; } /** * Get the row handler - override the parent row handler. We do not need grid row actions. * * @return GridRow */ protected function getRowInstance() { return new GridRow(); } }