From 0b87ee30eee8c953cbb209f65406200f8cec1247 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 9 Aug 2013 00:27:11 -0500 Subject: [PATCH] Minor - Added phpdoc --- main/exercice/exercise.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index 397a379555..4e05dd87f4 100644 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -6663,6 +6663,8 @@ class Exercise } /** + * Returns an HTML ribbon to show on top of the exercise result, with + * colouring depending on the success or failure of the student * @param $score * @param $weight * @param bool $check_pass_percentage @@ -6697,6 +6699,11 @@ class Exercise return $ribbon; } + /** + * Returns an array of categories' details for the questions of the current + * exercise. + * @return array + */ public function getQuestionWithCategories() { $categoryTable = Database::get_course_table(TABLE_QUIZ_CATEGORY);