diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-14 16:11:13 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-14 16:11:13 -0500 |
commit | f7e4c3928aba9cb7f5222cb4af67846312bbb435 (patch) | |
tree | 78f5854a0bdc538c977bad718a11d605a4caaca6 /app/Model/TaskFinder.php | |
parent | 364382b1b58db8bf1bd2c8866e21c869a7a5d6d0 (diff) |
Refactoring/simplification of the pull-request about links
Diffstat (limited to 'app/Model/TaskFinder.php')
-rw-r--r-- | app/Model/TaskFinder.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/app/Model/TaskFinder.php b/app/Model/TaskFinder.php index cf756cd8..98ece4e1 100644 --- a/app/Model/TaskFinder.php +++ b/app/Model/TaskFinder.php @@ -3,7 +3,6 @@ namespace Model; use PDO; -use Model\TaskLink; /** * Task Finder model @@ -130,29 +129,6 @@ class TaskFinder extends Base ->asc('tasks.position') ->findAll(); } - - /** - * Get ids and names of all (limited by $limit) tasks for a given project and status - * - * @access public - * @param integer $project_id Project id - * @param integer $status_id Status id - * @param integer $exclude_id Exclude this task id in the result - * @param integer $limit Number of tasks to list - * @return array - */ - public function getList($project_id, $status_id = Task::STATUS_OPEN, $exclude_id=null, $limit=50) - { - $sql = $this->db - ->hashtable(Task::TABLE) - ->eq('project_id', $project_id) - ->eq('is_active', $status_id) - ->limit($limit); - if (null != $exclude_id) { - $sql->neq('id', $exclude_id); - } - return $sql->getAll('id', 'title'); - } /** * Get all tasks for a given project and status |