@@ -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 | { |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * @author Bart Mollet |
372 | 372 | * @param int $groupId iid |
373 | 373 | * @param string $course_code Default is current course |
374 | - * @return integer - number of groups deleted. |
|
374 | + * @return boolean - number of groups deleted. |
|
375 | 375 | */ |
376 | 376 | public static function delete_groups($groupId, $course_code = null) |
377 | 377 | { |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | * @param bool Whether self registration is allowed or not |
564 | 564 | * @param bool Whether self unregistration is allowed or not |
565 | 565 | * @param int $categoryId |
566 | - * @return bool TRUE if properties are successfully changed, false otherwise |
|
566 | + * @return Statement|null TRUE if properties are successfully changed, false otherwise |
|
567 | 567 | */ |
568 | 568 | public static function set_group_properties( |
569 | 569 | $group_id, |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | * @param int $group_id The iid of the group |
717 | 717 | * @param string $course_code The course in which the group is (default = |
718 | 718 | * current course) |
719 | - * @return array The category |
|
719 | + * @return integer The category |
|
720 | 720 | */ |
721 | 721 | public static function get_category_from_group($group_id, $course_code = null) |
722 | 722 | { |
@@ -782,9 +782,9 @@ discard block |
||
782 | 782 | * Create group category |
783 | 783 | * @param string $title The title of the new category |
784 | 784 | * @param string $description The description of the new category |
785 | - * @param bool $self_registration_allowed |
|
786 | - * @param bool $self_unregistration_allowed |
|
787 | - * @param int $max_number_of_students |
|
785 | + * @param integer $self_registration_allowed |
|
786 | + * @param integer $self_unregistration_allowed |
|
787 | + * @param int $maximum_number_of_students |
|
788 | 788 | * @param int $groups_per_user |
789 | 789 | */ |
790 | 790 | public static function create_category( |
@@ -990,6 +990,8 @@ discard block |
||
990 | 990 | * @param int $limit |
991 | 991 | * @param bool $getCount |
992 | 992 | * @param int $courseId |
993 | + * @param string $column |
|
994 | + * @param string $direction |
|
993 | 995 | * @return array list of user id |
994 | 996 | */ |
995 | 997 | public static function get_users( |
@@ -1583,7 +1585,7 @@ discard block |
||
1583 | 1585 | /** |
1584 | 1586 | * Subscribe tutor(s) to a specified group in current course |
1585 | 1587 | * @param mixed $user_ids Can be an array with user-id's or a single user-id |
1586 | - * @param int $group_id iid |
|
1588 | + * @param int $groupId iid |
|
1587 | 1589 | * @param int $course_id |
1588 | 1590 | * |
1589 | 1591 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1614,7 +1616,7 @@ discard block |
||
1614 | 1616 | * Unsubscribe user(s) from a specified group in current course |
1615 | 1617 | * @param mixed $user_ids Can be an array with user-id's or a single user-id |
1616 | 1618 | * @param int $group_id iid |
1617 | - * @return bool TRUE if successful |
|
1619 | + * @return boolean|null TRUE if successful |
|
1618 | 1620 | */ |
1619 | 1621 | public static function unsubscribe_users($user_ids, $group_id) |
1620 | 1622 | { |
@@ -1633,8 +1635,8 @@ discard block |
||
1633 | 1635 | |
1634 | 1636 | /** |
1635 | 1637 | * Unsubscribe all users from one or more groups |
1636 | - * @param int $group_id iid |
|
1637 | - * @return bool TRUE if successful |
|
1638 | + * @param integer $groupId iid |
|
1639 | + * @return Statement|null TRUE if successful |
|
1638 | 1640 | */ |
1639 | 1641 | public static function unsubscribe_all_users($groupId) |
1640 | 1642 | { |
@@ -1772,6 +1774,7 @@ discard block |
||
1772 | 1774 | * |
1773 | 1775 | * @param $user_array_in list of users (must be sorted). |
1774 | 1776 | * @param string $compare_field, the field to be compared |
1777 | + * @param string $compare_field |
|
1775 | 1778 | */ |
1776 | 1779 | public static function filter_duplicates($user_array_in, $compare_field) |
1777 | 1780 | { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | } |
240 | 240 | |
241 | 241 | /** |
242 | - * @param doc_id id of document (id in mainDb.document table) |
|
242 | + * @param doc_id string of document (id in mainDb.document table) |
|
243 | 243 | * @author Sebastien Piraux <[email protected]> |
244 | 244 | * @desc Record information for upload event |
245 | 245 | * used in the works tool to record informations when |
@@ -313,6 +313,9 @@ discard block |
||
313 | 313 | * @param int session_id |
314 | 314 | * @param int learnpath_id (id of the learnpath) |
315 | 315 | * @param int learnpath_item_id (id of the learnpath_item) |
316 | + * @param integer $score |
|
317 | + * @param integer $weighting |
|
318 | + * @param integer $session_id |
|
316 | 319 | * |
317 | 320 | * @author Sebastien Piraux <[email protected]> |
318 | 321 | * @author Julio Montoya Armas <[email protected]> Reworked 2010 |
@@ -414,7 +417,9 @@ discard block |
||
414 | 417 | * @param integer Session ID (from the session table). Default value of null means "get from context". |
415 | 418 | * @param integer Learnpath ID (from c_lp table). Default value of null means "get from context". |
416 | 419 | * @param integer Learnpath item ID (from the c_lp_item table). Default value of null means "get from context". |
417 | - * @return boolean Result of the insert query |
|
420 | + * @param integer $exe_id |
|
421 | + * @param integer $position |
|
422 | + * @return false|string Result of the insert query |
|
418 | 423 | */ |
419 | 424 | public static function saveQuestionAttempt( |
420 | 425 | $score, |
@@ -589,6 +594,7 @@ discard block |
||
589 | 594 | * @param int Whether this answer is correct (1) or not (0) |
590 | 595 | * @param string Coordinates of this point (e.g. 123;324) |
591 | 596 | * @param bool update results? |
597 | + * @param integer $exe_id |
|
592 | 598 | * @return boolean Result of the insert query |
593 | 599 | * @uses Course code and user_id from global scope $_cid and $_user |
594 | 600 | */ |
@@ -801,11 +807,11 @@ discard block |
||
801 | 807 | /** |
802 | 808 | * Save the new message for one event and for one language |
803 | 809 | * |
804 | - * @param string $eventName |
|
810 | + * @param string $event_name |
|
805 | 811 | * @param array $users |
806 | 812 | * @param string $message |
807 | 813 | * @param string $subject |
808 | - * @param string $eventMessageLanguage |
|
814 | + * @param string $event_message_language |
|
809 | 815 | * @param int $activated |
810 | 816 | */ |
811 | 817 | public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated) |
@@ -939,10 +945,10 @@ discard block |
||
939 | 945 | } |
940 | 946 | |
941 | 947 | /** |
942 | - * @param $user_id |
|
948 | + * @param integer $user_id |
|
943 | 949 | * @param $exerciseId |
944 | - * @param $lp_id |
|
945 | - * @param $lp_item_id |
|
950 | + * @param integer $lp_id |
|
951 | + * @param integer $lp_item_id |
|
946 | 952 | * @return int |
947 | 953 | */ |
948 | 954 | public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id) |
@@ -1119,6 +1125,7 @@ discard block |
||
1119 | 1125 | * @param int exercise id |
1120 | 1126 | * @param int $courseId |
1121 | 1127 | * @param int session id |
1128 | + * @param integer $user_id |
|
1122 | 1129 | * @return array with the results |
1123 | 1130 | * |
1124 | 1131 | */ |
@@ -1214,6 +1221,7 @@ discard block |
||
1214 | 1221 | * @param int exercise id |
1215 | 1222 | * @param int $courseId |
1216 | 1223 | * @param int session id |
1224 | + * @param integer $user_id |
|
1217 | 1225 | * @return array with the results |
1218 | 1226 | * |
1219 | 1227 | */ |
@@ -1302,6 +1310,8 @@ discard block |
||
1302 | 1310 | * @param int lp id |
1303 | 1311 | * @param int lp item id |
1304 | 1312 | * @param string order asc or desc |
1313 | + * @param integer $courseId |
|
1314 | + * @param string $order |
|
1305 | 1315 | * @return array with the results |
1306 | 1316 | * |
1307 | 1317 | */ |
@@ -1368,7 +1378,7 @@ discard block |
||
1368 | 1378 | * @param int exercise id |
1369 | 1379 | * @param int $courseId |
1370 | 1380 | * @param int session id |
1371 | - * @return array with the results |
|
1381 | + * @return string with the results |
|
1372 | 1382 | * |
1373 | 1383 | */ |
1374 | 1384 | public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0) |
@@ -1539,7 +1549,7 @@ discard block |
||
1539 | 1549 | * @param int exercise id |
1540 | 1550 | * @param int course id |
1541 | 1551 | * @param int session id |
1542 | - * @return array with the results |
|
1552 | + * @return integer with the results |
|
1543 | 1553 | * |
1544 | 1554 | */ |
1545 | 1555 | public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0) |
@@ -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 |
@@ -1619,7 +1619,7 @@ discard block |
||
1619 | 1619 | * @param array $user_list |
1620 | 1620 | * @param int $session_visibility |
1621 | 1621 | * @param bool $empty_users |
1622 | - * @return bool |
|
1622 | + * @return false|null |
|
1623 | 1623 | */ |
1624 | 1624 | public static function suscribe_users_to_session( |
1625 | 1625 | $id_session, |
@@ -1891,7 +1891,7 @@ discard block |
||
1891 | 1891 | * @param array $courseInfo |
1892 | 1892 | * @param int $status |
1893 | 1893 | * @param bool $updateTotal |
1894 | - * @return bool |
|
1894 | + * @return false|null |
|
1895 | 1895 | */ |
1896 | 1896 | public static function removeUsersFromCourseSession( |
1897 | 1897 | $userList, |
@@ -1957,7 +1957,7 @@ discard block |
||
1957 | 1957 | * @param string $course_code |
1958 | 1958 | * @param int $session_visibility |
1959 | 1959 | * @param bool $removeUsersNotInList |
1960 | - * @return bool |
|
1960 | + * @return false|null |
|
1961 | 1961 | */ |
1962 | 1962 | public static function subscribe_users_to_session_course( |
1963 | 1963 | $user_list, |
@@ -2140,7 +2140,7 @@ discard block |
||
2140 | 2140 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
2141 | 2141 | * existing courses and users (true, default) or not (false) |
2142 | 2142 | * @param $copyEvaluation from base course to session course |
2143 | - * @return void Nothing, or false on error |
|
2143 | + * @return false|null Nothing, or false on error |
|
2144 | 2144 | * */ |
2145 | 2145 | public static function add_courses_to_session( |
2146 | 2146 | $sessionId, |
@@ -2336,6 +2336,8 @@ discard block |
||
2336 | 2336 | * |
2337 | 2337 | * @param int Session id |
2338 | 2338 | * @param int Course id |
2339 | + * @param integer $session_id |
|
2340 | + * @param integer $course_id |
|
2339 | 2341 | * @return bool True in case of success, false otherwise |
2340 | 2342 | */ |
2341 | 2343 | public static function unsubscribe_course_from_session($session_id, $course_id) |
@@ -2391,7 +2393,7 @@ discard block |
||
2391 | 2393 | * @param string $variable Field's internal variable name |
2392 | 2394 | * @param int $fieldType Field's type |
2393 | 2395 | * @param string $displayText Field's language var name |
2394 | - * @return int new extra field id |
|
2396 | + * @return boolean new extra field id |
|
2395 | 2397 | */ |
2396 | 2398 | public static function create_session_extra_field($variable, $fieldType, $displayText) |
2397 | 2399 | { |
@@ -2615,7 +2617,7 @@ discard block |
||
2615 | 2617 | * @param array id_checked |
2616 | 2618 | * @param bool include delete session |
2617 | 2619 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
2618 | - * @return void Nothing, or false on error |
|
2620 | + * @return boolean Nothing, or false on error |
|
2619 | 2621 | * The parameters is a array to delete sessions |
2620 | 2622 | * */ |
2621 | 2623 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3360,8 +3362,8 @@ discard block |
||
3360 | 3362 | /** |
3361 | 3363 | * Gets the list of courses by session filtered by access_url |
3362 | 3364 | * |
3363 | - * @param $userId |
|
3364 | - * @param $sessionId |
|
3365 | + * @param integer $userId |
|
3366 | + * @param null|integer $sessionId |
|
3365 | 3367 | * @param null $from |
3366 | 3368 | * @param null $limit |
3367 | 3369 | * @param null $column |
@@ -3486,6 +3488,7 @@ discard block |
||
3486 | 3488 | /** |
3487 | 3489 | * Gets the count of courses by session filtered by access_url |
3488 | 3490 | * @param int session id |
3491 | + * @param integer $session_id |
|
3489 | 3492 | * @return array list of courses |
3490 | 3493 | */ |
3491 | 3494 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -3737,6 +3740,7 @@ discard block |
||
3737 | 3740 | * Updates a session status |
3738 | 3741 | * @param int session id |
3739 | 3742 | * @param int status |
3743 | + * @param integer $status |
|
3740 | 3744 | */ |
3741 | 3745 | public static function set_session_status($session_id, $status) |
3742 | 3746 | { |
@@ -3945,7 +3949,7 @@ discard block |
||
3945 | 3949 | * Protect a session to be edited. |
3946 | 3950 | * @param int $id |
3947 | 3951 | * @param bool $checkSession |
3948 | - * @return mixed | bool true if pass the check, api_not_allowed otherwise |
|
3952 | + * @return boolean|null | bool true if pass the check, api_not_allowed otherwise |
|
3949 | 3953 | */ |
3950 | 3954 | public static function protectSession($id, $checkSession = true) |
3951 | 3955 | { |
@@ -4053,7 +4057,7 @@ discard block |
||
4053 | 4057 | |
4054 | 4058 | /** |
4055 | 4059 | * @param $id |
4056 | - * @return bool |
|
4060 | + * @return null|boolean |
|
4057 | 4061 | */ |
4058 | 4062 | public static function protect_teacher_session_edit($id) |
4059 | 4063 | { |
@@ -4117,7 +4121,7 @@ discard block |
||
4117 | 4121 | * true: if the session exists it will be updated. |
4118 | 4122 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
4119 | 4123 | * @param int $defaultUserId |
4120 | - * @param mixed $logger |
|
4124 | + * @param Logger $logger |
|
4121 | 4125 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
4122 | 4126 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
4123 | 4127 | * @param string $extraFieldId |
@@ -5397,7 +5401,6 @@ discard block |
||
5397 | 5401 | * @param string $lastConnectionDate |
5398 | 5402 | * @param array $sessionIdList |
5399 | 5403 | * @param array $studentIdList |
5400 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
5401 | 5404 | * |
5402 | 5405 | * @return array|int |
5403 | 5406 | */ |
@@ -5549,7 +5552,7 @@ discard block |
||
5549 | 5552 | /** |
5550 | 5553 | * Get the list of course tools that have to be dealt with in case of |
5551 | 5554 | * registering any course to a session |
5552 | - * @return array The list of tools to be dealt with (literal names) |
|
5555 | + * @return string[] The list of tools to be dealt with (literal names) |
|
5553 | 5556 | */ |
5554 | 5557 | public static function getCourseToolToBeManaged() |
5555 | 5558 | { |
@@ -5563,7 +5566,7 @@ discard block |
||
5563 | 5566 | * Calls the methods bound to each tool when a course is registered into a session |
5564 | 5567 | * @param int $sessionId |
5565 | 5568 | * @param int $courseId |
5566 | - * @return void |
|
5569 | + * @return boolean|null |
|
5567 | 5570 | */ |
5568 | 5571 | public static function installCourse($sessionId, $courseId) |
5569 | 5572 | { |
@@ -6203,6 +6206,7 @@ discard block |
||
6203 | 6206 | * @param int $categoryId The internal ID of the session category |
6204 | 6207 | * @param string $target Value to search for in the session field values |
6205 | 6208 | * @param array $extraFields A list of fields to be scanned and returned |
6209 | + * @param DateTime $publicationDate |
|
6206 | 6210 | * @return mixed |
6207 | 6211 | */ |
6208 | 6212 | public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null) |
@@ -6715,6 +6719,8 @@ discard block |
||
6715 | 6719 | * Converts "start date" and "end date" to "From start date to end date" string |
6716 | 6720 | * @param string $startDate |
6717 | 6721 | * @param string $endDate |
6722 | + * @param boolean $showTime |
|
6723 | + * @param boolean $dateHuman |
|
6718 | 6724 | * |
6719 | 6725 | * @return string |
6720 | 6726 | */ |
@@ -7531,7 +7537,7 @@ discard block |
||
7531 | 7537 | /** |
7532 | 7538 | * Get link to the admin page for this session |
7533 | 7539 | * @param int $id Session ID |
7534 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
7540 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
7535 | 7541 | */ |
7536 | 7542 | public static function getAdminPath($id) |
7537 | 7543 | { |
@@ -7548,7 +7554,7 @@ discard block |
||
7548 | 7554 | * If a course is provided, build the link to the course |
7549 | 7555 | * @param int $id Session ID |
7550 | 7556 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
7551 | - * @return mixed URL to the page to use the session, or false on error |
|
7557 | + * @return false|string URL to the page to use the session, or false on error |
|
7552 | 7558 | */ |
7553 | 7559 | public static function getPath($id, $courseId = 0) |
7554 | 7560 | { |
@@ -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 | { |