select(); $query->paused($this->getUserId(), $this->getCategoryUid(), $this->getTaskId(), $this->getCaseNumber()); $query->joinPreviousIndex(); $query->joinPreviousUser(); $query->orderBy($this->getOrderByColumn(), $this->getOrderDirection()); $query->offset($this->getOffset())->limit($this->getLimit()); $result = $query->get()->values()->toArray(); return $result; } /** * Get the total for the paused cases list * * @return int */ public function getCounter() { $total = $this->getData(); return count($total); } }