diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-09 20:39:45 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-09 20:39:45 +0200 |
commit | 9bde377bbe85617dde280af985e033cf7de61803 (patch) | |
tree | 2d2c080a86542206f862bd6d1c14ce622aa225a8 /app/Model/Project.php | |
parent | ef95c7c28479a22e41fff35a893f05eb084e1f2c (diff) |
Start to implement task history and project activity
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r-- | app/Model/Project.php | 13 |
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); + } } |