@@ -732,7 +732,7 @@ |
||
732 | 732 | } |
733 | 733 | |
734 | 734 | /** |
735 | - * @param null $course_code |
|
735 | + * @param string $course_code |
|
736 | 736 | * @param int $gradebook_model_id |
737 | 737 | * @return mixed |
738 | 738 | */ |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @param array $values Array of title + description (name => $title, description => $comment) |
97 | 97 | * |
98 | - * @return mixed Term id on success, false on failure |
|
98 | + * @return false|string Term id on success, false on failure |
|
99 | 99 | * |
100 | 100 | */ |
101 | 101 | public static function save_glossary($values, $showMessage = true) |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | |
449 | 449 | /** |
450 | 450 | * Display the glossary terms in a list |
451 | - * @return bool true |
|
451 | + * @return string true |
|
452 | 452 | */ |
453 | 453 | public static function displayGlossaryList() |
454 | 454 | { |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | * Update action icons column |
586 | 586 | * |
587 | 587 | * @param integer $glossary_id |
588 | - * @param array $url_params Parameters to use to affect links |
|
588 | + * @param string $url_params Parameters to use to affect links |
|
589 | 589 | * @param array $row The line of results from a query on the glossary table |
590 | 590 | * |
591 | 591 | * @return string HTML string for the action icons columns |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @return array |
|
143 | + * @return string[] |
|
144 | 144 | */ |
145 | 145 | public static function getValidExtraFieldTypes() |
146 | 146 | { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | /** |
219 | 219 | * @param array $conditions |
220 | - * @param null $order_field_options_by |
|
220 | + * @param string $order_field_options_by |
|
221 | 221 | * |
222 | 222 | * @return array |
223 | 223 | */ |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | /** |
376 | 376 | * @param string $handler |
377 | 377 | * |
378 | - * @return array |
|
378 | + * @return string[] |
|
379 | 379 | */ |
380 | 380 | public static function get_extra_fields_by_handler($handler) |
381 | 381 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | } |
575 | 575 | |
576 | 576 | /** |
577 | - * @return array |
|
577 | + * @return string[] |
|
578 | 578 | */ |
579 | 579 | public function get_field_types() |
580 | 580 | { |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | /** |
585 | 585 | * @param int $id |
586 | 586 | * |
587 | - * @return null |
|
587 | + * @return string|null |
|
588 | 588 | */ |
589 | 589 | public function get_field_type_by_id($id) |
590 | 590 | { |
@@ -1826,7 +1826,7 @@ discard block |
||
1826 | 1826 | } |
1827 | 1827 | |
1828 | 1828 | /** |
1829 | - * @return array |
|
1829 | + * @return string[] |
|
1830 | 1830 | */ |
1831 | 1831 | public function getJqgridColumnNames() |
1832 | 1832 | { |
@@ -2086,7 +2086,7 @@ discard block |
||
2086 | 2086 | } |
2087 | 2087 | |
2088 | 2088 | /** |
2089 | - * @param array $columns |
|
2089 | + * @param string[] $columns |
|
2090 | 2090 | * @param array $column_model |
2091 | 2091 | * @param array $extraFields |
2092 | 2092 | * @return array |
@@ -96,6 +96,9 @@ |
||
96 | 96 | echo PHP_EOL; |
97 | 97 | } |
98 | 98 | |
99 | +/** |
|
100 | + * @param string $message |
|
101 | + */ |
|
99 | 102 | function echo_style($style, $message) |
100 | 103 | { |
101 | 104 | // ANSI color codes |
@@ -183,6 +183,7 @@ discard block |
||
183 | 183 | * (moving a course to a different course category) |
184 | 184 | * @param int $courseId |
185 | 185 | * @param int Category id |
186 | + * @param integer $newcategory |
|
186 | 187 | * @return bool True if it success |
187 | 188 | */ |
188 | 189 | public function updateCourseCategory($courseId, $newcategory) |
@@ -215,6 +216,9 @@ discard block |
||
215 | 216 | * @param string Direction (up/down) |
216 | 217 | * @param string Course code |
217 | 218 | * @param int Category id |
219 | + * @param string $direction |
|
220 | + * @param string $course2move |
|
221 | + * @param integer $category |
|
218 | 222 | * @return bool True if it success |
219 | 223 | */ |
220 | 224 | public function move_course($direction, $course2move, $category) |
@@ -285,6 +289,8 @@ discard block |
||
285 | 289 | * Moves the course one place up or down |
286 | 290 | * @param string Direction up/down |
287 | 291 | * @param string Category id |
292 | + * @param string $direction |
|
293 | + * @param integer $category2move |
|
288 | 294 | * @return bool True If it success |
289 | 295 | */ |
290 | 296 | public function move_category($direction, $category2move) |
@@ -348,6 +354,8 @@ discard block |
||
348 | 354 | * Updates the user course category in the chamilo_user database |
349 | 355 | * @param string Category title |
350 | 356 | * @param int Category id |
357 | + * @param string $title |
|
358 | + * @param integer $category_id |
|
351 | 359 | * @return bool True if it success |
352 | 360 | */ |
353 | 361 | public function store_edit_course_category($title, $category_id) |
@@ -1103,7 +1103,7 @@ |
||
1103 | 1103 | * @param String $type |
1104 | 1104 | * @param Integer $blog_id |
1105 | 1105 | * @param Integer $item_id |
1106 | - * @return array |
|
1106 | + * @return double |
|
1107 | 1107 | */ |
1108 | 1108 | public static function display_rating($type, $blog_id, $item_id) |
1109 | 1109 | { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | /** |
361 | 361 | * Get description titles by default |
362 | - * @return array |
|
362 | + * @return string[] |
|
363 | 363 | */ |
364 | 364 | public function get_default_description_title() |
365 | 365 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | |
379 | 379 | /** |
380 | 380 | * Get description titles editable by default |
381 | - * @return array |
|
381 | + * @return boolean[] |
|
382 | 382 | */ |
383 | 383 | public function get_default_description_title_editable() |
384 | 384 | { |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | |
398 | 398 | /** |
399 | 399 | * Get description icons by default |
400 | - * @return array |
|
400 | + * @return string[] |
|
401 | 401 | */ |
402 | 402 | public function get_default_description_icon() |
403 | 403 | { |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | /** |
419 | 419 | * Get questions by default for help |
420 | - * @return array |
|
420 | + * @return string[] |
|
421 | 421 | */ |
422 | 422 | public function get_default_question() |
423 | 423 | { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | |
437 | 437 | /** |
438 | 438 | * Get informations by default for help |
439 | - * @return array |
|
439 | + * @return string[] |
|
440 | 440 | */ |
441 | 441 | public function get_default_information() |
442 | 442 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | /** |
575 | 575 | * get progress of a description |
576 | 576 | * |
577 | - * @return int |
|
577 | + * @return string |
|
578 | 578 | */ |
579 | 579 | public function get_progress() |
580 | 580 | { |
@@ -259,10 +259,10 @@ |
||
259 | 259 | } |
260 | 260 | |
261 | 261 | /** |
262 | - * @param $form |
|
262 | + * @param CatForm $form |
|
263 | 263 | * @param string $name |
264 | 264 | * @param null $default_value |
265 | - * @return bool |
|
265 | + * @return false|null |
|
266 | 266 | */ |
267 | 267 | public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null) |
268 | 268 | { |
@@ -477,6 +477,7 @@ discard block |
||
477 | 477 | * |
478 | 478 | * Get link info |
479 | 479 | * @param int link id |
480 | + * @param integer $id |
|
480 | 481 | * @return array link info |
481 | 482 | * |
482 | 483 | **/ |
@@ -1058,7 +1059,9 @@ discard block |
||
1058 | 1059 | /** |
1059 | 1060 | * Displays the edit, delete and move icons |
1060 | 1061 | * @param int Category ID |
1061 | - * @return void |
|
1062 | + * @param integer $currentCategory |
|
1063 | + * @param integer $countCategories |
|
1064 | + * @return string |
|
1062 | 1065 | * @author Patrick Cool <[email protected]>, Ghent University |
1063 | 1066 | */ |
1064 | 1067 | public static function showCategoryAdminTools($category, $currentCategory, $countCategories) |
@@ -1222,6 +1225,7 @@ discard block |
||
1222 | 1225 | /** |
1223 | 1226 | * CSV file import functions |
1224 | 1227 | * @author René Haentjens , Ghent University |
1228 | + * @param string $catname |
|
1225 | 1229 | */ |
1226 | 1230 | public static function get_cat($catname) |
1227 | 1231 | { |
@@ -1261,6 +1265,11 @@ discard block |
||
1261 | 1265 | /** |
1262 | 1266 | * CSV file import functions |
1263 | 1267 | * @author René Haentjens , Ghent University |
1268 | + * @param string $url |
|
1269 | + * @param string $title |
|
1270 | + * @param string $description |
|
1271 | + * @param string $on_homepage |
|
1272 | + * @param string $hidden |
|
1264 | 1273 | */ |
1265 | 1274 | public static function put_link($url, $cat, $title, $description, $on_homepage, $hidden) |
1266 | 1275 | { |