Start to implement task history and project activity

This commit is contained in:
Frédéric Guillot
2014-09-09 20:39:45 +02:00
parent ef95c7c284
commit 9bde377bbe
29 changed files with 644 additions and 45 deletions

View File

@@ -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);
}
}