summaryrefslogtreecommitdiff
path: root/app/Helper/BoardHelper.php
diff options
context:
space:
mode:
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);
+ }
+}