summaryrefslogtreecommitdiff
path: root/app/Model/Board.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/Board.php')
-rw-r--r--app/Model/Board.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Model/Board.php b/app/Model/Board.php
index 0e2cbaaa..7217542d 100644
--- a/app/Model/Board.php
+++ b/app/Model/Board.php
@@ -403,6 +403,18 @@ class Board extends Base
}
/**
+ * Get a column title by the id
+ *
+ * @access public
+ * @param integer $column_id
+ * @return integer
+ */
+ public function getColumnTitleById($column_id)
+ {
+ return $this->db->table(self::TABLE)->eq('id', $column_id)->findOneColumn('title');
+ }
+
+ /**
* Get the position of the last column for a given project
*
* @access public