@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Instance the plugin |
38 | 38 | * @staticvar null $result |
39 | - * @return Tour |
|
39 | + * @return AzureActiveDirectory |
|
40 | 40 | */ |
41 | 41 | static function create() |
42 | 42 | { |
@@ -250,8 +250,8 @@ discard block |
||
250 | 250 | * Inserts a new ticket in the corresponding tables |
251 | 251 | * @param $category_id |
252 | 252 | * @param $course_id |
253 | - * @param $project_id |
|
254 | - * @param $other_area |
|
253 | + * @param integer $project_id |
|
254 | + * @param integer $other_area |
|
255 | 255 | * @param $email |
256 | 256 | * @param $subject |
257 | 257 | * @param $content |
@@ -632,10 +632,10 @@ discard block |
||
632 | 632 | /** |
633 | 633 | * Insert message between Users and Admins |
634 | 634 | * @param $ticket_id |
635 | - * @param $subject |
|
636 | - * @param $content |
|
635 | + * @param string $subject |
|
636 | + * @param string $content |
|
637 | 637 | * @param $file_attachments |
638 | - * @param $user_id |
|
638 | + * @param integer $user_id |
|
639 | 639 | * @param string $status |
640 | 640 | * @param bool $sendConfirmation |
641 | 641 | * @return bool |
@@ -734,9 +734,9 @@ discard block |
||
734 | 734 | /** |
735 | 735 | * Attachment files when a message is sent |
736 | 736 | * @param $file_attach |
737 | - * @param $ticket_id |
|
738 | - * @param $message_id |
|
739 | - * @param $message_attch_id |
|
737 | + * @param integer $ticket_id |
|
738 | + * @param integer $message_id |
|
739 | + * @param integer $message_attch_id |
|
740 | 740 | * @return array |
741 | 741 | */ |
742 | 742 | public static function save_message_attachment_file( |
@@ -1969,7 +1969,7 @@ discard block |
||
1969 | 1969 | } |
1970 | 1970 | |
1971 | 1971 | /** |
1972 | - * @param $id |
|
1972 | + * @param integer $id |
|
1973 | 1973 | * @return Project |
1974 | 1974 | */ |
1975 | 1975 | public static function getProject($id) |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | * Add attendances sheet inside table. This is the *list of* dates, not |
281 | 281 | * a specific date in itself. |
282 | 282 | * @param bool true for adding link in gradebook or false otherwise (optional) |
283 | - * @return int last attendance id |
|
283 | + * @return false|string last attendance id |
|
284 | 284 | */ |
285 | 285 | public function attendance_add($link_to_gradebook = false) |
286 | 286 | { |
@@ -356,6 +356,7 @@ discard block |
||
356 | 356 | * edit attendances inside table |
357 | 357 | * @param int attendance id |
358 | 358 | * @param bool true for adding link in gradebook or false otherwise (optional) |
359 | + * @param integer $attendance_id |
|
359 | 360 | * @return int last id |
360 | 361 | */ |
361 | 362 | 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 | { |
@@ -917,7 +920,11 @@ discard block |
||
917 | 920 | * @param string Event type ('locked_attendance', 'done_attendance_sheet' ...) |
918 | 921 | * @param int Last edit user id |
919 | 922 | * @param string Calendar datetime value (optional, when event type is 'done_attendance_sheet') |
920 | - * @return int Affected rows |
|
923 | + * @param integer $attendance_id |
|
924 | + * @param string $lastedit_date |
|
925 | + * @param string $lastedit_type |
|
926 | + * @param integer $lastedit_user_id |
|
927 | + * @return false|string Affected rows |
|
921 | 928 | */ |
922 | 929 | public function save_attendance_sheet_log( |
923 | 930 | $attendance_id, |
@@ -962,6 +969,7 @@ discard block |
||
962 | 969 | /** |
963 | 970 | * Get number of done attendances inside current sheet |
964 | 971 | * @param int attendance id |
972 | + * @param integer $attendance_id |
|
965 | 973 | * @return int number of done attendances |
966 | 974 | */ |
967 | 975 | public static function get_done_attendance_calendar($attendance_id) |
@@ -1196,6 +1204,7 @@ discard block |
||
1196 | 1204 | /** |
1197 | 1205 | * Get next attendance calendar without presences (done attendances) |
1198 | 1206 | * @param int attendance id |
1207 | + * @param integer $attendance_id |
|
1199 | 1208 | * @return int attendance calendar id |
1200 | 1209 | */ |
1201 | 1210 | public function get_next_attendance_calendar_id($attendance_id) |
@@ -1223,6 +1232,7 @@ discard block |
||
1223 | 1232 | /** |
1224 | 1233 | * Get next attendance calendar datetime without presences (done attendances) |
1225 | 1234 | * @param int attendance id |
1235 | + * @param integer $attendance_id |
|
1226 | 1236 | * @return int UNIX time format datetime |
1227 | 1237 | */ |
1228 | 1238 | public function get_next_attendance_calendar_datetime($attendance_id) |
@@ -1251,6 +1261,7 @@ discard block |
||
1251 | 1261 | * Get user' score from current attendance |
1252 | 1262 | * @param int $user_id |
1253 | 1263 | * @param int $attendance_id |
1264 | + * @param integer $groupId |
|
1254 | 1265 | * @return int score |
1255 | 1266 | */ |
1256 | 1267 | public function get_user_score($user_id, $attendance_id, $groupId = null) |
@@ -1298,6 +1309,7 @@ discard block |
||
1298 | 1309 | /** |
1299 | 1310 | * Get attendance calendar data by id |
1300 | 1311 | * @param int attendance calendar id |
1312 | + * @param integer $calendar_id |
|
1301 | 1313 | * @return array attendance calendar data |
1302 | 1314 | */ |
1303 | 1315 | public function get_attendance_calendar_by_id($calendar_id) |
@@ -1421,6 +1433,7 @@ discard block |
||
1421 | 1433 | * Get number of attendance calendar inside current attendance |
1422 | 1434 | * @param int $attendance_id |
1423 | 1435 | * @param int $groupId |
1436 | + * @param boolean $done_attendance |
|
1424 | 1437 | * @return int number of dates in attendance calendar |
1425 | 1438 | */ |
1426 | 1439 | public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0) |
@@ -1646,7 +1659,6 @@ discard block |
||
1646 | 1659 | /** |
1647 | 1660 | * @param int $calendarId |
1648 | 1661 | * @param int $courseId |
1649 | - * @param int $groupId |
|
1650 | 1662 | * @return array |
1651 | 1663 | */ |
1652 | 1664 | public function getGroupListByAttendanceCalendar($calendarId, $courseId) |
@@ -1686,7 +1698,6 @@ discard block |
||
1686 | 1698 | /** |
1687 | 1699 | * @param int $calendarId |
1688 | 1700 | * @param int $courseId |
1689 | - * @param int $groupId |
|
1690 | 1701 | * |
1691 | 1702 | * @return array |
1692 | 1703 | */ |
@@ -1787,6 +1798,8 @@ discard block |
||
1787 | 1798 | * edit a datetime inside attendance calendar table |
1788 | 1799 | * @param int attendance calendar id |
1789 | 1800 | * @param int attendance id |
1801 | + * @param integer $calendar_id |
|
1802 | + * @param integer $attendance_id |
|
1790 | 1803 | * @return int affected rows |
1791 | 1804 | */ |
1792 | 1805 | public function attendance_calendar_edit($calendar_id, $attendance_id) |
@@ -1826,6 +1839,8 @@ discard block |
||
1826 | 1839 | * @param int attendance calendar id |
1827 | 1840 | * @param int attendance id |
1828 | 1841 | * @param bool true for removing all calendar inside current attendance, false for removing by calendar id |
1842 | + * @param integer $calendar_id |
|
1843 | + * @param integer $attendance_id |
|
1829 | 1844 | * @return int affected rows |
1830 | 1845 | */ |
1831 | 1846 | public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false) |
@@ -1888,6 +1903,9 @@ discard block |
||
1888 | 1903 | $this->course_id = $course_id; |
1889 | 1904 | } |
1890 | 1905 | |
1906 | + /** |
|
1907 | + * @param string $datetime |
|
1908 | + */ |
|
1891 | 1909 | public function set_date_time($datetime) |
1892 | 1910 | { |
1893 | 1911 | $this->date_time = $datetime; |
@@ -422,6 +422,7 @@ discard block |
||
422 | 422 | * If null, the timezone will be determined based on user preference, |
423 | 423 | * or timezone chosen by the admin for the platform. |
424 | 424 | * @param string The timezone to be converted from. If null, UTC will be assumed. |
425 | + * @param string $to_timezone |
|
425 | 426 | * @return string The converted time formatted as Y-m-d H:i:s |
426 | 427 | * |
427 | 428 | * @author Guillaume Viguier <[email protected]> |
@@ -666,6 +667,7 @@ discard block |
||
666 | 667 | * @param mixed The time to be converted |
667 | 668 | * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG) |
668 | 669 | * @param string Timezone to be converted from. If null, UTC will be assumed. |
670 | + * @param string $from_timezone |
|
669 | 671 | * @return string Converted and localized date |
670 | 672 | * |
671 | 673 | * @author Guillaume Viguier <[email protected]> |
@@ -735,7 +737,7 @@ discard block |
||
735 | 737 | * @param int/string $format (optional) The person name format. It may be a pattern-string (for example '%t %l, %f' or '%T %F %L', ...) or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER. |
736 | 738 | * @param string $language (optional) The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only. |
737 | 739 | * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default. |
738 | - * @return bool The result is sort of full name of the person. |
|
740 | + * @return string The result is sort of full name of the person. |
|
739 | 741 | * Sample results: |
740 | 742 | * Peter Ustinoff or Dr. Peter Ustinoff - the Western order |
741 | 743 | * Ustinoff Peter or Dr. Ustinoff Peter - the Eastern order |
@@ -829,7 +831,7 @@ discard block |
||
829 | 831 | |
830 | 832 | /** |
831 | 833 | * Checks whether a given format represents person name in Western order (for which first name is first). |
832 | - * @param int/string $format (optional) The person name format. It may be a pattern-string (for example '%t. %l, %f') or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER. |
|
834 | + * @param integer $format (optional) The person name format. It may be a pattern-string (for example '%t. %l, %f') or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER. |
|
833 | 835 | * @param string $language (optional) The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only. |
834 | 836 | * @return bool The result TRUE means that the order is first_name last_name, FALSE means last_name first_name. |
835 | 837 | * Note: You may use this function for determing the order of the fields or columns "First name" and "Last name" in forms, tables and reports. |
@@ -1054,8 +1056,8 @@ discard block |
||
1054 | 1056 | |
1055 | 1057 | /** |
1056 | 1058 | * This function returns a string or an array with all occurrences of search in subject (ignoring case) replaced with the given replace value. |
1057 | - * @param mixed $search String or array of strings to be found. |
|
1058 | - * @param mixed $replace String or array of strings used for replacement. |
|
1059 | + * @param string $search String or array of strings to be found. |
|
1060 | + * @param string $replace String or array of strings used for replacement. |
|
1059 | 1061 | * @param mixed $subject String or array of strings being searched. |
1060 | 1062 | * @param int $count (optional) The number of matched and replaced needles will be returned in count, which is passed by reference. |
1061 | 1063 | * @param string $encoding (optional) The used internally by this function character encoding. |
@@ -1118,10 +1120,10 @@ discard block |
||
1118 | 1120 | /** |
1119 | 1121 | * Finds first occurrence of a string within another, case insensitive. |
1120 | 1122 | * @param string $haystack The string from which to get the first occurrence. |
1121 | - * @param mixed $needle The string to be found. |
|
1123 | + * @param string $needle The string to be found. |
|
1122 | 1124 | * @param bool $before_needle (optional) Determines which portion of $haystack this function returns. The default value is FALSE. |
1123 | 1125 | * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default. |
1124 | - * @return mixed Returns the portion of $haystack, or FALSE if $needle is not found. |
|
1126 | + * @return false|string Returns the portion of $haystack, or FALSE if $needle is not found. |
|
1125 | 1127 | * Notes: |
1126 | 1128 | * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character. |
1127 | 1129 | * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle. |
@@ -1177,7 +1179,7 @@ discard block |
||
1177 | 1179 | * @param mixed $needle The string which first character is to be found. |
1178 | 1180 | * @param bool $before_needle (optional) Determines which portion of $haystack this function returns. The default value is FALSE. |
1179 | 1181 | * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default. |
1180 | - * @return mixed Returns the portion of $haystack, or FALSE if the first character from $needle is not found. |
|
1182 | + * @return false|string Returns the portion of $haystack, or FALSE if the first character from $needle is not found. |
|
1181 | 1183 | * Notes: |
1182 | 1184 | * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character. |
1183 | 1185 | * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence. |
@@ -1244,7 +1246,7 @@ discard block |
||
1244 | 1246 | * @param mixed $needle The string to be found. |
1245 | 1247 | * @param bool $before_needle (optional) Determines which portion of $haystack this function returns. The default value is FALSE. |
1246 | 1248 | * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default. |
1247 | - * @return mixed Returns the portion of $haystack, or FALSE if $needle is not found. |
|
1249 | + * @return false|string Returns the portion of $haystack, or FALSE if $needle is not found. |
|
1248 | 1250 | * Notes: |
1249 | 1251 | * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character. |
1250 | 1252 | * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle. |
@@ -1387,7 +1389,7 @@ discard block |
||
1387 | 1389 | * Note that this changes the return value in an array where every element is an array consisting of the matched string at index 0 and its string offset into subject at index 1. |
1388 | 1390 | * @param int $offset (optional) Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search. |
1389 | 1391 | * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default. |
1390 | - * @return int|boolean Returns the number of times pattern matches or FALSE if an error occurred. |
|
1392 | + * @return integer Returns the number of times pattern matches or FALSE if an error occurred. |
|
1391 | 1393 | * @link http://php.net/preg_match |
1392 | 1394 | */ |
1393 | 1395 | function api_preg_match($pattern, $subject, &$matches = null, $flags = 0, $offset = 0, $encoding = null) { |
@@ -1410,7 +1412,7 @@ discard block |
||
1410 | 1412 | * If no order flag is given, PREG_PATTERN_ORDER is assumed. |
1411 | 1413 | * @param int $offset (optional) Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search. |
1412 | 1414 | * @param string $encoding (optional) The used internally by this function character encoding. If it is omitted, the platform character set will be used by default. |
1413 | - * @return int|boolean Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred. |
|
1415 | + * @return integer Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred. |
|
1414 | 1416 | * @link http://php.net/preg_match_all |
1415 | 1417 | */ |
1416 | 1418 | function api_preg_match_all($pattern, $subject, &$matches, $flags = PREG_PATTERN_ORDER, $offset = 0, $encoding = null) { |
@@ -1425,8 +1427,8 @@ discard block |
||
1425 | 1427 | |
1426 | 1428 | /** |
1427 | 1429 | * Performs a regular expression search and replace, UTF-8 aware when it is applicable. |
1428 | - * @param string|array $pattern The pattern to search for. It can be either a string or an array with strings. |
|
1429 | - * @param string|array $replacement The string or an array with strings to replace. |
|
1430 | + * @param string $pattern The pattern to search for. It can be either a string or an array with strings. |
|
1431 | + * @param string $replacement The string or an array with strings to replace. |
|
1430 | 1432 | * @param string|array $subject The string or an array with strings to search and replace. |
1431 | 1433 | * @param int $limit The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit). |
1432 | 1434 | * @param int &$count If specified, this variable will be filled with the number of replacements done. |
@@ -1574,7 +1576,7 @@ discard block |
||
1574 | 1576 | |
1575 | 1577 | /** |
1576 | 1578 | * This function checks whether two $encoding are equal (same, equvalent). |
1577 | - * @param string/array $encoding1 The first encoding |
|
1579 | + * @param string $encoding1 The first encoding |
|
1578 | 1580 | * @param string/array $encoding2 The second encoding |
1579 | 1581 | * @param bool $strict When this parameter is TRUE the comparison ignores aliases of encodings. |
1580 | 1582 | * When the parameter is FALSE, aliases are taken into account. |
@@ -1678,6 +1680,7 @@ discard block |
||
1678 | 1680 | /** |
1679 | 1681 | * Checks a string for UTF-8 validity. |
1680 | 1682 | * |
1683 | + * @param string $string |
|
1681 | 1684 | */ |
1682 | 1685 | function api_is_valid_utf8(&$string) |
1683 | 1686 | { |
@@ -1820,7 +1823,7 @@ discard block |
||
1820 | 1823 | /** |
1821 | 1824 | * Replaces non-valid formats for person names with the default (English) format. |
1822 | 1825 | * @param string $format The input format to be verified. |
1823 | - * @return bool Returns the same format if is is valid, otherwise returns a valid English format. |
|
1826 | + * @return string Returns the same format if is is valid, otherwise returns a valid English format. |
|
1824 | 1827 | */ |
1825 | 1828 | function _api_validate_person_name_format($format) { |
1826 | 1829 | if (empty($format) || stripos($format, '%f') === false || stripos($format, '%l') === false) { |
@@ -1947,6 +1950,9 @@ discard block |
||
1947 | 1950 | |
1948 | 1951 | // This function checks whether the function _api_convert_encoding() (the php- |
1949 | 1952 | // implementation) is able to convert from/to a given encoding. |
1953 | +/** |
|
1954 | + * @param string $encoding |
|
1955 | + */ |
|
1950 | 1956 | function _api_convert_encoding_supports($encoding) { |
1951 | 1957 | static $supports = array(); |
1952 | 1958 | if (!isset($supports[$encoding])) { |
@@ -1957,7 +1963,7 @@ discard block |
||
1957 | 1963 | |
1958 | 1964 | /** |
1959 | 1965 | * Given a date object, return a human or ISO format, with or without h:m:s |
1960 | - * @param object $date The Date object |
|
1966 | + * @param DateTime $date The Date object |
|
1961 | 1967 | * @param bool $showTime Whether to show the time and date (true) or only the date (false) |
1962 | 1968 | * @param bool $humanForm Whether to show day-month-year (true) or year-month-day (false) |
1963 | 1969 | * @return string Formatted date |
@@ -477,6 +477,7 @@ discard block |
||
477 | 477 | * |
478 | 478 | * Get link info |
479 | 479 | * @param int link id |
480 | + * @param integer $id |
|
480 | 481 | * @return array link info |
481 | 482 | * |
482 | 483 | **/ |
@@ -1061,7 +1062,9 @@ discard block |
||
1061 | 1062 | /** |
1062 | 1063 | * Displays the edit, delete and move icons |
1063 | 1064 | * @param int Category ID |
1064 | - * @return void |
|
1065 | + * @param integer $currentCategory |
|
1066 | + * @param integer $countCategories |
|
1067 | + * @return string |
|
1065 | 1068 | * @author Patrick Cool <[email protected]>, Ghent University |
1066 | 1069 | */ |
1067 | 1070 | public static function showCategoryAdminTools($category, $currentCategory, $countCategories) |
@@ -1225,6 +1228,7 @@ discard block |
||
1225 | 1228 | /** |
1226 | 1229 | * CSV file import functions |
1227 | 1230 | * @author René Haentjens , Ghent University |
1231 | + * @param string $catname |
|
1228 | 1232 | */ |
1229 | 1233 | public static function get_cat($catname) |
1230 | 1234 | { |
@@ -1264,6 +1268,11 @@ discard block |
||
1264 | 1268 | /** |
1265 | 1269 | * CSV file import functions |
1266 | 1270 | * @author René Haentjens , Ghent University |
1271 | + * @param string $url |
|
1272 | + * @param string $title |
|
1273 | + * @param string $description |
|
1274 | + * @param string $on_homepage |
|
1275 | + * @param string $hidden |
|
1267 | 1276 | */ |
1268 | 1277 | public static function put_link($url, $cat, $title, $description, $on_homepage, $hidden) |
1269 | 1278 | { |
@@ -1622,7 +1631,6 @@ discard block |
||
1622 | 1631 | /** |
1623 | 1632 | * @param int $linkId |
1624 | 1633 | * @param $action |
1625 | - * @param null $urlview |
|
1626 | 1634 | * @param null $token |
1627 | 1635 | * @return FormValidator |
1628 | 1636 | */ |
@@ -242,6 +242,8 @@ 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 integer $session_id |
|
245 | 247 | * @return array Thematic data |
246 | 248 | */ |
247 | 249 | public static function get_thematic_list( |
@@ -798,6 +800,7 @@ discard block |
||
798 | 800 | /** |
799 | 801 | * delete thematic advance |
800 | 802 | * @param int Thematic advance id |
803 | + * @param integer $thematic_advance_id |
|
801 | 804 | * @return int Affected rows |
802 | 805 | */ |
803 | 806 | public function thematic_advance_destroy($thematic_advance_id) |
@@ -1114,6 +1117,7 @@ discard block |
||
1114 | 1117 | /** |
1115 | 1118 | * update done thematic advances from thematic details interface |
1116 | 1119 | * @param int Thematic id |
1120 | + * @param integer $thematic_advance_id |
|
1117 | 1121 | * @return int Affected rows |
1118 | 1122 | */ |
1119 | 1123 | public function update_done_thematic_advances($thematic_advance_id) |
@@ -1296,6 +1300,7 @@ discard block |
||
1296 | 1300 | * Get total average of thematic advances |
1297 | 1301 | * @param string Course code (optional) |
1298 | 1302 | * @param int Session id (optional) |
1303 | + * @param integer $session_id |
|
1299 | 1304 | * @return float Average of thematic advances |
1300 | 1305 | */ |
1301 | 1306 | public function get_total_average_of_thematic_advances($course_code = null, $session_id = null) |
@@ -1433,7 +1438,7 @@ discard block |
||
1433 | 1438 | |
1434 | 1439 | /** |
1435 | 1440 | * get thematic id |
1436 | - * @return void |
|
1441 | + * @return integer |
|
1437 | 1442 | */ |
1438 | 1443 | public function get_thematic_id() |
1439 | 1444 | { |
@@ -1442,7 +1447,7 @@ discard block |
||
1442 | 1447 | |
1443 | 1448 | /** |
1444 | 1449 | * Get thematic plan titles by default |
1445 | - * @return array |
|
1450 | + * @return string[] |
|
1446 | 1451 | */ |
1447 | 1452 | public function get_default_thematic_plan_title() |
1448 | 1453 | { |
@@ -1459,7 +1464,7 @@ discard block |
||
1459 | 1464 | |
1460 | 1465 | /** |
1461 | 1466 | * Get thematic plan icons by default |
1462 | - * @return array |
|
1467 | + * @return string[] |
|
1463 | 1468 | */ |
1464 | 1469 | public function get_default_thematic_plan_icon() |
1465 | 1470 | { |
@@ -1476,7 +1481,7 @@ discard block |
||
1476 | 1481 | |
1477 | 1482 | /** |
1478 | 1483 | * Get questions by default for help |
1479 | - * @return array |
|
1484 | + * @return string[] |
|
1480 | 1485 | */ |
1481 | 1486 | public function get_default_question() |
1482 | 1487 | { |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | * This function saves a change in a wiki page |
259 | 259 | * @author Patrick Cool <[email protected]>, Ghent University |
260 | 260 | * @param array $values |
261 | - * @return language string saying that the changes are stored |
|
261 | + * @return string string saying that the changes are stored |
|
262 | 262 | **/ |
263 | 263 | public function save_wiki($values) |
264 | 264 | { |
@@ -1196,6 +1196,7 @@ discard block |
||
1196 | 1196 | * Checks if this navigation tab has to be set to active |
1197 | 1197 | * @author Patrick Cool <[email protected]>, Ghent University |
1198 | 1198 | * |
1199 | + * @param string $paramwk |
|
1199 | 1200 | * @return string html code |
1200 | 1201 | */ |
1201 | 1202 | public function is_active_navigation_tab($paramwk) |
@@ -1711,6 +1712,7 @@ discard block |
||
1711 | 1712 | |
1712 | 1713 | /** |
1713 | 1714 | * Sends pending e-mails |
1715 | + * @param string $type |
|
1714 | 1716 | */ |
1715 | 1717 | public function check_emailcue($id_or_ref, $type, $lastime='', $lastuser='') |
1716 | 1718 | { |
@@ -2011,6 +2013,7 @@ discard block |
||
2011 | 2013 | |
2012 | 2014 | /** |
2013 | 2015 | * Exports the wiki page to PDF |
2016 | + * @param string $course_code |
|
2014 | 2017 | */ |
2015 | 2018 | public function export_to_pdf($id, $course_code) |
2016 | 2019 | { |
@@ -2478,6 +2481,7 @@ discard block |
||
2478 | 2481 | /** |
2479 | 2482 | * Draws an HTML form select with the given options |
2480 | 2483 | * |
2484 | + * @param string $name |
|
2481 | 2485 | */ |
2482 | 2486 | public function make_select($name,$values,$checked='') |
2483 | 2487 | { |
@@ -2514,7 +2518,7 @@ discard block |
||
2514 | 2518 | /** |
2515 | 2519 | * Get wiki information |
2516 | 2520 | * @param int wiki id |
2517 | - * @return array wiki data |
|
2521 | + * @return string wiki data |
|
2518 | 2522 | */ |
2519 | 2523 | public function get_wiki_data($id) |
2520 | 2524 | { |
@@ -2558,6 +2562,7 @@ discard block |
||
2558 | 2562 | * Get wiki information |
2559 | 2563 | * @param string wiki id |
2560 | 2564 | * @param int $courseId |
2565 | + * @param string $title |
|
2561 | 2566 | * @return array wiki data |
2562 | 2567 | */ |
2563 | 2568 | public function getPageByTitle($title, $courseId = null) |
@@ -2590,6 +2595,8 @@ discard block |
||
2590 | 2595 | * @param int $courseId |
2591 | 2596 | * @param string |
2592 | 2597 | * @param string |
2598 | + * @param string $groupfilter |
|
2599 | + * @param string $condition_session |
|
2593 | 2600 | * @return bool |
2594 | 2601 | */ |
2595 | 2602 | public function deletePage($title, $courseId, $groupfilter = null, $condition_session = null) |
@@ -3635,6 +3642,7 @@ discard block |
||
3635 | 3642 | |
3636 | 3643 | /** |
3637 | 3644 | * Show all pages |
3645 | + * @param string $action |
|
3638 | 3646 | */ |
3639 | 3647 | public function allPages($action) |
3640 | 3648 | { |
@@ -4190,7 +4198,7 @@ discard block |
||
4190 | 4198 | |
4191 | 4199 | /** |
4192 | 4200 | * Restore page |
4193 | - * @return bool |
|
4201 | + * @return false|null |
|
4194 | 4202 | */ |
4195 | 4203 | public function restorePage() |
4196 | 4204 | { |
@@ -173,7 +173,7 @@ |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param array $file |
176 | - * @return bool|string |
|
176 | + * @return string|false |
|
177 | 177 | */ |
178 | 178 | public static function import_uploaded_file($file) |
179 | 179 | { |
@@ -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 | { |