summaryrefslogtreecommitdiff
path: root/app/Model/ColumnModel.php
diff options
context:
space:
mode:
authorBusfreak <Busfreak@users.noreply.github.com>2016-07-05 17:09:13 +0200
committerFrédéric Guillot <fred@kanboard.net>2016-07-05 11:09:13 -0400
commit6ccd8c11faff4a8b5209b45c140d12f94d97449b (patch)
tree74fda85e7f5d1ab359e4aa77c8b944e92da59805 /app/Model/ColumnModel.php
parentb215296f971eaf35773218740d3d6696f8dc2310 (diff)
Hide tasks within specific columns in dashboard (#2424)
Diffstat (limited to 'app/Model/ColumnModel.php')
-rw-r--r--app/Model/ColumnModel.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Model/ColumnModel.php b/app/Model/ColumnModel.php
index 795fe692..0a9c55a8 100644
--- a/app/Model/ColumnModel.php
+++ b/app/Model/ColumnModel.php
@@ -144,13 +144,14 @@ class ColumnModel extends Base
* @param string $description Column description
* @return boolean|integer
*/
- public function create($project_id, $title, $task_limit = 0, $description = '')
+ public function create($project_id, $title, $task_limit = 0, $description = '', $hide_in_dashboard = 0)
{
$values = array(
'project_id' => $project_id,
'title' => $title,
'task_limit' => intval($task_limit),
'position' => $this->getLastColumnPosition($project_id) + 1,
+ 'hide_in_dashboard' => $hide_in_dashboard,
'description' => $description,
);
@@ -167,11 +168,12 @@ class ColumnModel extends Base
* @param string $description Optional description
* @return boolean
*/
- public function update($column_id, $title, $task_limit = 0, $description = '')
+ public function update($column_id, $title, $task_limit = 0, $description = '', $hide_in_dashboard = 0)
{
return $this->db->table(self::TABLE)->eq('id', $column_id)->update(array(
'title' => $title,
'task_limit' => intval($task_limit),
+ 'hide_in_dashboard' => $hide_in_dashboard,
'description' => $description,
));
}