/** * This function retrieves information of statistical * @param int $thread_id * @param int $user_id * @param int $course_id * * @return array the information of statistical * @author Jhon Hinojosa <*****@*****.**>, * @version octubre 2008, dokeos 1.8 */ function get_statistical_information($thread_id, $user_id, $course_id) { $result = array(); $result['user_course'] = count_number_of_user_in_course($course_id); $result['post'] = count_number_of_post_in_thread($thread_id); $result['user_post'] = count_number_of_post_for_user_thread($thread_id, $user_id); return $result; }
/** * This function retrieves information of statistical * @param int Thread ID * @param int User ID * @param int Course ID * @return array the information of statistical * @author Jhon Hinojosa <*****@*****.**>, * @version octubre 2008, dokeos 1.8 */ function get_statistical_information($thread_id, $user_id, $course_id) { $stadistic = array(); $stadistic['user_course'] = count_number_of_user_in_course($course_id); $stadistic['post'] = count_number_of_post_in_thread($thread_id); $stadistic['user_post'] = count_number_of_post_for_user_thread($thread_id, $user_id); //$stadistic['average'] = get_average_of_thread_post_user(); return $stadistic; }