@@ -126,9 +126,9 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * Validates the password |
128 | 128 | * |
129 | - * @param $encoded |
|
130 | - * @param $raw |
|
131 | - * @param $salt |
|
129 | + * @param string $encoded |
|
130 | + * @param string $raw |
|
131 | + * @param string $salt |
|
132 | 132 | * @return bool |
133 | 133 | */ |
134 | 134 | public static function isPasswordValid($encoded, $raw, $salt) |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * @param string $raw |
144 | 144 | * @param User $user |
145 | 145 | * |
146 | - * @return bool |
|
146 | + * @return string |
|
147 | 147 | */ |
148 | 148 | public static function encryptPassword($raw, User $user) |
149 | 149 | { |
@@ -1055,6 +1055,7 @@ discard block |
||
1055 | 1055 | /** |
1056 | 1056 | * Disables a user |
1057 | 1057 | * @param int User id |
1058 | + * @param integer $user_id |
|
1058 | 1059 | * @return bool |
1059 | 1060 | * @uses UserManager::change_active_state() to actually disable the user |
1060 | 1061 | * @assert (0) === false |
@@ -1071,6 +1072,7 @@ discard block |
||
1071 | 1072 | /** |
1072 | 1073 | * Enable a user |
1073 | 1074 | * @param int User id |
1075 | + * @param integer $user_id |
|
1074 | 1076 | * @return bool |
1075 | 1077 | * @uses UserManager::change_active_state() to actually disable the user |
1076 | 1078 | * @assert (0) === false |
@@ -1237,6 +1239,7 @@ discard block |
||
1237 | 1239 | * Checks whether the user id exists in the database |
1238 | 1240 | * |
1239 | 1241 | * @param int User id |
1242 | + * @param integer $userId |
|
1240 | 1243 | * @return bool True if user id was found, false otherwise |
1241 | 1244 | */ |
1242 | 1245 | public static function is_user_id_valid($userId) |
@@ -1378,7 +1381,7 @@ discard block |
||
1378 | 1381 | /** |
1379 | 1382 | * Get a list of users of which the given conditions match with a LIKE '%cond%' |
1380 | 1383 | * @param array $conditions a list of condition (exemple : status=>STUDENT) |
1381 | - * @param array $order_by a list of fields on which sort |
|
1384 | + * @param string[] $order_by a list of fields on which sort |
|
1382 | 1385 | * @return array An array with all users of the platform. |
1383 | 1386 | * @todo optional course code parameter, optional sorting parameters... |
1384 | 1387 | * @todo security filter order_by |
@@ -1435,7 +1438,7 @@ discard block |
||
1435 | 1438 | * @param array $userInfo user information to avoid query the DB |
1436 | 1439 | * returns the /main/img/unknown.jpg image set it at true |
1437 | 1440 | * |
1438 | - * @return array Array of 2 elements: 'dir' and 'file' which contain |
|
1441 | + * @return integer Array of 2 elements: 'dir' and 'file' which contain |
|
1439 | 1442 | * the dir and file as the name implies if image does not exist it will |
1440 | 1443 | * return the unknow image if anonymous parameter is true if not it returns an empty array |
1441 | 1444 | */ |
@@ -1845,7 +1848,7 @@ discard block |
||
1845 | 1848 | /** |
1846 | 1849 | * Returns an array with the user's productions. |
1847 | 1850 | * |
1848 | - * @param $user_id User id |
|
1851 | + * @param integer $user_id User id |
|
1849 | 1852 | * @return array An array containing the user's productions |
1850 | 1853 | */ |
1851 | 1854 | public static function get_user_productions($user_id) |
@@ -2000,7 +2003,7 @@ discard block |
||
2000 | 2003 | |
2001 | 2004 | /** |
2002 | 2005 | * Build a list of extra file already uploaded in $user_folder/{$extra_field}/ |
2003 | - * @param $user_id |
|
2006 | + * @param integer $user_id |
|
2004 | 2007 | * @param $extra_field |
2005 | 2008 | * @param bool $force |
2006 | 2009 | * @param bool $showDelete |
@@ -2105,7 +2108,7 @@ discard block |
||
2105 | 2108 | * @param int $fieldType Field's type |
2106 | 2109 | * @param string $displayText Field's language var name |
2107 | 2110 | * @param string $default Field's default value |
2108 | - * @return int |
|
2111 | + * @return boolean |
|
2109 | 2112 | */ |
2110 | 2113 | public static function create_extra_field($variable, $fieldType, $displayText, $default) |
2111 | 2114 | { |
@@ -2139,6 +2142,7 @@ discard block |
||
2139 | 2142 | * @param boolean Whether to prefix the fields indexes with "extra_" (might be used by formvalidator) |
2140 | 2143 | * @param boolean Whether to return invisible fields as well |
2141 | 2144 | * @param boolean Whether to split multiple-selection fields or not |
2145 | + * @param boolean $field_filter |
|
2142 | 2146 | * @return array Array of fields => value for the given user |
2143 | 2147 | */ |
2144 | 2148 | public static function get_extra_user_data( |
@@ -2413,6 +2417,7 @@ discard block |
||
2413 | 2417 | /** |
2414 | 2418 | * Get extra user data by field variable |
2415 | 2419 | * @param string field variable |
2420 | + * @param string $field_variable |
|
2416 | 2421 | * @return array data |
2417 | 2422 | */ |
2418 | 2423 | public static function get_extra_user_data_by_field_variable($field_variable) |
@@ -2977,7 +2982,7 @@ discard block |
||
2977 | 2982 | * @param string $user_id User ID |
2978 | 2983 | * @param string $course course directory |
2979 | 2984 | * @param string $resourcetype resourcetype: images, all |
2980 | - * @return int User ID (or false if not found) |
|
2985 | + * @return string User ID (or false if not found) |
|
2981 | 2986 | */ |
2982 | 2987 | public static function get_user_upload_files_by_course($user_id, $course, $resourcetype = 'all') |
2983 | 2988 | { |
@@ -3058,7 +3063,7 @@ discard block |
||
3058 | 3063 | /** |
3059 | 3064 | * Adds a new API key to the users' account |
3060 | 3065 | * @param int Optional user ID (defaults to the results of api_get_user_id()) |
3061 | - * @return boolean True on success, false on failure |
|
3066 | + * @return false|string True on success, false on failure |
|
3062 | 3067 | */ |
3063 | 3068 | public static function add_api_key($user_id = null, $api_service = 'dokeos') |
3064 | 3069 | { |
@@ -3113,6 +3118,7 @@ discard block |
||
3113 | 3118 | * Regenerate an API key from the user's account |
3114 | 3119 | * @param int user ID (defaults to the results of api_get_user_id()) |
3115 | 3120 | * @param string API key's internal ID |
3121 | + * @param string $api_service |
|
3116 | 3122 | * @return int num |
3117 | 3123 | */ |
3118 | 3124 | public static function update_api_key($user_id, $api_service) |
@@ -3142,6 +3148,7 @@ discard block |
||
3142 | 3148 | /** |
3143 | 3149 | * @param int user ID (defaults to the results of api_get_user_id()) |
3144 | 3150 | * @param string API key's internal ID |
3151 | + * @param string $api_service |
|
3145 | 3152 | * @return int row ID, or return false if not found |
3146 | 3153 | */ |
3147 | 3154 | public static function get_api_key_id($user_id, $api_service) |
@@ -3357,7 +3364,7 @@ discard block |
||
3357 | 3364 | * @param int $field_id |
3358 | 3365 | * @param bool $show_links show links or not |
3359 | 3366 | * |
3360 | - * @return array |
|
3367 | + * @return string |
|
3361 | 3368 | */ |
3362 | 3369 | public static function get_user_tags_to_string($user_id, $field_id, $show_links = true) |
3363 | 3370 | { |
@@ -3454,7 +3461,7 @@ discard block |
||
3454 | 3461 | * @param mixed $tag |
3455 | 3462 | * @param int $user_id |
3456 | 3463 | * @param int $field_id field id of the tag |
3457 | - * @return bool |
|
3464 | + * @return boolean|null |
|
3458 | 3465 | */ |
3459 | 3466 | public static function add_tag($tag, $user_id, $field_id) |
3460 | 3467 | { |
@@ -4896,7 +4903,7 @@ discard block |
||
4896 | 4903 | } |
4897 | 4904 | |
4898 | 4905 | /** |
4899 | - * @return array |
|
4906 | + * @return string[] |
|
4900 | 4907 | */ |
4901 | 4908 | public static function get_user_field_types() |
4902 | 4909 | { |
@@ -5188,7 +5195,7 @@ discard block |
||
5188 | 5195 | |
5189 | 5196 | /** |
5190 | 5197 | * Get the boss user ID from a followed user id |
5191 | - * @param $userId |
|
5198 | + * @param integer $userId |
|
5192 | 5199 | * @return bool |
5193 | 5200 | */ |
5194 | 5201 | public static function getStudentBossList($userId) |
@@ -5240,7 +5247,7 @@ discard block |
||
5240 | 5247 | * Get either a Gravatar URL or complete image tag for a specified email address. |
5241 | 5248 | * |
5242 | 5249 | * @param string $email The email address |
5243 | - * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5250 | + * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5244 | 5251 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
5245 | 5252 | * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] |
5246 | 5253 | * @param boole $img True to return a complete IMG tag False for just the URL |
@@ -242,6 +242,9 @@ discard block |
||
242 | 242 | /** |
243 | 243 | * get thematic list |
244 | 244 | * @param int Thematic id (optional), get list by id |
245 | + * @param integer $thematic_id |
|
246 | + * @param string $course_code |
|
247 | + * @param integer $session_id |
|
245 | 248 | * @return array Thematic data |
246 | 249 | */ |
247 | 250 | public static function get_thematic_list( |
@@ -799,6 +802,7 @@ discard block |
||
799 | 802 | /** |
800 | 803 | * delete thematic advance |
801 | 804 | * @param int Thematic advance id |
805 | + * @param integer $thematic_advance_id |
|
802 | 806 | * @return int Affected rows |
803 | 807 | */ |
804 | 808 | public function thematic_advance_destroy($thematic_advance_id) |
@@ -1116,6 +1120,7 @@ discard block |
||
1116 | 1120 | /** |
1117 | 1121 | * update done thematic advances from thematic details interface |
1118 | 1122 | * @param int Thematic id |
1123 | + * @param integer $thematic_advance_id |
|
1119 | 1124 | * @return int Affected rows |
1120 | 1125 | */ |
1121 | 1126 | public function update_done_thematic_advances($thematic_advance_id) |
@@ -1343,6 +1348,7 @@ discard block |
||
1343 | 1348 | * Get average of advances by thematic |
1344 | 1349 | * @param int Thematic id |
1345 | 1350 | * @param string Course code (optional) |
1351 | + * @param string $course_code |
|
1346 | 1352 | * @return float Average of thematic advances |
1347 | 1353 | */ |
1348 | 1354 | public function get_average_of_advances_by_thematic($thematic_id, $course_code = null) |
@@ -1407,6 +1413,7 @@ discard block |
||
1407 | 1413 | * @param string Content |
1408 | 1414 | * @param string Date and time |
1409 | 1415 | * @param int Duration in hours |
1416 | + * @param integer $id |
|
1410 | 1417 | * @return void |
1411 | 1418 | */ |
1412 | 1419 | public function set_thematic_advance_attributes( |
@@ -1437,7 +1444,7 @@ discard block |
||
1437 | 1444 | |
1438 | 1445 | /** |
1439 | 1446 | * get thematic id |
1440 | - * @return void |
|
1447 | + * @return integer |
|
1441 | 1448 | */ |
1442 | 1449 | public function get_thematic_id() |
1443 | 1450 | { |
@@ -1446,7 +1453,7 @@ discard block |
||
1446 | 1453 | |
1447 | 1454 | /** |
1448 | 1455 | * Get thematic plan titles by default |
1449 | - * @return array |
|
1456 | + * @return string[] |
|
1450 | 1457 | */ |
1451 | 1458 | public function get_default_thematic_plan_title() |
1452 | 1459 | { |
@@ -1463,7 +1470,7 @@ discard block |
||
1463 | 1470 | |
1464 | 1471 | /** |
1465 | 1472 | * Get thematic plan icons by default |
1466 | - * @return array |
|
1473 | + * @return string[] |
|
1467 | 1474 | */ |
1468 | 1475 | public function get_default_thematic_plan_icon() |
1469 | 1476 | { |
@@ -1480,7 +1487,7 @@ discard block |
||
1480 | 1487 | |
1481 | 1488 | /** |
1482 | 1489 | * Get questions by default for help |
1483 | - * @return array |
|
1490 | + * @return string[] |
|
1484 | 1491 | */ |
1485 | 1492 | public function get_default_question() |
1486 | 1493 | { |
@@ -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 | { |
@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | * @param string $courseCode the course code |
759 | 759 | * @param int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible) |
760 | 760 | * |
761 | - * @return boolean true if added succesfully, false otherwise. |
|
761 | + * @return boolean|string true if added succesfully, false otherwise. |
|
762 | 762 | */ |
763 | 763 | public static function addUserVisibilityToCourseInCatalogue($userId, $courseCode, $visible = 1) |
764 | 764 | { |
@@ -1725,6 +1725,7 @@ discard block |
||
1725 | 1725 | * Get a list of coaches of a course and a session |
1726 | 1726 | * @param string Course code |
1727 | 1727 | * @param int Session ID |
1728 | + * @param integer $session_id |
|
1728 | 1729 | * @return array List of users |
1729 | 1730 | */ |
1730 | 1731 | public static function get_coach_list_from_course_code($course_code, $session_id) |
@@ -2346,7 +2347,7 @@ discard block |
||
2346 | 2347 | |
2347 | 2348 | /** |
2348 | 2349 | * Creates a file called mysql_dump.sql in the course folder |
2349 | - * @param $course_code The code of the course |
|
2350 | + * @param string $course_code The code of the course |
|
2350 | 2351 | * @todo Implementation for single database |
2351 | 2352 | */ |
2352 | 2353 | public static function create_database_dump($course_code) |
@@ -3146,6 +3147,7 @@ discard block |
||
3146 | 3147 | * @param int $limit |
3147 | 3148 | * @param string $column |
3148 | 3149 | * @param string $direction |
3150 | + * @param integer $status |
|
3149 | 3151 | * @return array courses |
3150 | 3152 | */ |
3151 | 3153 | public static function get_courses_followed_by_drh( |
@@ -3740,6 +3742,7 @@ discard block |
||
3740 | 3742 | * class userportal-course-item. |
3741 | 3743 | * @param int User category id |
3742 | 3744 | * @param bool Whether to show the document quick-loader or not |
3745 | + * @param integer $user_category_id |
|
3743 | 3746 | * @return string |
3744 | 3747 | */ |
3745 | 3748 | public static function returnCoursesWithoutCategories($user_category_id, $load_dirs = false) |
@@ -4936,7 +4939,7 @@ discard block |
||
4936 | 4939 | /** |
4937 | 4940 | * Returns the SQL conditions to filter course only visible by the user in the catalogue |
4938 | 4941 | * |
4939 | - * @param $courseTableAlias Alias of the course table |
|
4942 | + * @param string $courseTableAlias Alias of the course table |
|
4940 | 4943 | * @return string SQL conditions |
4941 | 4944 | */ |
4942 | 4945 | public static function getCourseVisibilitySQLCondition($courseTableAlias) { |
@@ -20,8 +20,8 @@ |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Class constructor |
23 | - * @param $username |
|
24 | - * @param $apiKey |
|
23 | + * @param string $username |
|
24 | + * @param string $apiKey |
|
25 | 25 | */ |
26 | 26 | protected function __construct($username, $apiKey) |
27 | 27 | { |
@@ -1240,6 +1240,7 @@ discard block |
||
1240 | 1240 | * Gets the list of courses a specific user is subscribed to |
1241 | 1241 | * @param int User ID |
1242 | 1242 | * @param boolean $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED |
1243 | + * @param integer $userid |
|
1243 | 1244 | * @return array Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d) |
1244 | 1245 | */ |
1245 | 1246 | function api_get_user_courses($userid, $fetch_session = true) |
@@ -2955,7 +2956,7 @@ discard block |
||
2955 | 2956 | * on the session visibility |
2956 | 2957 | * @param bool $tutor Whether to check if the user has the tutor role |
2957 | 2958 | * @param bool $coach Whether to check if the user has the coach role |
2958 | -* @return boolean true: the user has the rights to edit, false: he does not |
|
2959 | +* @return boolean|null true: the user has the rights to edit, false: he does not |
|
2959 | 2960 | */ |
2960 | 2961 | function api_is_allowed_to_session_edit($tutor = false, $coach = false) |
2961 | 2962 | { |
@@ -5188,6 +5189,7 @@ discard block |
||
5188 | 5189 | * @param string Whether we want a simple list (display a category) or |
5189 | 5190 | * a grouped list (group by variable as in settings.php default). Values: 'list' or 'group' |
5190 | 5191 | * @param int Access URL's ID. Optional. Uses 1 by default, which is the unique URL |
5192 | + * @param string $cat |
|
5191 | 5193 | * @return array Array of database results for the current settings of the current access URL |
5192 | 5194 | */ |
5193 | 5195 | function & api_get_settings($cat = null, $ordering = 'list', $access_url = 1, $url_changeable = 0) |
@@ -6614,7 +6616,7 @@ discard block |
||
6614 | 6616 | /** |
6615 | 6617 | * Returns an array of global configuration settings which should be ignored |
6616 | 6618 | * when printing the configuration settings screens |
6617 | - * @return array Array of strings, each identifying one of the excluded settings |
|
6619 | + * @return string[] Array of strings, each identifying one of the excluded settings |
|
6618 | 6620 | */ |
6619 | 6621 | function api_get_locked_settings() { |
6620 | 6622 | return array( |
@@ -6655,6 +6657,7 @@ discard block |
||
6655 | 6657 | * false if he isn't. If the user ID is given and is an integer, then the same |
6656 | 6658 | * ID is simply returned |
6657 | 6659 | * @param integer User ID |
6660 | + * @param integer $user_id |
|
6658 | 6661 | * @return boolean Integer User ID is logged in, or false otherwise |
6659 | 6662 | */ |
6660 | 6663 | function api_user_is_login($user_id = null) { |
@@ -7099,6 +7102,7 @@ discard block |
||
7099 | 7102 | /** |
7100 | 7103 | * Gets memory limit in bytes |
7101 | 7104 | * @param string The memory size (128M, 1G, 1000K, etc) |
7105 | + * @param string $mem |
|
7102 | 7106 | * @return int |
7103 | 7107 | * @assert (null) === false |
7104 | 7108 | * @assert ('1t') === 1099511627776 |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | * @author Bert Vanderkimpen |
696 | 696 | * @author Yannick Warnier <[email protected]> Adaptation for work tool |
697 | 697 | * @param string $base_work_dir Base work dir (.../work) |
698 | - * @param string $desiredDirName complete path of the desired name |
|
698 | + * @param string $desired_dir_name complete path of the desired name |
|
699 | 699 | * |
700 | 700 | * @return string actual directory name if it succeeds, boolean false otherwise |
701 | 701 | */ |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | /** |
718 | 718 | * Delete a work-tool directory |
719 | 719 | * @param int $id work directory id to delete |
720 | - * @return integer -1 on error |
|
720 | + * @return boolean|null -1 on error |
|
721 | 721 | */ |
722 | 722 | function deleteDirWork($id) |
723 | 723 | { |
@@ -860,7 +860,7 @@ discard block |
||
860 | 860 | * Update the url of a dir in the student_publication table |
861 | 861 | * @param array $work_data work original data |
862 | 862 | * @param string $newPath Example: "folder1" |
863 | - * @return bool |
|
863 | + * @return boolean|null |
|
864 | 864 | */ |
865 | 865 | function updateDirName($work_data, $newPath) |
866 | 866 | { |
@@ -921,6 +921,7 @@ discard block |
||
921 | 921 | /** |
922 | 922 | * Transform an all directory structure (only directories) in an array |
923 | 923 | * @param string path of the directory |
924 | + * @param string $directory |
|
924 | 925 | * @return array the directory structure into an array |
925 | 926 | * @author Julio Montoya Dokeos |
926 | 927 | * @version April 2008 |
@@ -990,7 +991,7 @@ discard block |
||
990 | 991 | * @param string the path of the directory |
991 | 992 | * @param boolean true if we want the total quantity of files |
992 | 993 | * include in others child directories, false only files in the directory |
993 | - * @return array the first element is an integer with the number of files |
|
994 | + * @return integer[] the first element is an integer with the number of files |
|
994 | 995 | * in the folder, the second element is the number of directories |
995 | 996 | * @author Julio Montoya |
996 | 997 | * @version April 2008 |
@@ -2723,7 +2724,7 @@ discard block |
||
2723 | 2724 | * @param int $userId |
2724 | 2725 | * @param int $workId |
2725 | 2726 | * @param int $courseId |
2726 | - * @return bool |
|
2727 | + * @return boolean|null |
|
2727 | 2728 | */ |
2728 | 2729 | function allowOnlySubscribedUser($userId, $workId, $courseId) |
2729 | 2730 | { |
@@ -2997,6 +2998,7 @@ discard block |
||
2997 | 2998 | * @param int $parentId |
2998 | 2999 | * @param array $courseInfo |
2999 | 3000 | * @param int $sessionId |
3001 | + * @param integer $userId |
|
3000 | 3002 | * @return int |
3001 | 3003 | */ |
3002 | 3004 | function getLastWorkStudentFromParentByUser( |
@@ -3668,7 +3670,7 @@ discard block |
||
3668 | 3670 | * @param array $formValues |
3669 | 3671 | * @param int $user_id |
3670 | 3672 | * @param array $courseInfo |
3671 | - * @param int $group_id |
|
3673 | + * @param integer $groupId |
|
3672 | 3674 | * @param int $session_id |
3673 | 3675 | * @return bool|int |
3674 | 3676 | * @note $params can have the following elements, but should at least have the 2 first ones: ( |
@@ -4173,7 +4175,7 @@ discard block |
||
4173 | 4175 | } |
4174 | 4176 | |
4175 | 4177 | /** |
4176 | - * @return array |
|
4178 | + * @return string[] |
|
4177 | 4179 | */ |
4178 | 4180 | function getUploadDocumentType() |
4179 | 4181 | { |
@@ -4546,7 +4548,7 @@ discard block |
||
4546 | 4548 | * @param int Session ID |
4547 | 4549 | * @param $correction |
4548 | 4550 | * |
4549 | - * @return array|bool |
|
4551 | + * @return boolean |
|
4550 | 4552 | */ |
4551 | 4553 | function getFileContents($id, $course_info, $sessionId = 0, $correction = false) |
4552 | 4554 | { |
@@ -4664,7 +4666,7 @@ discard block |
||
4664 | 4666 | * @param int $userId |
4665 | 4667 | * @param array $courseInfo |
4666 | 4668 | * @param string $format |
4667 | - * @return bool |
|
4669 | + * @return false|null |
|
4668 | 4670 | */ |
4669 | 4671 | function exportAllWork($userId, $courseInfo, $format = 'pdf') |
4670 | 4672 | { |
@@ -4710,7 +4712,7 @@ discard block |
||
4710 | 4712 | * @param array $courseInfo |
4711 | 4713 | * @param int $sessionId |
4712 | 4714 | * @param string $format |
4713 | - * @return bool |
|
4715 | + * @return false|null |
|
4714 | 4716 | */ |
4715 | 4717 | function exportAllStudentWorkFromPublication( |
4716 | 4718 | $workId, |
@@ -4848,7 +4850,7 @@ discard block |
||
4848 | 4850 | * Downloads all user files per user |
4849 | 4851 | * @param int $userId |
4850 | 4852 | * @param array $courseInfo |
4851 | - * @return bool |
|
4853 | + * @return false|null |
|
4852 | 4854 | */ |
4853 | 4855 | function downloadAllFilesPerUser($userId, $courseInfo) |
4854 | 4856 | { |
@@ -4962,7 +4964,7 @@ discard block |
||
4962 | 4964 | /** |
4963 | 4965 | * @param array $courseInfo |
4964 | 4966 | * @param int $workId |
4965 | - * @return bool |
|
4967 | + * @return boolean|null |
|
4966 | 4968 | */ |
4967 | 4969 | function protectWork($courseInfo, $workId) |
4968 | 4970 | { |
@@ -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 | { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * @param int $courseId |
184 | 184 | * @param int $userId |
185 | 185 | * |
186 | - * @return array |
|
186 | + * @return integer |
|
187 | 187 | */ |
188 | 188 | public static function getAnnouncementInfoById($announcementId, $courseId, $userId) |
189 | 189 | { |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | * @param array uploaded file $_FILES |
385 | 385 | * @param string Comment describing the attachment |
386 | 386 | * @param bool $sendToUsersInSession |
387 | - * @return int false on failure, ID of the announcement on success |
|
387 | + * @return false|string false on failure, ID of the announcement on success |
|
388 | 388 | */ |
389 | 389 | public static function add_announcement( |
390 | 390 | $emailTitle, |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | * @param string $file_comment |
496 | 496 | * @param bool $sendToUsersInSession |
497 | 497 | * |
498 | - * @return bool|int |
|
498 | + * @return false|string |
|
499 | 499 | */ |
500 | 500 | public static function add_group_announcement( |
501 | 501 | $emailTitle, |
@@ -739,7 +739,7 @@ discard block |
||
739 | 739 | |
740 | 740 | /** |
741 | 741 | * @param int $insert_id |
742 | - * @return bool |
|
742 | + * @return false|null |
|
743 | 743 | */ |
744 | 744 | public static function update_mail_sent($insert_id) |
745 | 745 | { |
@@ -759,6 +759,7 @@ discard block |
||
759 | 759 | * Gets all announcements from a user by course |
760 | 760 | * @param string course db |
761 | 761 | * @param int user id |
762 | + * @param integer $user_id |
|
762 | 763 | * @return array html with the content and count of announcements or false otherwise |
763 | 764 | */ |
764 | 765 | public static function get_all_annoucement_by_user_course($course_code, $user_id) |
@@ -1224,6 +1225,7 @@ discard block |
||
1224 | 1225 | * has been sent to |
1225 | 1226 | * @param string The tool (announcement, agenda, ...) |
1226 | 1227 | * @param int ID of the element of the corresponding type |
1228 | + * @param string $tool |
|
1227 | 1229 | * @return array Array of users and groups to whom the element has been sent |
1228 | 1230 | */ |
1229 | 1231 | public static function sent_to($tool, $id) |
@@ -1348,6 +1350,8 @@ discard block |
||
1348 | 1350 | * @param int attach id |
1349 | 1351 | * @param array uploaded file $_FILES |
1350 | 1352 | * @param string file comment |
1353 | + * @param integer $id_attach |
|
1354 | + * @param string $file_comment |
|
1351 | 1355 | * @return int |
1352 | 1356 | */ |
1353 | 1357 | public static function edit_announcement_attachment_file($id_attach, $file, $file_comment) |
@@ -318,7 +318,6 @@ |
||
318 | 318 | } |
319 | 319 | |
320 | 320 | /** |
321 | - * @param int $courseId |
|
322 | 321 | * @return array |
323 | 322 | * @throws Exception |
324 | 323 | */ |