Skip to content

Commit 54f284c

Browse files
committed
Minor: Add code documentatoin to Exercise::getQuestionForTeacher()
1 parent a0ee41d commit 54f284c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

main/exercise/exercise.class.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8304,10 +8304,14 @@ public function getUnformattedTitle()
83048304
}
83058305

83068306
/**
8307-
* @param int $start
8308-
* @param int $length
8309-
*
8310-
* @return array
8307+
* Get the question IDs from quiz_rel_question for the current quiz,
8308+
* using the parameters as the arguments to the SQL's LIMIT clause.
8309+
* Because the exercise_id is known, it also comes with a filter on
8310+
* the session, so sessions are not specified here.
8311+
* @param int $start At which question do we want to start the list
8312+
* @param int $length Up to how many results we want
8313+
*
8314+
* @return array A list of question IDs
83118315
*/
83128316
public function getQuestionForTeacher($start = 0, $length = 10)
83138317
{

0 commit comments

Comments
 (0)