@@ -1652,7 +1652,7 @@ discard block |
||
1652 | 1652 | * @param array $user_list |
1653 | 1653 | * @param int $session_visibility |
1654 | 1654 | * @param bool $empty_users |
1655 | - * @return bool |
|
1655 | + * @return false|null |
|
1656 | 1656 | */ |
1657 | 1657 | public static function subscribe_users_to_session( |
1658 | 1658 | $id_session, |
@@ -1925,7 +1925,7 @@ discard block |
||
1925 | 1925 | * @param array $courseInfo |
1926 | 1926 | * @param int $status |
1927 | 1927 | * @param bool $updateTotal |
1928 | - * @return bool |
|
1928 | + * @return false|null |
|
1929 | 1929 | */ |
1930 | 1930 | public static function removeUsersFromCourseSession( |
1931 | 1931 | $userList, |
@@ -1991,7 +1991,7 @@ discard block |
||
1991 | 1991 | * @param string $course_code |
1992 | 1992 | * @param int $session_visibility |
1993 | 1993 | * @param bool $removeUsersNotInList |
1994 | - * @return bool |
|
1994 | + * @return false|null |
|
1995 | 1995 | */ |
1996 | 1996 | public static function subscribe_users_to_session_course( |
1997 | 1997 | $user_list, |
@@ -2175,7 +2175,7 @@ discard block |
||
2175 | 2175 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
2176 | 2176 | * existing courses and users (true, default) or not (false) |
2177 | 2177 | * @param $copyEvaluation from base course to session course |
2178 | - * @return void Nothing, or false on error |
|
2178 | + * @return false|null Nothing, or false on error |
|
2179 | 2179 | * */ |
2180 | 2180 | public static function add_courses_to_session( |
2181 | 2181 | $sessionId, |
@@ -2424,7 +2424,7 @@ discard block |
||
2424 | 2424 | * @param string $variable Field's internal variable name |
2425 | 2425 | * @param int $fieldType Field's type |
2426 | 2426 | * @param string $displayText Field's language var name |
2427 | - * @return int new extra field id |
|
2427 | + * @return boolean new extra field id |
|
2428 | 2428 | */ |
2429 | 2429 | public static function create_session_extra_field($variable, $fieldType, $displayText) |
2430 | 2430 | { |
@@ -2648,7 +2648,7 @@ discard block |
||
2648 | 2648 | * @param array id_checked |
2649 | 2649 | * @param bool include delete session |
2650 | 2650 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
2651 | - * @return void Nothing, or false on error |
|
2651 | + * @return boolean Nothing, or false on error |
|
2652 | 2652 | * The parameters is a array to delete sessions |
2653 | 2653 | * */ |
2654 | 2654 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3414,8 +3414,8 @@ discard block |
||
3414 | 3414 | /** |
3415 | 3415 | * Gets the list of courses by session filtered by access_url |
3416 | 3416 | * |
3417 | - * @param $userId |
|
3418 | - * @param $sessionId |
|
3417 | + * @param integer $userId |
|
3418 | + * @param null|integer $sessionId |
|
3419 | 3419 | * @param null $from |
3420 | 3420 | * @param null $limit |
3421 | 3421 | * @param null $column |
@@ -3540,6 +3540,7 @@ discard block |
||
3540 | 3540 | /** |
3541 | 3541 | * Gets the count of courses by session filtered by access_url |
3542 | 3542 | * @param int session id |
3543 | + * @param integer $session_id |
|
3543 | 3544 | * @return array list of courses |
3544 | 3545 | */ |
3545 | 3546 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -3798,6 +3799,7 @@ discard block |
||
3798 | 3799 | * Updates a session status |
3799 | 3800 | * @param int session id |
3800 | 3801 | * @param int status |
3802 | + * @param integer $status |
|
3801 | 3803 | */ |
3802 | 3804 | public static function set_session_status($session_id, $status) |
3803 | 3805 | { |
@@ -4006,7 +4008,7 @@ discard block |
||
4006 | 4008 | * Protect a session to be edited. |
4007 | 4009 | * @param int $id |
4008 | 4010 | * @param bool $checkSession |
4009 | - * @return mixed | bool true if pass the check, api_not_allowed otherwise |
|
4011 | + * @return boolean|null | bool true if pass the check, api_not_allowed otherwise |
|
4010 | 4012 | */ |
4011 | 4013 | public static function protectSession($id, $checkSession = true) |
4012 | 4014 | { |
@@ -4114,7 +4116,7 @@ discard block |
||
4114 | 4116 | |
4115 | 4117 | /** |
4116 | 4118 | * @param $id |
4117 | - * @return bool |
|
4119 | + * @return null|boolean |
|
4118 | 4120 | */ |
4119 | 4121 | public static function protect_teacher_session_edit($id) |
4120 | 4122 | { |
@@ -4179,7 +4181,7 @@ discard block |
||
4179 | 4181 | * true: if the session exists it will be updated. |
4180 | 4182 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
4181 | 4183 | * @param int $defaultUserId |
4182 | - * @param mixed $logger |
|
4184 | + * @param Logger $logger |
|
4183 | 4185 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
4184 | 4186 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
4185 | 4187 | * @param string $extraFieldId |
@@ -5482,7 +5484,6 @@ discard block |
||
5482 | 5484 | * @param string $lastConnectionDate |
5483 | 5485 | * @param array $sessionIdList |
5484 | 5486 | * @param array $studentIdList |
5485 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
5486 | 5487 | * |
5487 | 5488 | * @return array|int |
5488 | 5489 | */ |
@@ -5634,7 +5635,7 @@ discard block |
||
5634 | 5635 | /** |
5635 | 5636 | * Get the list of course tools that have to be dealt with in case of |
5636 | 5637 | * registering any course to a session |
5637 | - * @return array The list of tools to be dealt with (literal names) |
|
5638 | + * @return string[] The list of tools to be dealt with (literal names) |
|
5638 | 5639 | */ |
5639 | 5640 | public static function getCourseToolToBeManaged() |
5640 | 5641 | { |
@@ -5648,7 +5649,7 @@ discard block |
||
5648 | 5649 | * Calls the methods bound to each tool when a course is registered into a session |
5649 | 5650 | * @param int $sessionId |
5650 | 5651 | * @param int $courseId |
5651 | - * @return void |
|
5652 | + * @return boolean|null |
|
5652 | 5653 | */ |
5653 | 5654 | public static function installCourse($sessionId, $courseId) |
5654 | 5655 | { |
@@ -6288,6 +6289,7 @@ discard block |
||
6288 | 6289 | * @param int $categoryId The internal ID of the session category |
6289 | 6290 | * @param string $target Value to search for in the session field values |
6290 | 6291 | * @param array $extraFields A list of fields to be scanned and returned |
6292 | + * @param DateTime $publicationDate |
|
6291 | 6293 | * @return mixed |
6292 | 6294 | */ |
6293 | 6295 | public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null) |
@@ -7618,7 +7620,7 @@ discard block |
||
7618 | 7620 | /** |
7619 | 7621 | * Get link to the admin page for this session |
7620 | 7622 | * @param int $id Session ID |
7621 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
7623 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
7622 | 7624 | */ |
7623 | 7625 | public static function getAdminPath($id) |
7624 | 7626 | { |
@@ -7635,7 +7637,7 @@ discard block |
||
7635 | 7637 | * If a course is provided, build the link to the course |
7636 | 7638 | * @param int $id Session ID |
7637 | 7639 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
7638 | - * @return mixed URL to the page to use the session, or false on error |
|
7640 | + * @return false|string URL to the page to use the session, or false on error |
|
7639 | 7641 | */ |
7640 | 7642 | public static function getPath($id, $courseId = 0) |
7641 | 7643 | { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * provides a side connection to a vchamilo database |
147 | 147 | * @param array $_configuration |
148 | 148 | * |
149 | - * @return \Doctrine\DBAL\Driver\Connection |
|
149 | + * @return string |
|
150 | 150 | */ |
151 | 151 | public static function bootConnection(&$_configuration) |
152 | 152 | { |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | |
335 | 335 | /** |
336 | 336 | * get a proper SQLdump command |
337 | - * @param object $vchamilodata the complete new host information |
|
337 | + * @param stdClass $vchamilodata the complete new host information |
|
338 | 338 | * @return string the shell command |
339 | 339 | */ |
340 | 340 | public static function getDatabaseDumpCmd($vchamilodata) |
@@ -418,8 +418,8 @@ discard block |
||
418 | 418 | |
419 | 419 | /** |
420 | 420 | * Backups a database for having a snapshot. |
421 | - * @param $vchamilo object The Vchamilo object. |
|
422 | - * @param $outputfilerad string The output SQL file radical. |
|
421 | + * @param stdClass $vchamilo object The Vchamilo object. |
|
422 | + * @param string $outputfilerad string The output SQL file radical. |
|
423 | 423 | * @return bool If TRUE, dumping database was a success, otherwise FALSE. |
424 | 424 | */ |
425 | 425 | public static function backupDatabase($vchamilo, $outputfilerad) |
@@ -581,6 +581,8 @@ discard block |
||
581 | 581 | * this function set will map standard moodle API calls to chamilo |
582 | 582 | * internal primitives. This avoids too many changes to do in imported |
583 | 583 | * code |
584 | + * @param string $module |
|
585 | + * @param string $key |
|
584 | 586 | */ |
585 | 587 | public static function getConfig($module, $key, $isplugin = true) |
586 | 588 | { |
@@ -660,7 +662,7 @@ discard block |
||
660 | 662 | /** |
661 | 663 | * @param string $path |
662 | 664 | * |
663 | - * @return mixed |
|
665 | + * @return string |
|
664 | 666 | */ |
665 | 667 | public static function chopLastSlash($path) |
666 | 668 | { |
@@ -812,7 +814,7 @@ discard block |
||
812 | 814 | } |
813 | 815 | |
814 | 816 | /** |
815 | - * @param object $instance |
|
817 | + * @param stdClass $instance |
|
816 | 818 | * @return \Doctrine\DBAL\Connection |
817 | 819 | */ |
818 | 820 | public static function getConnectionFromInstance($instance, $getManager = false) |
@@ -1254,7 +1256,7 @@ discard block |
||
1254 | 1256 | /** |
1255 | 1257 | * @param stdClass $instance |
1256 | 1258 | * |
1257 | - * @return bool|string returns the original version of the app |
|
1259 | + * @return string|false returns the original version of the app |
|
1258 | 1260 | */ |
1259 | 1261 | public static function canBeUpgraded($instance) |
1260 | 1262 | { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
23 | - * @return array |
|
23 | + * @return string[] |
|
24 | 24 | */ |
25 | 25 | public static function get_tags() |
26 | 26 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param string $course_code |
43 | 43 | * @param int $session_id |
44 | 44 | * |
45 | - * @return mixed |
|
45 | + * @return string |
|
46 | 46 | */ |
47 | 47 | public static function parse_content($userId, $content, $course_code, $session_id = 0) |
48 | 48 | { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @param int $courseId |
192 | 192 | * @param int $userId |
193 | 193 | * |
194 | - * @return array |
|
194 | + * @return integer |
|
195 | 195 | */ |
196 | 196 | public static function getAnnouncementInfoById($announcementId, $courseId, $userId) |
197 | 197 | { |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | * @param string $file_comment Comment describing the attachment |
401 | 401 | * @param string $end_date |
402 | 402 | * @param bool $sendToUsersInSession |
403 | - * @return int false on failure, ID of the announcement on success |
|
403 | + * @return false|string false on failure, ID of the announcement on success |
|
404 | 404 | */ |
405 | 405 | public static function add_announcement( |
406 | 406 | $emailTitle, |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | * @param string $file_comment |
512 | 512 | * @param bool $sendToUsersInSession |
513 | 513 | * |
514 | - * @return bool|int |
|
514 | + * @return false|string |
|
515 | 515 | */ |
516 | 516 | public static function add_group_announcement( |
517 | 517 | $emailTitle, |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | |
754 | 754 | /** |
755 | 755 | * @param int $insert_id |
756 | - * @return bool |
|
756 | + * @return false|null |
|
757 | 757 | */ |
758 | 758 | public static function update_mail_sent($insert_id) |
759 | 759 | { |
@@ -773,6 +773,7 @@ discard block |
||
773 | 773 | * Gets all announcements from a user by course |
774 | 774 | * @param string course db |
775 | 775 | * @param int user id |
776 | + * @param integer $user_id |
|
776 | 777 | * @return array html with the content and count of announcements or false otherwise |
777 | 778 | */ |
778 | 779 | public static function get_all_annoucement_by_user_course($course_code, $user_id) |
@@ -1018,6 +1019,7 @@ discard block |
||
1018 | 1019 | * has been sent to |
1019 | 1020 | * @param string The tool (announcement, agenda, ...) |
1020 | 1021 | * @param int ID of the element of the corresponding type |
1022 | + * @param string $tool |
|
1021 | 1023 | * @return array Array of users and groups to whom the element has been sent |
1022 | 1024 | */ |
1023 | 1025 | public static function sent_to($tool, $id) |
@@ -1088,6 +1090,7 @@ discard block |
||
1088 | 1090 | * @param int announcement id |
1089 | 1091 | * @param string file comment |
1090 | 1092 | * @param array uploaded file $_FILES |
1093 | + * @param string|null $file_comment |
|
1091 | 1094 | * @return int -1 if failed, 0 if unknown (should not happen), 1 if success |
1092 | 1095 | */ |
1093 | 1096 | public static function add_announcement_attachment_file($announcement_id, $file_comment, $file) |
@@ -1146,6 +1149,8 @@ discard block |
||
1146 | 1149 | * @param int attach id |
1147 | 1150 | * @param array uploaded file $_FILES |
1148 | 1151 | * @param string file comment |
1152 | + * @param integer $id_attach |
|
1153 | + * @param string $file_comment |
|
1149 | 1154 | * @return int |
1150 | 1155 | */ |
1151 | 1156 | public static function edit_announcement_attachment_file($id_attach, $file, $file_comment) |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | } |
397 | 397 | |
398 | 398 | /** |
399 | - * @param $courses |
|
399 | + * @param ArrayCollection $courses |
|
400 | 400 | */ |
401 | 401 | public function setCourses($courses) |
402 | 402 | { |
@@ -875,7 +875,7 @@ discard block |
||
875 | 875 | } |
876 | 876 | |
877 | 877 | /** |
878 | - * @return array |
|
878 | + * @return string[] |
|
879 | 879 | */ |
880 | 880 | public static function getStatusList() |
881 | 881 | { |
@@ -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) |
@@ -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) |
@@ -1440,7 +1440,7 @@ discard block |
||
1440 | 1440 | * Get first connection date for a student |
1441 | 1441 | * @param int $student_id |
1442 | 1442 | * |
1443 | - * @return string|bool Date format long without day or false if there are no connections |
|
1443 | + * @return string|false Date format long without day or false if there are no connections |
|
1444 | 1444 | */ |
1445 | 1445 | public static function get_first_connection_date($student_id) |
1446 | 1446 | { |
@@ -1470,7 +1470,7 @@ discard block |
||
1470 | 1470 | * @param int $student_id |
1471 | 1471 | * @param bool $warning_message Show a warning message (optional) |
1472 | 1472 | * @param bool $return_timestamp True for returning results in timestamp (optional) |
1473 | - * @return string|int|bool Date format long without day, false if there are no connections or |
|
1473 | + * @return string Date format long without day, false if there are no connections or |
|
1474 | 1474 | * timestamp if parameter $return_timestamp is true |
1475 | 1475 | */ |
1476 | 1476 | public static function get_last_connection_date($student_id, $warning_message = false, $return_timestamp = false) |
@@ -2795,6 +2795,9 @@ discard block |
||
2795 | 2795 | * @param array Limit average to listed lp ids |
2796 | 2796 | * @param int Session id (optional), if param $session_id is |
2797 | 2797 | * null(default) it'll return results including sessions, 0 = session is not filtered |
2798 | + * @param integer $student_id |
|
2799 | + * @param string $course_code |
|
2800 | + * @param integer $session_id |
|
2798 | 2801 | * @return int Total time |
2799 | 2802 | */ |
2800 | 2803 | public static function get_time_spent_in_lp($student_id, $course_code, $lp_ids = array(), $session_id = null) |
@@ -2864,6 +2867,8 @@ discard block |
||
2864 | 2867 | * @param int|array Student id(s) |
2865 | 2868 | * @param string Course code |
2866 | 2869 | * @param int Learning path id |
2870 | + * @param integer $student_id |
|
2871 | + * @param string $course_code |
|
2867 | 2872 | * @return int Total time |
2868 | 2873 | */ |
2869 | 2874 | public static function get_last_connection_time_in_lp($student_id, $course_code, $lp_id, $session_id = 0) |
@@ -5586,7 +5591,7 @@ discard block |
||
5586 | 5591 | |
5587 | 5592 | /** |
5588 | 5593 | * @param FormValidator $form |
5589 | - * @return mixed |
|
5594 | + * @return FormValidator |
|
5590 | 5595 | */ |
5591 | 5596 | public static function setUserSearchForm($form) |
5592 | 5597 | { |
@@ -7187,7 +7192,7 @@ discard block |
||
7187 | 7192 | * @param int $user_id |
7188 | 7193 | * @param int $course_id |
7189 | 7194 | * @param int $session_id |
7190 | - * @return array |
|
7195 | + * @return string[] |
|
7191 | 7196 | */ |
7192 | 7197 | public function display_login_tracking_info($view, $user_id, $course_id, $session_id = 0) |
7193 | 7198 | { |
@@ -7233,9 +7238,9 @@ discard block |
||
7233 | 7238 | /** |
7234 | 7239 | * Displays the exercise results for a specific user in a specific course. |
7235 | 7240 | * @param string $view |
7236 | - * @param int $user_id User ID |
|
7241 | + * @param int $userId User ID |
|
7237 | 7242 | * @param string $courseCode Course code |
7238 | - * @return array |
|
7243 | + * @return string[] |
|
7239 | 7244 | * @todo remove globals |
7240 | 7245 | */ |
7241 | 7246 | public function display_exercise_tracking_info($view, $userId, $courseCode) |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @param string $namespace |
44 | 44 | * |
45 | - * @return array |
|
45 | + * @return \Sylius\Bundle\SettingsBundle\Model\SettingsInterface |
|
46 | 46 | */ |
47 | 47 | public function getSettings($namespace) |
48 | 48 | { |
@@ -51,7 +51,8 @@ |
||
51 | 51 | * @param string $objetives |
52 | 52 | * @param string $target_audience |
53 | 53 | * @param int $user_id |
54 | - * @return mixed The database id of the newly created course request or FALSE on failure. |
|
54 | + * @param boolean $exemplary_content |
|
55 | + * @return false|string The database id of the newly created course request or FALSE on failure. |
|
55 | 56 | */ |
56 | 57 | public static function create_course_request( |
57 | 58 | $wanted_code, |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @return bool |
|
41 | + * @return false|null |
|
42 | 42 | */ |
43 | 43 | public function create_user_folder() |
44 | 44 | { |