diff options
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); + } } |