@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
21 | - * @return array |
|
21 | + * @return string[] |
|
22 | 22 | */ |
23 | 23 | public static function get_tags() |
24 | 24 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @param string $course_code |
41 | 41 | * @param int $session_id |
42 | 42 | * |
43 | - * @return mixed |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | public static function parse_content($userId, $content, $course_code, $session_id = 0) |
46 | 46 | { |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | * @param array uploaded file $_FILES |
350 | 350 | * @param string Comment describing the attachment |
351 | 351 | * @param bool $sendToUsersInSession |
352 | - * @return int false on failure, ID of the announcement on success |
|
352 | + * @return false|string false on failure, ID of the announcement on success |
|
353 | 353 | */ |
354 | 354 | public static function add_announcement( |
355 | 355 | $emailTitle, |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | * @param $to_users |
461 | 461 | * @param array $file |
462 | 462 | * @param string $file_comment |
463 | - * @return bool|int |
|
463 | + * @return false|string |
|
464 | 464 | */ |
465 | 465 | public static function add_group_announcement( |
466 | 466 | $emailTitle, |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | |
700 | 700 | /** |
701 | 701 | * @param int $insert_id |
702 | - * @return bool |
|
702 | + * @return false|null |
|
703 | 703 | */ |
704 | 704 | public static function update_mail_sent($insert_id) |
705 | 705 | { |
@@ -719,6 +719,7 @@ discard block |
||
719 | 719 | * Gets all announcements from a user by course |
720 | 720 | * @param string course db |
721 | 721 | * @param int user id |
722 | + * @param integer $user_id |
|
722 | 723 | * @return array html with the content and count of announcements or false otherwise |
723 | 724 | */ |
724 | 725 | public static function get_all_annoucement_by_user_course($course_code, $user_id) |
@@ -1184,6 +1185,7 @@ discard block |
||
1184 | 1185 | * has been sent to |
1185 | 1186 | * @param string The tool (announcement, agenda, ...) |
1186 | 1187 | * @param int ID of the element of the corresponding type |
1188 | + * @param string $tool |
|
1187 | 1189 | * @return array Array of users and groups to whom the element has been sent |
1188 | 1190 | */ |
1189 | 1191 | public static function sent_to($tool, $id) |
@@ -1308,6 +1310,8 @@ discard block |
||
1308 | 1310 | * @param int attach id |
1309 | 1311 | * @param array uploaded file $_FILES |
1310 | 1312 | * @param string file comment |
1313 | + * @param integer $id_attach |
|
1314 | + * @param string $file_comment |
|
1311 | 1315 | * @return int |
1312 | 1316 | */ |
1313 | 1317 | public static function edit_announcement_attachment_file($id_attach, $file, $file_comment) |
@@ -18,6 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Constructor, init tool path for rendering |
20 | 20 | * @param string tool name (optional) |
21 | + * @param string $template_path |
|
21 | 22 | */ |
22 | 23 | public function __construct($toolname = '', $template_path=null) |
23 | 24 | { |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | /** |
51 | 52 | * Set layout view sent from a controller |
52 | 53 | * @param string layout view |
54 | + * @param string $layout |
|
53 | 55 | */ |
54 | 56 | public function set_layout( $layout ) |
55 | 57 | { |
@@ -59,6 +61,7 @@ discard block |
||
59 | 61 | /** |
60 | 62 | * Set template view sent from a controller |
61 | 63 | * @param string template view |
64 | + * @param string $template |
|
62 | 65 | */ |
63 | 66 | public function set_template($template) |
64 | 67 | { |
@@ -96,9 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * Creates a new blog in the given course |
98 | 98 | * @author Toon Keppens |
99 | - * @param Integer $course_id Id |
|
100 | 99 | * @param String $title |
101 | - * @param Text $description |
|
102 | 100 | */ |
103 | 101 | public static function create_blog($title, $subtitle) |
104 | 102 | { |
@@ -186,9 +184,7 @@ discard block |
||
186 | 184 | /** |
187 | 185 | * Update title and subtitle of a blog in the given course |
188 | 186 | * @author Toon Keppens |
189 | - * @param Integer $course_id Id |
|
190 | 187 | * @param String $title |
191 | - * @param Text $description |
|
192 | 188 | */ |
193 | 189 | public static function edit_blog($blog_id, $title, $subtitle) |
194 | 190 | { |
@@ -714,7 +710,6 @@ discard block |
||
714 | 710 | /** |
715 | 711 | * Deletes an assigned task from a blog |
716 | 712 | * @param Integer $blog_id |
717 | - * @param Integer $assignment_id |
|
718 | 713 | */ |
719 | 714 | public static function delete_assigned_task($blog_id, $task_id, $user_id) |
720 | 715 | { |
@@ -1126,9 +1121,7 @@ discard block |
||
1126 | 1121 | * |
1127 | 1122 | * @param String $type |
1128 | 1123 | * @param Integer $blog_id |
1129 | - * @param Integer $item_id |
|
1130 | - * |
|
1131 | - *@return String |
|
1124 | + * @param integer $post_id |
|
1132 | 1125 | */ |
1133 | 1126 | public static function display_rating_form ($type, $blog_id, $post_id, $comment_id = NULL) |
1134 | 1127 | { |
@@ -2113,7 +2106,7 @@ discard block |
||
2113 | 2106 | * |
2114 | 2107 | * @param Integer $blog_id |
2115 | 2108 | * |
2116 | - * @return Html Form with sortable table with users to unsubcribe from a blog. |
|
2109 | + * @return false|null Form with sortable table with users to unsubcribe from a blog. |
|
2117 | 2110 | */ |
2118 | 2111 | public static function display_form_user_unsubscribe ($blog_id) |
2119 | 2112 | { |
@@ -2234,6 +2227,7 @@ discard block |
||
2234 | 2227 | * @author Toon Keppens |
2235 | 2228 | * |
2236 | 2229 | * @param Integer $blog_id |
2230 | + * @param integer $post_id |
|
2237 | 2231 | */ |
2238 | 2232 | public static function display_new_comment_form($blog_id, $post_id, $title) |
2239 | 2233 | { |
@@ -2282,10 +2276,8 @@ discard block |
||
2282 | 2276 | * @author Patrick Cool |
2283 | 2277 | * @author Toon Keppens |
2284 | 2278 | * |
2285 | - * @param Array $blogitems an array containing all the blog items for the given month |
|
2286 | 2279 | * @param Integer $month: the integer value of the month we are viewing |
2287 | 2280 | * @param Integer $year: the 4-digit year indication e.g. 2005 |
2288 | - * @param String $monthName: the language variable for the mont name |
|
2289 | 2281 | * |
2290 | 2282 | * @return html code |
2291 | 2283 | */ |
@@ -2579,6 +2571,7 @@ discard block |
||
2579 | 2571 | * @param the blog's id |
2580 | 2572 | * @param the post's id |
2581 | 2573 | * @param the comment's id |
2574 | + * @param integer $blog_id |
|
2582 | 2575 | * @return array with the post info according the parameters |
2583 | 2576 | * @author Julio Montoya Dokeos |
2584 | 2577 | * @version avril 2008, dokeos 1.8.5 |
@@ -2620,6 +2613,9 @@ discard block |
||
2620 | 2613 | * @param the blog's id |
2621 | 2614 | * @param the post's id |
2622 | 2615 | * @param the comment's id |
2616 | + * @param integer $blog_id |
|
2617 | + * @param integer $post_id |
|
2618 | + * @param integer $comment_id |
|
2623 | 2619 | * @author Julio Montoya Dokeos |
2624 | 2620 | * @version avril 2008, dokeos 1.8.5 |
2625 | 2621 | */ |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * Set the name of the browser |
161 | - * @param $browser string The name of the Browser |
|
161 | + * @param string $browser string The name of the Browser |
|
162 | 162 | */ |
163 | 163 | public function setBrowser($browser) |
164 | 164 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | /** |
268 | 268 | * Set the browser to be from AOL |
269 | - * @param $isAol |
|
269 | + * @param boolean $isAol |
|
270 | 270 | */ |
271 | 271 | public function setAol($isAol) |
272 | 272 | { |
@@ -41,6 +41,7 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * Set user chat status |
43 | 43 | * @param int 0 if disconnected, 1 if connected |
44 | + * @param integer $status |
|
44 | 45 | * |
45 | 46 | * @return void |
46 | 47 | */ |
@@ -164,6 +165,7 @@ discard block |
||
164 | 165 | /** |
165 | 166 | * Saves into session the fact that a chat window exists with the given user |
166 | 167 | * @param int The ID of the user with whom the current user is chatting |
168 | + * @param integer $user_id |
|
167 | 169 | * @return void |
168 | 170 | */ |
169 | 171 | public function save_window($user_id) |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * Get all data by description and session id, |
96 | 96 | * first you must set session_id property with the object CourseDescription |
97 | 97 | * @param int $description_type Description type |
98 | - * @param string $course_code Course code (optional) |
|
98 | + * @param string $courseId Course code (optional) |
|
99 | 99 | * @param int $session_id Session id (optional) |
100 | 100 | * @return array List of fields from the descriptions found of the given type |
101 | 101 | */ |
@@ -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 | { |
@@ -493,6 +493,7 @@ |
||
493 | 493 | * This function update extra user blocks data after closing a dashboard block |
494 | 494 | * @param int User id |
495 | 495 | * @param string plugin path |
496 | + * @param integer $user_id |
|
496 | 497 | * @return bool |
497 | 498 | */ |
498 | 499 | public static function close_user_block($user_id, $path) |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @param string $table |
68 | 68 | * |
69 | - * @return mixed |
|
69 | + * @return string |
|
70 | 70 | */ |
71 | 71 | public static function get_main_table($table) |
72 | 72 | { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | |
266 | 266 | /** |
267 | 267 | * Frees all the memory associated with the provided result identifier. |
268 | - * @return bool Returns TRUE on success or FALSE on failure. |
|
268 | + * @return boolean|null Returns TRUE on success or FALSE on failure. |
|
269 | 269 | * Notes: Use this method if you are concerned about how much memory is being used for queries that return large result sets. |
270 | 270 | * Anyway, all associated result memory is automatically freed at the end of the script's execution. |
271 | 271 | */ |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | * @param array $attributes |
382 | 382 | * @param bool $show_query |
383 | 383 | * |
384 | - * @return bool|int |
|
384 | + * @return false|string |
|
385 | 385 | */ |
386 | 386 | public static function insert($table_name, $attributes, $show_query = false) |
387 | 387 | { |
@@ -351,6 +351,12 @@ |
||
351 | 351 | |
352 | 352 | /** |
353 | 353 | * Additional functions needed for fast integration |
354 | + * @param integer $status |
|
355 | + * @param string $section |
|
356 | + * @param string $title |
|
357 | + * @param string $url |
|
358 | + * @param string|null $formatter |
|
359 | + * @param string $comment |
|
354 | 360 | */ |
355 | 361 | public function build_setting($status, $section, $title, $url, $current_value, $expected_value, $formatter, $comment, $img_path = null) { |
356 | 362 | switch ($status) { |