summaryrefslogtreecommitdiff
path: root/app/Model/Project.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-09 20:39:45 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-09 20:39:45 +0200
commit9bde377bbe85617dde280af985e033cf7de61803 (patch)
tree2d2c080a86542206f862bd6d1c14ce622aa225a8 /app/Model/Project.php
parentef95c7c28479a22e41fff35a893f05eb084e1f2c (diff)
Start to implement task history and project activity
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r--app/Model/Project.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php
index 3298b496..1da5c164 100644
--- a/app/Model/Project.php
+++ b/app/Model/Project.php
@@ -710,4 +710,17 @@ class Project extends Base
$this->event->attach($event_name, $listener);
}
}
+
+ /**
+ * Get project activity
+ *
+ * @access public
+ * @param integer $project_id Project id
+ * @return array
+ */
+ public function getActivity($project_id)
+ {
+ // TODO: merge comments and subtasks activity
+ return $this->taskHistory->getAllContentByProjectId($project_id);
+ }
}