@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | * @param int $userMaxScore |
266 | 266 | * @param int $sessionId |
267 | 267 | * |
268 | - * @return bool Returns -1 on error |
|
268 | + * @return boolean|null Returns -1 on error |
|
269 | 269 | */ |
270 | 270 | public function import_manifest( |
271 | 271 | $courseCode, |
@@ -960,7 +960,7 @@ discard block |
||
960 | 960 | * @param string course Code |
961 | 961 | * @param string LP ID (in database) |
962 | 962 | * @param string Manifest file path (optional if lp_id defined) |
963 | - * @return integer New LP ID or false on failure |
|
963 | + * @return boolean New LP ID or false on failure |
|
964 | 964 | * TODO @TODO Implement imsmanifest_path parameter |
965 | 965 | */ |
966 | 966 | public function reimport_manifest($courseCode, $lp_id = null, $imsmanifest_path = '') |
@@ -9,6 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Validates imported data. |
12 | + * @param Ddeboer\DataImport\Reader\CsvReader $classes |
|
12 | 13 | */ |
13 | 14 | function validate_data($classes) |
14 | 15 | { |
@@ -37,7 +38,7 @@ discard block |
||
37 | 38 | /** |
38 | 39 | * Save imported class data to database |
39 | 40 | * |
40 | - * @param $classes |
|
41 | + * @param Ddeboer\DataImport\Reader\CsvReader $classes |
|
41 | 42 | * |
42 | 43 | * @return int |
43 | 44 | */ |
@@ -11,6 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Validates imported data. |
14 | + * @param Ddeboer\DataImport\Reader\CsvReader $user_classes |
|
14 | 15 | */ |
15 | 16 | function validate_data($user_classes) |
16 | 17 | { |
@@ -67,6 +68,7 @@ discard block |
||
67 | 68 | |
68 | 69 | /** |
69 | 70 | * Saves imported data. |
71 | + * @param Ddeboer\DataImport\Reader\CsvReader $users_classes |
|
70 | 72 | */ |
71 | 73 | function save_data($users_classes, $deleteUsersNotInList = false) |
72 | 74 | { |
@@ -119,7 +121,7 @@ discard block |
||
119 | 121 | /** |
120 | 122 | * Reads a CSV-file. |
121 | 123 | * @param string $file Path to the CSV-file |
122 | - * @return array All course-information read from the file |
|
124 | + * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file |
|
123 | 125 | */ |
124 | 126 | function parse_csv_data($file) |
125 | 127 | { |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
244 | - * @param doc_id id of document (id in mainDb.document table) |
|
244 | + * @param doc_id string of document (id in mainDb.document table) |
|
245 | 245 | * @author Sebastien Piraux <[email protected]> |
246 | 246 | * @desc Record information for upload event |
247 | 247 | * used in the works tool to record informations when |
@@ -317,6 +317,9 @@ discard block |
||
317 | 317 | * @param int session_id |
318 | 318 | * @param int learnpath_id (id of the learnpath) |
319 | 319 | * @param int learnpath_item_id (id of the learnpath_item) |
320 | + * @param integer $score |
|
321 | + * @param integer $weighting |
|
322 | + * @param integer $session_id |
|
320 | 323 | * @return bool |
321 | 324 | * |
322 | 325 | * @author Sebastien Piraux <[email protected]> |
@@ -411,7 +414,9 @@ discard block |
||
411 | 414 | * @param integer Session ID (from the session table). Default value of null means "get from context". |
412 | 415 | * @param integer Learnpath ID (from c_lp table). Default value of null means "get from context". |
413 | 416 | * @param integer Learnpath item ID (from the c_lp_item table). Default value of null means "get from context". |
414 | - * @return boolean Result of the insert query |
|
417 | + * @param integer $exe_id |
|
418 | + * @param integer $position |
|
419 | + * @return false|string Result of the insert query |
|
415 | 420 | */ |
416 | 421 | public static function saveQuestionAttempt( |
417 | 422 | $score, |
@@ -976,10 +981,10 @@ discard block |
||
976 | 981 | } |
977 | 982 | |
978 | 983 | /** |
979 | - * @param $user_id |
|
984 | + * @param integer $user_id |
|
980 | 985 | * @param $exerciseId |
981 | - * @param $lp_id |
|
982 | - * @param $lp_item_id |
|
986 | + * @param integer $lp_id |
|
987 | + * @param integer $lp_item_id |
|
983 | 988 | * @return int |
984 | 989 | */ |
985 | 990 | public static function get_attempt_count_not_finished( |
@@ -1164,6 +1169,7 @@ discard block |
||
1164 | 1169 | * @param int exercise id |
1165 | 1170 | * @param int $courseId |
1166 | 1171 | * @param int session id |
1172 | + * @param integer $user_id |
|
1167 | 1173 | * @return array with the results |
1168 | 1174 | * |
1169 | 1175 | */ |
@@ -1256,6 +1262,7 @@ discard block |
||
1256 | 1262 | * @param int exercise id |
1257 | 1263 | * @param int $courseId |
1258 | 1264 | * @param int session id |
1265 | + * @param integer $user_id |
|
1259 | 1266 | * @return array with the results |
1260 | 1267 | * |
1261 | 1268 | */ |
@@ -1347,6 +1354,8 @@ discard block |
||
1347 | 1354 | * @param int lp id |
1348 | 1355 | * @param int lp item id |
1349 | 1356 | * @param string order asc or desc |
1357 | + * @param integer $courseId |
|
1358 | + * @param string $order |
|
1350 | 1359 | * @return array with the results |
1351 | 1360 | * |
1352 | 1361 | */ |
@@ -1413,7 +1422,7 @@ discard block |
||
1413 | 1422 | * @param int exercise id |
1414 | 1423 | * @param int $courseId |
1415 | 1424 | * @param int session id |
1416 | - * @return array with the results |
|
1425 | + * @return string with the results |
|
1417 | 1426 | * |
1418 | 1427 | */ |
1419 | 1428 | public static function count_exercise_attempts_by_user( |
@@ -1602,7 +1611,7 @@ discard block |
||
1602 | 1611 | * @param int exercise id |
1603 | 1612 | * @param int course id |
1604 | 1613 | * @param int session id |
1605 | - * @return array with the results |
|
1614 | + * @return integer with the results |
|
1606 | 1615 | * |
1607 | 1616 | */ |
1608 | 1617 | public static function get_count_exercises_attempted_by_course( |
@@ -1836,7 +1845,7 @@ discard block |
||
1836 | 1845 | * @param int $user_id ID of the user |
1837 | 1846 | * @param int $sessionId ID of the session (if any) |
1838 | 1847 | * |
1839 | - * @return bool |
|
1848 | + * @return boolean|null |
|
1840 | 1849 | */ |
1841 | 1850 | public static function eventCourseLogin($courseId, $user_id, $sessionId) |
1842 | 1851 | { |
@@ -2009,7 +2018,7 @@ discard block |
||
2009 | 2018 | * in a hh:mm:ss format. If int, we consider it is expressed in hours. |
2010 | 2019 | * @param string $ip IP address to go on record for this time record |
2011 | 2020 | * |
2012 | - * @return True on successful insertion, false otherwise |
|
2021 | + * @return boolean on successful insertion, false otherwise |
|
2013 | 2022 | */ |
2014 | 2023 | public static function eventAddVirtualCourseTime( |
2015 | 2024 | $courseId, |