/** * create a forum * @param string title * @param string text/description * @return added forum's id */ function createForum($title, $text, $course_id) { $forumsDAO = new ForumsDAO(); $forums_id = $forumsDAO->Create($title, $text); $forumsCoursesDAO = new ForumsCoursesDAO(); $forumsCoursesDAO->Create($forums_id, $course_id); return $forums_id; }