@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | * @param int $questionId Question ID |
26 | 26 | * @param int $resultsDisabled |
27 | 27 | * @param string $originalStudentAnswer |
28 | + * @param boolean $showTotalScoreAndUserChoices |
|
28 | 29 | * |
29 | 30 | * @return void |
30 | 31 | */ |
@@ -71,6 +72,11 @@ discard block |
||
71 | 72 | * @param string Answer text |
72 | 73 | * @param int Exercise ID |
73 | 74 | * @param int Question ID |
75 | + * @param integer $feedback_type |
|
76 | + * @param string $answer |
|
77 | + * @param integer $id |
|
78 | + * @param integer $questionId |
|
79 | + * @param boolean|string $showTotalScoreAndUserChoices |
|
74 | 80 | * @return void |
75 | 81 | */ |
76 | 82 | public static function display_calculated_answer( |
@@ -110,6 +116,9 @@ discard block |
||
110 | 116 | * @param string Answer text |
111 | 117 | * @param int Exercise ID |
112 | 118 | * @param int Question ID |
119 | + * @param integer $feedback_type |
|
120 | + * @param integer $exe_id |
|
121 | + * @param integer $questionId |
|
113 | 122 | * @return void |
114 | 123 | */ |
115 | 124 | public static function display_free_answer( |
@@ -139,11 +148,11 @@ discard block |
||
139 | 148 | } |
140 | 149 | |
141 | 150 | /** |
142 | - * @param $feedback_type |
|
151 | + * @param integer $feedback_type |
|
143 | 152 | * @param $answer |
144 | - * @param $id |
|
145 | - * @param $questionId |
|
146 | - * @param null $nano |
|
153 | + * @param integer $id |
|
154 | + * @param integer $questionId |
|
155 | + * @param Nanogong|null $nano |
|
147 | 156 | * @param int $results_disabled |
148 | 157 | */ |
149 | 158 | public static function display_oral_expression_answer( |
@@ -195,6 +204,7 @@ discard block |
||
195 | 204 | * @param string $answerComment |
196 | 205 | * @param int $resultsDisabled |
197 | 206 | * @param int $orderColor |
207 | + * @param boolean $showTotalScoreAndUserChoices |
|
198 | 208 | */ |
199 | 209 | public static function display_hotspot_answer( |
200 | 210 | $feedback_type, |
@@ -279,6 +289,13 @@ discard block |
||
279 | 289 | * @param integer Exercise ID |
280 | 290 | * @param integer Question ID |
281 | 291 | * @param boolean Whether to show the answer comment or not |
292 | + * @param integer $answerType |
|
293 | + * @param string $answer |
|
294 | + * @param string $answerComment |
|
295 | + * @param integer $answerCorrect |
|
296 | + * @param integer $id |
|
297 | + * @param integer $questionId |
|
298 | + * @param boolean $showTotalScoreAndUserChoices |
|
282 | 299 | * @return void |
283 | 300 | */ |
284 | 301 | public static function display_unique_or_multiple_answer( |
@@ -375,6 +392,14 @@ discard block |
||
375 | 392 | * @param integer Exercise ID |
376 | 393 | * @param integer Question ID |
377 | 394 | * @param boolean Whether to show the answer comment or not |
395 | + * @param integer $feedback_type |
|
396 | + * @param integer $answerType |
|
397 | + * @param string $answer |
|
398 | + * @param string $answerComment |
|
399 | + * @param integer $answerCorrect |
|
400 | + * @param integer $id |
|
401 | + * @param integer $questionId |
|
402 | + * @param boolean $showTotalScoreAndUserChoices |
|
378 | 403 | * @return void |
379 | 404 | */ |
380 | 405 | public static function display_multiple_answer_true_false( |
@@ -479,6 +504,14 @@ discard block |
||
479 | 504 | * @param integer Exercise ID |
480 | 505 | * @param integer Question ID |
481 | 506 | * @param boolean Whether to show the answer comment or not |
507 | + * @param integer $feedback_type |
|
508 | + * @param integer $answerType |
|
509 | + * @param string $answer |
|
510 | + * @param string $answerComment |
|
511 | + * @param integer $answerCorrect |
|
512 | + * @param integer $id |
|
513 | + * @param integer $questionId |
|
514 | + * @param boolean $showTotalScoreAndUserChoices |
|
482 | 515 | * @return void |
483 | 516 | */ |
484 | 517 | public static function display_multiple_answer_combination_true_false( |
@@ -91,7 +91,7 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * @param array $array |
|
94 | + * @param string[] $array |
|
95 | 95 | */ |
96 | 96 | public function set_tools_to_build($array) |
97 | 97 | { |
@@ -1212,6 +1212,7 @@ |
||
1212 | 1212 | * Restore a forum-post |
1213 | 1213 | * @TODO Restore tree-structure of posts. For example: attachments to posts. |
1214 | 1214 | * @param false|string $topic_id |
1215 | + * @param false|string $forum_id |
|
1215 | 1216 | */ |
1216 | 1217 | public function restore_post($id, $topic_id, $forum_id, $sessionId = 0) |
1217 | 1218 | { |
@@ -267,7 +267,7 @@ |
||
267 | 267 | * @param string $author |
268 | 268 | * @param string $filename |
269 | 269 | * @param int $filesize |
270 | - * @param array $recipient_ids |
|
270 | + * @param unknown_type|null $recipient_ids |
|
271 | 271 | */ |
272 | 272 | public function _createNewSentWork($uploader_id, $title, $description, $author, $filename, $filesize, $recipient_ids) |
273 | 273 | { |
@@ -72,6 +72,7 @@ discard block |
||
72 | 72 | /** |
73 | 73 | * Return the XML flow for the possible answers. |
74 | 74 | * |
75 | + * @param string $questionStatment |
|
75 | 76 | */ |
76 | 77 | public function imsExportResponses($questionIdent, $questionStatment) |
77 | 78 | { |
@@ -147,6 +148,7 @@ discard block |
||
147 | 148 | * Export the text with missing words. |
148 | 149 | * |
149 | 150 | * |
151 | + * @param string $questionStatment |
|
150 | 152 | */ |
151 | 153 | public function imsExportResponses($questionIdent, $questionStatment) |
152 | 154 | { |
@@ -204,6 +206,7 @@ discard block |
||
204 | 206 | { |
205 | 207 | /** |
206 | 208 | * Export the question part as a matrix-choice, with only one possible answer per line. |
209 | + * @param string $questionStatment |
|
207 | 210 | */ |
208 | 211 | public function imsExportResponses($questionIdent, $questionStatment) |
209 | 212 | { |
@@ -295,6 +298,7 @@ discard block |
||
295 | 298 | /** |
296 | 299 | * TODO update this to match hot spots instead of copying matching |
297 | 300 | * Export the question part as a matrix-choice, with only one possible answer per line. |
301 | + * @param string $questionStatment |
|
298 | 302 | */ |
299 | 303 | public function imsExportResponses($questionIdent, $questionStatment, $questionDesc='', $questionMedia='') |
300 | 304 | { |
@@ -382,6 +386,7 @@ discard block |
||
382 | 386 | /** |
383 | 387 | * TODO implement |
384 | 388 | * Export the question part as a matrix-choice, with only one possible answer per line. |
389 | + * @param string $questionStatment |
|
385 | 390 | */ |
386 | 391 | public function imsExportResponses($questionIdent, $questionStatment, $questionDesc='', $questionMedia='') |
387 | 392 | { |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * @param reference Reference to the array to search |
260 | 260 | * @param string Node we are looking for in the array |
261 | 261 | * @param string $node |
262 | - * @return mixed Node name or false if not found |
|
262 | + * @return false|string Node name or false if not found |
|
263 | 263 | */ |
264 | 264 | function myarraysearch(&$array, $node) |
265 | 265 | { |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | * Searches an image name into an array. |
281 | 281 | * @param reference Reference to an array to search |
282 | 282 | * @param string String to look for |
283 | - * @return mixed String given if found, false otherwise |
|
283 | + * @return false|string String given if found, false otherwise |
|
284 | 284 | * @uses myarraysearch This function is just an additional layer on the myarraysearch() function |
285 | 285 | */ |
286 | 286 | function CheckImageName(&$imgparams, $string) |
@@ -1545,7 +1545,7 @@ |
||
1545 | 1545 | * Retrieve all categories inside a course independent category |
1546 | 1546 | * that should be visible to a student. |
1547 | 1547 | * @param integer $cat_id parent category |
1548 | - * @param $stud_id student id |
|
1548 | + * @param integer $stud_id student id |
|
1549 | 1549 | * @param $cats optional: if defined, the categories will be added to this array |
1550 | 1550 | */ |
1551 | 1551 | public function get_independent_categories_with_result_for_student($cat_id, $stud_id, $cats = array()) |
@@ -273,7 +273,7 @@ |
||
273 | 273 | |
274 | 274 | |
275 | 275 | /** |
276 | - * @param array $result |
|
276 | + * @param Doctrine\DBAL\Driver\Statement|null $result |
|
277 | 277 | * @return array |
278 | 278 | */ |
279 | 279 | private static function create_evaluation_objects_from_sql_result($result) |
@@ -1359,6 +1359,7 @@ discard block |
||
1359 | 1359 | * Gets the list of courses a specific user is subscribed to |
1360 | 1360 | * @param int User ID |
1361 | 1361 | * @param boolean $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED |
1362 | + * @param integer $userid |
|
1362 | 1363 | * @return array Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d) |
1363 | 1364 | */ |
1364 | 1365 | function api_get_user_courses($userid, $fetch_session = true) |
@@ -6756,7 +6757,7 @@ discard block |
||
6756 | 6757 | /** |
6757 | 6758 | * Returns an array of global configuration settings which should be ignored |
6758 | 6759 | * when printing the configuration settings screens |
6759 | - * @return array Array of strings, each identifying one of the excluded settings |
|
6760 | + * @return string[] Array of strings, each identifying one of the excluded settings |
|
6760 | 6761 | */ |
6761 | 6762 | function api_get_locked_settings() { |
6762 | 6763 | return array( |
@@ -6799,6 +6800,7 @@ discard block |
||
6799 | 6800 | * false if he isn't. If the user ID is given and is an integer, then the same |
6800 | 6801 | * ID is simply returned |
6801 | 6802 | * @param integer User ID |
6803 | + * @param integer $user_id |
|
6802 | 6804 | * @return boolean Integer User ID is logged in, or false otherwise |
6803 | 6805 | */ |
6804 | 6806 | function api_user_is_login($user_id = null) { |
@@ -7243,6 +7245,7 @@ discard block |
||
7243 | 7245 | /** |
7244 | 7246 | * Gets memory limit in bytes |
7245 | 7247 | * @param string The memory size (128M, 1G, 1000K, etc) |
7248 | + * @param string $mem |
|
7246 | 7249 | * @return int |
7247 | 7250 | * @assert (null) === false |
7248 | 7251 | * @assert ('1t') === 1099511627776 |