@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * Add attendances sheet inside table. This is the *list of* dates, not |
278 | 278 | * a specific date in itself. |
279 | 279 | * @param bool true for adding link in gradebook or false otherwise (optional) |
280 | - * @return int last attendance id |
|
280 | + * @return false|string last attendance id |
|
281 | 281 | */ |
282 | 282 | public function attendance_add($link_to_gradebook = false) |
283 | 283 | { |
@@ -354,6 +354,7 @@ discard block |
||
354 | 354 | * edit attendances inside table |
355 | 355 | * @param int attendance id |
356 | 356 | * @param bool true for adding link in gradebook or false otherwise (optional) |
357 | + * @param integer $attendance_id |
|
357 | 358 | * @return int last id |
358 | 359 | */ |
359 | 360 | public function attendance_edit($attendance_id, $link_to_gradebook = false) |
@@ -429,6 +430,7 @@ discard block |
||
429 | 430 | /** |
430 | 431 | * Restore attendance |
431 | 432 | * @param int|array one or many attendances id |
433 | + * @param integer $attendance_id |
|
432 | 434 | * @return int affected rows |
433 | 435 | */ |
434 | 436 | public function attendance_restore($attendance_id) |
@@ -478,7 +480,7 @@ discard block |
||
478 | 480 | |
479 | 481 | /** |
480 | 482 | * Delete attendances |
481 | - * @param int|array $attendance_id one or many attendances id |
|
483 | + * @param integer $attendance_id one or many attendances id |
|
482 | 484 | * @return int affected rows |
483 | 485 | */ |
484 | 486 | public function attendance_delete($attendance_id) |
@@ -530,7 +532,7 @@ discard block |
||
530 | 532 | |
531 | 533 | /** |
532 | 534 | * Changes visibility |
533 | - * @param int|array $attendanceId one or many attendances id |
|
535 | + * @param integer $attendanceId one or many attendances id |
|
534 | 536 | * @param int status |
535 | 537 | * |
536 | 538 | * @return int affected rows |
@@ -585,6 +587,7 @@ discard block |
||
585 | 587 | * Lock or unlock an attendance |
586 | 588 | * @param int attendance id |
587 | 589 | * @param bool True to lock or false otherwise |
590 | + * @param integer $attendance_id |
|
588 | 591 | */ |
589 | 592 | public function lock_attendance($attendance_id, $lock = true) |
590 | 593 | { |
@@ -918,7 +921,10 @@ discard block |
||
918 | 921 | * @param string Event type ('locked_attendance', 'done_attendance_sheet' ...) |
919 | 922 | * @param int Last edit user id |
920 | 923 | * @param string Calendar datetime value (optional, when event type is 'done_attendance_sheet') |
921 | - * @return int Affected rows |
|
924 | + * @param integer $attendance_id |
|
925 | + * @param string $lastedit_type |
|
926 | + * @param integer $lastedit_user_id |
|
927 | + * @return false|string Affected rows |
|
922 | 928 | */ |
923 | 929 | public function save_attendance_sheet_log( |
924 | 930 | $attendance_id, |
@@ -963,6 +969,7 @@ discard block |
||
963 | 969 | /** |
964 | 970 | * Get number of done attendances inside current sheet |
965 | 971 | * @param int attendance id |
972 | + * @param integer $attendance_id |
|
966 | 973 | * @return int number of done attendances |
967 | 974 | */ |
968 | 975 | public static function get_done_attendance_calendar($attendance_id) |
@@ -1198,6 +1205,7 @@ discard block |
||
1198 | 1205 | /** |
1199 | 1206 | * Get next attendance calendar without presences (done attendances) |
1200 | 1207 | * @param int attendance id |
1208 | + * @param integer $attendance_id |
|
1201 | 1209 | * @return int attendance calendar id |
1202 | 1210 | */ |
1203 | 1211 | public function get_next_attendance_calendar_id($attendance_id) |
@@ -1226,6 +1234,7 @@ discard block |
||
1226 | 1234 | /** |
1227 | 1235 | * Get next attendance calendar datetime without presences (done attendances) |
1228 | 1236 | * @param int attendance id |
1237 | + * @param integer $attendance_id |
|
1229 | 1238 | * @return int UNIX time format datetime |
1230 | 1239 | */ |
1231 | 1240 | public function get_next_attendance_calendar_datetime($attendance_id) |
@@ -1254,6 +1263,7 @@ discard block |
||
1254 | 1263 | * Get user' score from current attendance |
1255 | 1264 | * @param int $user_id |
1256 | 1265 | * @param int $attendance_id |
1266 | + * @param integer $groupId |
|
1257 | 1267 | * @return int score |
1258 | 1268 | */ |
1259 | 1269 | public function get_user_score($user_id, $attendance_id, $groupId = null) |
@@ -1301,6 +1311,7 @@ discard block |
||
1301 | 1311 | /** |
1302 | 1312 | * Get attendance calendar data by id |
1303 | 1313 | * @param int attendance calendar id |
1314 | + * @param integer $calendar_id |
|
1304 | 1315 | * @return array attendance calendar data |
1305 | 1316 | */ |
1306 | 1317 | public function get_attendance_calendar_by_id($calendar_id) |
@@ -1423,6 +1434,7 @@ discard block |
||
1423 | 1434 | * Get number of attendance calendar inside current attendance |
1424 | 1435 | * @param int $attendance_id |
1425 | 1436 | * @param int $groupId |
1437 | + * @param boolean $done_attendance |
|
1426 | 1438 | * @return int number of dates in attendance calendar |
1427 | 1439 | */ |
1428 | 1440 | public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0) |
@@ -1648,7 +1660,6 @@ discard block |
||
1648 | 1660 | /** |
1649 | 1661 | * @param int $calendarId |
1650 | 1662 | * @param int $courseId |
1651 | - * @param int $groupId |
|
1652 | 1663 | * @return array |
1653 | 1664 | */ |
1654 | 1665 | public function getGroupListByAttendanceCalendar($calendarId, $courseId) |
@@ -1688,7 +1699,6 @@ discard block |
||
1688 | 1699 | /** |
1689 | 1700 | * @param int $calendarId |
1690 | 1701 | * @param int $courseId |
1691 | - * @param int $groupId |
|
1692 | 1702 | * |
1693 | 1703 | * @return array |
1694 | 1704 | */ |
@@ -1789,6 +1799,8 @@ discard block |
||
1789 | 1799 | * edit a datetime inside attendance calendar table |
1790 | 1800 | * @param int attendance calendar id |
1791 | 1801 | * @param int attendance id |
1802 | + * @param integer $calendar_id |
|
1803 | + * @param integer $attendance_id |
|
1792 | 1804 | * @return int affected rows |
1793 | 1805 | */ |
1794 | 1806 | public function attendance_calendar_edit($calendar_id, $attendance_id) |
@@ -1828,6 +1840,8 @@ discard block |
||
1828 | 1840 | * @param int attendance calendar id |
1829 | 1841 | * @param int attendance id |
1830 | 1842 | * @param bool true for removing all calendar inside current attendance, false for removing by calendar id |
1843 | + * @param integer $calendar_id |
|
1844 | + * @param integer $attendance_id |
|
1831 | 1845 | * @return int affected rows |
1832 | 1846 | */ |
1833 | 1847 | public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false) |
@@ -792,7 +792,7 @@ discard block |
||
792 | 792 | * @param string $courseCode the course code |
793 | 793 | * @param int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible) |
794 | 794 | * |
795 | - * @return boolean true if added succesfully, false otherwise. |
|
795 | + * @return boolean|string true if added succesfully, false otherwise. |
|
796 | 796 | */ |
797 | 797 | public static function addUserVisibilityToCourseInCatalogue($userId, $courseCode, $visible = 1) |
798 | 798 | { |
@@ -2664,7 +2664,7 @@ discard block |
||
2664 | 2664 | * then the courses that the user is allowed or not to see in catalogue |
2665 | 2665 | * |
2666 | 2666 | * @param boolean $allowed Either if the courses have some users that are or are not allowed to see in catalogue |
2667 | - * @param boolean $byUserId if the courses are or are not allowed to see to the user |
|
2667 | + * @param integer $byUserId if the courses are or are not allowed to see to the user |
|
2668 | 2668 | * @return array Course codes allowed or not to see in catalogue by some user or the user |
2669 | 2669 | */ |
2670 | 2670 | public static function getCatalogueCourseList($allowed = true, $byUserId = -1) |
@@ -3208,6 +3208,7 @@ discard block |
||
3208 | 3208 | * @param int $limit |
3209 | 3209 | * @param string $column |
3210 | 3210 | * @param string $direction |
3211 | + * @param integer $status |
|
3211 | 3212 | * @return array courses |
3212 | 3213 | */ |
3213 | 3214 | public static function get_courses_followed_by_drh( |
@@ -4801,7 +4802,7 @@ discard block |
||
4801 | 4802 | * Returns an array with the hottest courses |
4802 | 4803 | * @param int $days number of days |
4803 | 4804 | * @param int $limit number of hottest courses |
4804 | - * @return array |
|
4805 | + * @return null|Symfony\Component\HttpFoundation\Response |
|
4805 | 4806 | */ |
4806 | 4807 | public static function return_hot_courses($days = 30, $limit = 6) |
4807 | 4808 | { |
@@ -5056,7 +5057,7 @@ discard block |
||
5056 | 5057 | /** |
5057 | 5058 | * Returns the SQL conditions to filter course only visible by the user in the catalogue |
5058 | 5059 | * |
5059 | - * @param $courseTableAlias Alias of the course table |
|
5060 | + * @param string $courseTableAlias Alias of the course table |
|
5060 | 5061 | * @return string SQL conditions |
5061 | 5062 | */ |
5062 | 5063 | public static function getCourseVisibilitySQLCondition($courseTableAlias) { |
@@ -6151,11 +6152,11 @@ discard block |
||
6151 | 6152 | |
6152 | 6153 | /** |
6153 | 6154 | * @param int $user_id |
6154 | - * @param $filter |
|
6155 | + * @param string $filter |
|
6155 | 6156 | * @param bool $load_dirs |
6156 | 6157 | * @param int $getCount |
6157 | 6158 | * @param int $start |
6158 | - * @param null $maxPerPage |
|
6159 | + * @param integer $maxPerPage |
|
6159 | 6160 | * @return null|string |
6160 | 6161 | */ |
6161 | 6162 | public static function displayCourses($user_id, $filter, $load_dirs, $getCount, $start = null, $maxPerPage = null) |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Displays the tools of a certain category. |
220 | 220 | * |
221 | - * @return void |
|
221 | + * @return string |
|
222 | 222 | * @param string $course_tool_category contains the category of tools to display: |
223 | 223 | * "Public", "PublicButHide", "courseAdmin", "claroAdmin" |
224 | 224 | */ |
@@ -1014,6 +1014,7 @@ discard block |
||
1014 | 1014 | * Shows the general data for a particular meeting |
1015 | 1015 | * |
1016 | 1016 | * @param id session id |
1017 | + * @param integer $id_session |
|
1017 | 1018 | * @return string session data |
1018 | 1019 | */ |
1019 | 1020 | public static function show_session_data($id_session) |
@@ -1517,7 +1518,7 @@ discard block |
||
1517 | 1518 | |
1518 | 1519 | /** |
1519 | 1520 | * Available tools |
1520 | - * @return array |
|
1521 | + * @return string[] |
|
1521 | 1522 | */ |
1522 | 1523 | public static function availableTools() |
1523 | 1524 | { |
@@ -1263,6 +1263,7 @@ discard block |
||
1263 | 1263 | * Gets the list of courses a specific user is subscribed to |
1264 | 1264 | * @param int User ID |
1265 | 1265 | * @param boolean $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED |
1266 | + * @param integer $userid |
|
1266 | 1267 | * @return array Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d) |
1267 | 1268 | */ |
1268 | 1269 | function api_get_user_courses($userid, $fetch_session = true) |
@@ -3024,7 +3025,7 @@ discard block |
||
3024 | 3025 | * on the session visibility |
3025 | 3026 | * @param bool $tutor Whether to check if the user has the tutor role |
3026 | 3027 | * @param bool $coach Whether to check if the user has the coach role |
3027 | -* @return boolean true: the user has the rights to edit, false: he does not |
|
3028 | +* @return boolean|null true: the user has the rights to edit, false: he does not |
|
3028 | 3029 | */ |
3029 | 3030 | function api_is_allowed_to_session_edit($tutor = false, $coach = false) |
3030 | 3031 | { |
@@ -4199,6 +4200,7 @@ discard block |
||
4199 | 4200 | /** |
4200 | 4201 | * Returns the id (the database id) of a language |
4201 | 4202 | * @param string language name (the corresponding name of the language-folder in the filesystem) |
4203 | + * @param string $language |
|
4202 | 4204 | * @return int id of the language |
4203 | 4205 | */ |
4204 | 4206 | function api_get_language_id($language) |
@@ -5207,6 +5209,7 @@ discard block |
||
5207 | 5209 | * @param string Whether we want a simple list (display a category) or |
5208 | 5210 | * a grouped list (group by variable as in settings.php default). Values: 'list' or 'group' |
5209 | 5211 | * @param int Access URL's ID. Optional. Uses 1 by default, which is the unique URL |
5212 | + * @param string $cat |
|
5210 | 5213 | * @return array Array of database results for the current settings of the current access URL |
5211 | 5214 | */ |
5212 | 5215 | function &api_get_settings($cat = null, $ordering = 'list', $access_url = 1, $url_changeable = 0) |
@@ -6285,7 +6288,7 @@ discard block |
||
6285 | 6288 | * |
6286 | 6289 | * Returns the <link> HTML tag |
6287 | 6290 | * |
6288 | - * @param $file |
|
6291 | + * @param string $file |
|
6289 | 6292 | * @param string $media |
6290 | 6293 | * @return string |
6291 | 6294 | */ |
@@ -6608,7 +6611,7 @@ discard block |
||
6608 | 6611 | /** |
6609 | 6612 | * Returns an array of global configuration settings which should be ignored |
6610 | 6613 | * when printing the configuration settings screens |
6611 | - * @return array Array of strings, each identifying one of the excluded settings |
|
6614 | + * @return string[] Array of strings, each identifying one of the excluded settings |
|
6612 | 6615 | */ |
6613 | 6616 | function api_get_locked_settings() { |
6614 | 6617 | return array( |
@@ -6649,6 +6652,7 @@ discard block |
||
6649 | 6652 | * false if he isn't. If the user ID is given and is an integer, then the same |
6650 | 6653 | * ID is simply returned |
6651 | 6654 | * @param integer User ID |
6655 | + * @param integer $user_id |
|
6652 | 6656 | * @return boolean Integer User ID is logged in, or false otherwise |
6653 | 6657 | */ |
6654 | 6658 | function api_user_is_login($user_id = null) { |
@@ -7069,6 +7073,7 @@ discard block |
||
7069 | 7073 | /** |
7070 | 7074 | * Gets memory limit in bytes |
7071 | 7075 | * @param string The memory size (128M, 1G, 1000K, etc) |
7076 | + * @param string $mem |
|
7072 | 7077 | * @return int |
7073 | 7078 | * @assert (null) === false |
7074 | 7079 | * @assert ('1t') === 1099511627776 |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | } |
354 | 354 | |
355 | 355 | /** |
356 | - * @return int |
|
356 | + * @return string |
|
357 | 357 | */ |
358 | 358 | public function selectPassPercentage() |
359 | 359 | { |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | * tells if questions are selected randomly, and if so returns the draws |
463 | 463 | * |
464 | 464 | * @author Olivier Brouckaert |
465 | - * @return integer - 0 if not random, otherwise the draws |
|
465 | + * @return boolean - 0 if not random, otherwise the draws |
|
466 | 466 | */ |
467 | 467 | public function isRandom() |
468 | 468 | { |
@@ -2838,7 +2838,7 @@ discard block |
||
2838 | 2838 | * @param int int lp id |
2839 | 2839 | * @param int int lp item id |
2840 | 2840 | * @param int int lp item_view id |
2841 | - * @param float $weight |
|
2841 | + * @param integer $weight |
|
2842 | 2842 | * @param array question list |
2843 | 2843 | */ |
2844 | 2844 | public function save_stat_track_exercise_info( |
@@ -5246,7 +5246,7 @@ discard block |
||
5246 | 5246 | * @param int $exe_id |
5247 | 5247 | * @param float $score |
5248 | 5248 | * @param float $weight |
5249 | - * @return bool |
|
5249 | + * @return false|null |
|
5250 | 5250 | */ |
5251 | 5251 | public function send_mail_notification_for_exam($question_list_answers, $origin, $exe_id, $score, $weight) |
5252 | 5252 | { |
@@ -5445,6 +5445,9 @@ discard block |
||
5445 | 5445 | } |
5446 | 5446 | } |
5447 | 5447 | |
5448 | + /** |
|
5449 | + * @param integer $exe_id |
|
5450 | + */ |
|
5448 | 5451 | function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id) |
5449 | 5452 | { |
5450 | 5453 | if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) { |
@@ -5596,7 +5599,7 @@ discard block |
||
5596 | 5599 | * @param int Maximum number of attempts (0 if no limit) |
5597 | 5600 | * @param int Feedback type |
5598 | 5601 | * @todo this was function was added due the import exercise via CSV |
5599 | - * @return int New exercise ID |
|
5602 | + * @return string New exercise ID |
|
5600 | 5603 | */ |
5601 | 5604 | public function createExercise( |
5602 | 5605 | $title, |
@@ -6931,7 +6934,7 @@ discard block |
||
6931 | 6934 | * @param bool $show_comment |
6932 | 6935 | * @param null $exercise_feedback |
6933 | 6936 | * @param bool $show_answers |
6934 | - * @param null $modelType |
|
6937 | + * @param integer $modelType |
|
6935 | 6938 | * @param bool $categoryMinusOne |
6936 | 6939 | * @return bool|null|string |
6937 | 6940 | */ |
@@ -3132,7 +3132,7 @@ discard block |
||
3132 | 3132 | * @param integer $thread_qualify |
3133 | 3133 | * @param integer $qualify_time |
3134 | 3134 | * @param integer $session_id |
3135 | - * @return array optional |
|
3135 | + * @return string|null optional |
|
3136 | 3136 | * @author Isaac Flores <[email protected]>, U.N.A.S University |
3137 | 3137 | * @version October 2008, dokeos 1.8.6 |
3138 | 3138 | */ |
@@ -3952,7 +3952,7 @@ discard block |
||
3952 | 3952 | |
3953 | 3953 | /** |
3954 | 3954 | * This function is used to find all the information about what's new in the forum tool |
3955 | - * @return void |
|
3955 | + * @return false|null |
|
3956 | 3956 | * |
3957 | 3957 | * @author Patrick Cool <[email protected]>, Ghent University |
3958 | 3958 | * @version february 2006, dokeos 1.8 |
@@ -170,7 +170,6 @@ |
||
170 | 170 | |
171 | 171 | /** |
172 | 172 | * Return the active logo of the portal, based on a series of settings |
173 | - * @param string $theme The name of the theme folder from web/css/themes/ |
|
174 | 173 | * @return string HTML string with logo as an HTML element |
175 | 174 | */ |
176 | 175 | function return_logo() |
@@ -146,7 +146,7 @@ |
||
146 | 146 | /** |
147 | 147 | * Read the CSV-file |
148 | 148 | * @param string $file Path to the CSV-file |
149 | - * @return array All course-information read from the file |
|
149 | + * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file |
|
150 | 150 | */ |
151 | 151 | function parse_csv_courses_data($file) |
152 | 152 | { |
@@ -1003,7 +1003,6 @@ |
||
1003 | 1003 | /** |
1004 | 1004 | * Processes an IMS/QTI manifest file: store links to new files to be able to transform them into the questions text |
1005 | 1005 | * @param string $filePath The absolute filepath |
1006 | - * @param array $links List of filepaths changes |
|
1007 | 1006 | * @return bool |
1008 | 1007 | */ |
1009 | 1008 | function qtiProcessManifest($filePath) |