summaryrefslogtreecommitdiff
path: root/app/Helper/BoardHelper.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-04 20:10:34 -0500
committerFrederic Guillot <fred@kanboard.net>2016-03-04 20:10:34 -0500
commit8f3e2b2e5c62a6130f6c8867ab335fb4c1a32c5c (patch)
treece28cdc2dba9c31560ef753ac1b4dc39d567b7a6 /app/Helper/BoardHelper.php
parentf32507d423c46e8e9612b5239728e6c617e4cbcb (diff)
Helper refactoring
Diffstat (limited to 'app/Helper/BoardHelper.php')
-rw-r--r--app/Helper/BoardHelper.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/Helper/BoardHelper.php b/app/Helper/BoardHelper.php
new file mode 100644
index 00000000..a86a6c18
--- /dev/null
+++ b/app/Helper/BoardHelper.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace Kanboard\Helper;
+
+use Kanboard\Core\Base;
+
+/**
+ * Board Helper
+ *
+ * @package helper
+ * @author Frederic Guillot
+ */
+class BoardHelper extends Base
+{
+ /**
+ * Return true if tasks are collapsed
+ *
+ * @access public
+ * @param integer $project_id
+ * @return boolean
+ */
+ public function isCollapsed($project_id)
+ {
+ return $this->userSession->isBoardCollapsed($project_id);
+ }
+}