diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-28 13:41:54 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-28 13:41:54 -0400 |
commit | 1353929a7dbd3f2e897fa7d3ab88e959ca573f9f (patch) | |
tree | 30bdbac4e466e74c3dfb4d451422f03c62bcbe41 /app/Controller/Listing.php | |
parent | ab48a09f0d674b703467975b376c5ac7352670ae (diff) |
Rename controllers
Diffstat (limited to 'app/Controller/Listing.php')
-rw-r--r-- | app/Controller/Listing.php | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/app/Controller/Listing.php b/app/Controller/Listing.php deleted file mode 100644 index 93a7b836..00000000 --- a/app/Controller/Listing.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - -namespace Kanboard\Controller; - -use Kanboard\Filter\TaskProjectFilter; -use Kanboard\Model\Task as TaskModel; - -/** - * List view controller - * - * @package controller - * @author Frederic Guillot - */ -class Listing extends BaseController -{ - /** - * Show list view for projects - * - * @access public - */ - public function show() - { - $project = $this->getProject(); - $search = $this->helper->projectHeader->getSearchQuery($project); - - $paginator = $this->paginator - ->setUrl('listing', 'show', array('project_id' => $project['id'])) - ->setMax(30) - ->setOrder(TaskModel::TABLE.'.id') - ->setDirection('DESC') - ->setQuery($this->taskLexer - ->build($search) - ->withFilter(new TaskProjectFilter($project['id'])) - ->getQuery() - ) - ->calculate(); - - $this->response->html($this->helper->layout->app('listing/show', array( - 'project' => $project, - 'title' => $project['name'], - 'description' => $this->helper->projectHeader->getDescription($project), - 'paginator' => $paginator, - ))); - } -} |