summaryrefslogtreecommitdiff
path: root/app/Pagination/SubtaskPagination.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Pagination/SubtaskPagination.php')
-rw-r--r--app/Pagination/SubtaskPagination.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/app/Pagination/SubtaskPagination.php b/app/Pagination/SubtaskPagination.php
deleted file mode 100644
index c55d0fb4..00000000
--- a/app/Pagination/SubtaskPagination.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace Kanboard\Pagination;
-
-use Kanboard\Core\Base;
-use Kanboard\Core\Paginator;
-use Kanboard\Model\SubtaskModel;
-use Kanboard\Model\TaskModel;
-
-/**
- * Class SubtaskPagination
- *
- * @package Kanboard\Pagination
- * @author Frederic Guillot
- */
-class SubtaskPagination extends Base
-{
- /**
- * Get dashboard pagination
- *
- * @access public
- * @param integer $user_id
- * @param string $method
- * @param integer $max
- * @return Paginator
- */
- public function getDashboardPaginator($user_id, $method, $max)
- {
- $query = $this->subtaskModel->getUserQuery($user_id, array(SubtaskModel::STATUS_TODO, SubtaskModel::STATUS_INPROGRESS));
- $this->hook->reference('pagination:dashboard:subtask:query', $query);
-
- return $this->paginator
- ->setUrl('DashboardController', $method, array('pagination' => 'subtasks', 'user_id' => $user_id))
- ->setMax($max)
- ->setOrder(TaskModel::TABLE.'.id')
- ->setQuery($query)
- ->calculateOnlyIf($this->request->getStringParam('pagination') === 'subtasks');
- }
-}