diff options
Diffstat (limited to 'app/Pagination/TaskPagination.php')
-rw-r--r-- | app/Pagination/TaskPagination.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app/Pagination/TaskPagination.php b/app/Pagination/TaskPagination.php deleted file mode 100644 index 5fe986e7..00000000 --- a/app/Pagination/TaskPagination.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php - -namespace Kanboard\Pagination; - -use Kanboard\Core\Base; -use Kanboard\Core\Paginator; -use Kanboard\Model\TaskModel; - -/** - * Class TaskPagination - * - * @package Kanboard\Pagination - * @author Frederic Guillot - */ -class TaskPagination 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->taskFinderModel->getUserQuery($user_id); - $this->hook->reference('pagination:dashboard:task:query', $query); - - return $this->paginator - ->setUrl('DashboardController', $method, array('pagination' => 'tasks', 'user_id' => $user_id)) - ->setMax($max) - ->setOrder(TaskModel::TABLE.'.id') - ->setQuery($query) - ->calculateOnlyIf($this->request->getStringParam('pagination') === 'tasks'); - } -} |