@@ -32,6 +32,8 @@ discard block |
||
32 | 32 | * @param array $evals |
33 | 33 | * @param array $links |
34 | 34 | * @param null $addparams |
35 | + * @param boolean $showTeacherView |
|
36 | + * @param integer $userId |
|
35 | 37 | */ |
36 | 38 | public function __construct( |
37 | 39 | $currentcat, |
@@ -895,7 +897,7 @@ discard block |
||
895 | 897 | |
896 | 898 | /** |
897 | 899 | * @param $item |
898 | - * @return mixed |
|
900 | + * @return string|null |
|
899 | 901 | */ |
900 | 902 | private function build_course_code($item) |
901 | 903 | { |
@@ -124,8 +124,8 @@ |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | - * @param $link |
|
128 | - * @param $courseCode |
|
127 | + * @param integer $link |
|
128 | + * @param null|string $courseCode |
|
129 | 129 | * @return AttendanceLink|DropboxLink|ExerciseLink|ForumThreadLink|LearnpathLink|null|StudentPublicationLink|SurveyLink |
130 | 130 | */ |
131 | 131 | private function createLink($link, $courseCode) |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @param array $evals |
31 | 31 | * @param array $links |
32 | 32 | * @param array $params |
33 | - * @param null $mainCourseCategory |
|
33 | + * @param Category|null $mainCourseCategory |
|
34 | 34 | */ |
35 | 35 | public function FlatViewDataGenerator( |
36 | 36 | $users = array(), |
@@ -276,6 +276,8 @@ discard block |
||
276 | 276 | |
277 | 277 | /** |
278 | 278 | * Get actual array data |
279 | + * @param integer $users_count |
|
280 | + * @param integer $items_count |
|
279 | 281 | * @return array 2-dimensional array - each array contains the elements: |
280 | 282 | * 0: user id |
281 | 283 | * 1: user lastname |
@@ -71,6 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Get actual array data |
74 | + * @param integer $count |
|
74 | 75 | * @return array 2-dimensional array - each array contains the elements: |
75 | 76 | * 0: cat/eval/link object |
76 | 77 | * 1: item name |
@@ -304,7 +305,7 @@ discard block |
||
304 | 305 | /** |
305 | 306 | * @param int $userId |
306 | 307 | * @param GradebookItem $item |
307 | - * @param $ignore_score_color |
|
308 | + * @param boolean $ignore_score_color |
|
308 | 309 | * @return null|string |
309 | 310 | */ |
310 | 311 | private function build_result_column( |
@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Exports the complete report as an XLS file |
79 | - * @return boolean False on error |
|
79 | + * @return boolean|null False on error |
|
80 | 80 | */ |
81 | 81 | public function exportCompleteReportXLS($data) |
82 | 82 | { |
@@ -45,6 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | /** |
47 | 47 | * Get actual array data |
48 | + * @param integer $count |
|
48 | 49 | * @return array 2-dimensional array - each array contains the elements: |
49 | 50 | * 0 ['id'] : user id |
50 | 51 | * 1 ['result_id'] : result id |
@@ -130,6 +131,7 @@ discard block |
||
130 | 131 | * @param float Current absolute score (max score is taken from $this->evaluation->get_max() |
131 | 132 | * @param bool Whether we want the real score (2/4 (50 %)) or the transformation (A, B, C, etc) |
132 | 133 | * @param bool Whether we want to ignore the score color |
134 | + * @param boolean $realscore |
|
133 | 135 | * @result string The score as we want to show it |
134 | 136 | */ |
135 | 137 | private function get_score_display ($score, $realscore, $ignore_score_color = false) |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | |
233 | 233 | /** |
234 | 234 | * @param int $category_id |
235 | - * @return bool |
|
235 | + * @return false|null |
|
236 | 236 | */ |
237 | 237 | public function insert_defaults($category_id) |
238 | 238 | { |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | } |
264 | 264 | |
265 | 265 | /** |
266 | - * @return int|null|string |
|
266 | + * @return integer |
|
267 | 267 | */ |
268 | 268 | public function get_number_decimals() |
269 | 269 | { |
@@ -337,8 +337,8 @@ discard block |
||
337 | 337 | |
338 | 338 | /** |
339 | 339 | * @param $score |
340 | - * @param $type |
|
341 | - * @return float|string |
|
340 | + * @param integer $type |
|
341 | + * @return string |
|
342 | 342 | */ |
343 | 343 | private function display_default($score, $type) |
344 | 344 | { |
@@ -72,6 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | /** |
74 | 74 | * Get actual array data |
75 | + * @param integer $count |
|
75 | 76 | * @return array 2-dimensional array - each array contains the elements: |
76 | 77 | * 0: eval/link object |
77 | 78 | * 1: item name |
@@ -285,7 +286,7 @@ discard block |
||
285 | 286 | |
286 | 287 | /** |
287 | 288 | * @param $item |
288 | - * @param $ignore_score_color |
|
289 | + * @param boolean $ignore_score_color |
|
289 | 290 | * @return string |
290 | 291 | */ |
291 | 292 | private function build_average_column($item, $ignore_score_color) |
@@ -306,7 +307,7 @@ discard block |
||
306 | 307 | |
307 | 308 | /** |
308 | 309 | * @param $item |
309 | - * @param $ignore_score_color |
|
310 | + * @param boolean $ignore_score_color |
|
310 | 311 | * @return string |
311 | 312 | */ |
312 | 313 | private function build_result_column($item, $ignore_score_color) |
@@ -323,7 +324,7 @@ discard block |
||
323 | 324 | |
324 | 325 | /** |
325 | 326 | * @param $item |
326 | - * @param $ignore_score_color |
|
327 | + * @param boolean $ignore_score_color |
|
327 | 328 | * @return string |
328 | 329 | */ |
329 | 330 | private function build_mask_column($item, $ignore_score_color) |
@@ -339,7 +340,7 @@ discard block |
||
339 | 340 | |
340 | 341 | /** |
341 | 342 | * @param $coursecode |
342 | - * @return mixed |
|
343 | + * @return string |
|
343 | 344 | */ |
344 | 345 | private function get_course_name_from_code_cached($coursecode) |
345 | 346 | { |
@@ -471,7 +471,7 @@ |
||
471 | 471 | * Display a user icon that links to the user page |
472 | 472 | * |
473 | 473 | * @param integer $user_id the id of the user |
474 | - * @return html code |
|
474 | + * @return string code |
|
475 | 475 | * |
476 | 476 | * @author Patrick Cool <[email protected]>, Ghent University, Belgium |
477 | 477 | * @version April 2008 |