@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | * @author Bert Vanderkimpen |
693 | 693 | * @author Yannick Warnier <[email protected]> Adaptation for work tool |
694 | 694 | * @param string $base_work_dir Base work dir (.../work) |
695 | - * @param string $desiredDirName complete path of the desired name |
|
695 | + * @param string $desired_dir_name complete path of the desired name |
|
696 | 696 | * |
697 | 697 | * @return string actual directory name if it succeeds, boolean false otherwise |
698 | 698 | */ |
@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | /** |
715 | 715 | * Delete a work-tool directory |
716 | 716 | * @param int $id work directory id to delete |
717 | - * @return integer -1 on error |
|
717 | + * @return boolean|null -1 on error |
|
718 | 718 | */ |
719 | 719 | function deleteDirWork($id) |
720 | 720 | { |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | * Update the url of a dir in the student_publication table |
858 | 858 | * @param array $work_data work original data |
859 | 859 | * @param string $newPath Example: "folder1" |
860 | - * @return bool |
|
860 | + * @return boolean|null |
|
861 | 861 | */ |
862 | 862 | function updateDirName($work_data, $newPath) |
863 | 863 | { |
@@ -914,6 +914,7 @@ discard block |
||
914 | 914 | /** |
915 | 915 | * Transform an all directory structure (only directories) in an array |
916 | 916 | * @param string path of the directory |
917 | + * @param string $directory |
|
917 | 918 | * @return array the directory structure into an array |
918 | 919 | * @author Julio Montoya Dokeos |
919 | 920 | * @version April 2008 |
@@ -983,7 +984,7 @@ discard block |
||
983 | 984 | * @param string the path of the directory |
984 | 985 | * @param boolean true if we want the total quantity of files |
985 | 986 | * include in others child directories, false only files in the directory |
986 | - * @return array the first element is an integer with the number of files |
|
987 | + * @return integer[] the first element is an integer with the number of files |
|
987 | 988 | * in the folder, the second element is the number of directories |
988 | 989 | * @author Julio Montoya |
989 | 990 | * @version April 2008 |
@@ -2713,7 +2714,7 @@ discard block |
||
2713 | 2714 | * @param int $userId |
2714 | 2715 | * @param int $workId |
2715 | 2716 | * @param int $courseId |
2716 | - * @return bool |
|
2717 | + * @return boolean|null |
|
2717 | 2718 | */ |
2718 | 2719 | function allowOnlySubscribedUser($userId, $workId, $courseId) |
2719 | 2720 | { |
@@ -2831,7 +2832,7 @@ discard block |
||
2831 | 2832 | /** |
2832 | 2833 | * Get total score from a work list |
2833 | 2834 | * @param $workList |
2834 | - * @return int|null |
|
2835 | + * @return integer |
|
2835 | 2836 | */ |
2836 | 2837 | function getTotalWorkScore($workList) |
2837 | 2838 | { |
@@ -2847,7 +2848,7 @@ discard block |
||
2847 | 2848 | * Get comment count from a work list (docs sent by students) |
2848 | 2849 | * @param array $workList |
2849 | 2850 | * @param array $courseInfo |
2850 | - * @return int|null |
|
2851 | + * @return integer |
|
2851 | 2852 | */ |
2852 | 2853 | function getTotalWorkComment($workList, $courseInfo = array()) |
2853 | 2854 | { |
@@ -2985,6 +2986,7 @@ discard block |
||
2985 | 2986 | * @param int $parentId |
2986 | 2987 | * @param array $courseInfo |
2987 | 2988 | * @param int $sessionId |
2989 | + * @param integer $userId |
|
2988 | 2990 | * @return int |
2989 | 2991 | */ |
2990 | 2992 | function getLastWorkStudentFromParentByUser( |
@@ -3614,12 +3616,11 @@ discard block |
||
3614 | 3616 | |
3615 | 3617 | /** |
3616 | 3618 | * Creates a new task (directory) in the assignment tool |
3617 | - * @param array $params |
|
3618 | 3619 | * @param int $user_id |
3619 | 3620 | * @param array $courseInfo |
3620 | 3621 | * @param int $group_id |
3621 | 3622 | * @param int $session_id |
3622 | - * @return bool|int |
|
3623 | + * @return string|false |
|
3623 | 3624 | * @note $params can have the following elements, but should at least have the 2 first ones: ( |
3624 | 3625 | * 'new_dir' => 'some-name', |
3625 | 3626 | * 'description' => 'some-desc', |
@@ -4115,7 +4116,7 @@ discard block |
||
4115 | 4116 | } |
4116 | 4117 | |
4117 | 4118 | /** |
4118 | - * @return array |
|
4119 | + * @return string[] |
|
4119 | 4120 | */ |
4120 | 4121 | function getUploadDocumentType() |
4121 | 4122 | { |
@@ -4488,7 +4489,7 @@ discard block |
||
4488 | 4489 | * @param int Session ID |
4489 | 4490 | * @param $correction |
4490 | 4491 | * |
4491 | - * @return array|bool |
|
4492 | + * @return boolean |
|
4492 | 4493 | */ |
4493 | 4494 | function getFileContents($id, $course_info, $sessionId = 0, $correction = false) |
4494 | 4495 | { |
@@ -4606,7 +4607,7 @@ discard block |
||
4606 | 4607 | * @param int $userId |
4607 | 4608 | * @param array $courseInfo |
4608 | 4609 | * @param string $format |
4609 | - * @return bool |
|
4610 | + * @return false|null |
|
4610 | 4611 | */ |
4611 | 4612 | function exportAllWork($userId, $courseInfo, $format = 'pdf') |
4612 | 4613 | { |
@@ -4654,7 +4655,7 @@ discard block |
||
4654 | 4655 | * @param array $courseInfo |
4655 | 4656 | * @param int $sessionId |
4656 | 4657 | * @param string $format |
4657 | - * @return bool |
|
4658 | + * @return false|null |
|
4658 | 4659 | */ |
4659 | 4660 | function exportAllStudentWorkFromPublication( |
4660 | 4661 | $workId, |
@@ -4792,7 +4793,7 @@ discard block |
||
4792 | 4793 | * Downloads all user files per user |
4793 | 4794 | * @param int $userId |
4794 | 4795 | * @param array $courseInfo |
4795 | - * @return bool |
|
4796 | + * @return false|null |
|
4796 | 4797 | */ |
4797 | 4798 | function downloadAllFilesPerUser($userId, $courseInfo) |
4798 | 4799 | { |
@@ -4906,7 +4907,7 @@ discard block |
||
4906 | 4907 | /** |
4907 | 4908 | * @param array $courseInfo |
4908 | 4909 | * @param int $workId |
4909 | - * @return bool |
|
4910 | + * @return boolean|null |
|
4910 | 4911 | */ |
4911 | 4912 | function protectWork($courseInfo, $workId) |
4912 | 4913 | { |
@@ -1154,7 +1154,7 @@ discard block |
||
1154 | 1154 | /** |
1155 | 1155 | * Returns an array containing the list of options used to populate the gradebook_number_decimals variable |
1156 | 1156 | * This function is called through a call_user_func() in the generate_settings_form function. |
1157 | - * @return array List of gradebook_number_decimals options |
|
1157 | + * @return string[] List of gradebook_number_decimals options |
|
1158 | 1158 | * |
1159 | 1159 | * @author Guillaume Viguier <[email protected]> |
1160 | 1160 | */ |
@@ -1575,8 +1575,9 @@ discard block |
||
1575 | 1575 | } |
1576 | 1576 | /** |
1577 | 1577 | * Helper function to generates a form elements group |
1578 | - * @param object $form The form where the elements group has to be added |
|
1578 | + * @param FormValidator $form The form where the elements group has to be added |
|
1579 | 1579 | * @param array $values Values to browse through |
1580 | + * @param string $elementName |
|
1580 | 1581 | * @return array |
1581 | 1582 | */ |
1582 | 1583 | function formGenerateElementsGroup($form, $values = array(), $elementName) |
@@ -1592,7 +1593,7 @@ discard block |
||
1592 | 1593 | } |
1593 | 1594 | /** |
1594 | 1595 | * Helper function with allowed file types for CSS |
1595 | - * @return array Array of file types (no indexes) |
|
1596 | + * @return string[] Array of file types (no indexes) |
|
1596 | 1597 | */ |
1597 | 1598 | function getAllowedFileTypes() |
1598 | 1599 | { |
@@ -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 | { |
@@ -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) |
@@ -1197,6 +1205,7 @@ discard block |
||
1197 | 1205 | /** |
1198 | 1206 | * Get next attendance calendar without presences (done attendances) |
1199 | 1207 | * @param int attendance id |
1208 | + * @param integer $attendance_id |
|
1200 | 1209 | * @return int attendance calendar id |
1201 | 1210 | */ |
1202 | 1211 | public function get_next_attendance_calendar_id($attendance_id) |
@@ -1225,6 +1234,7 @@ discard block |
||
1225 | 1234 | /** |
1226 | 1235 | * Get next attendance calendar datetime without presences (done attendances) |
1227 | 1236 | * @param int attendance id |
1237 | + * @param integer $attendance_id |
|
1228 | 1238 | * @return int UNIX time format datetime |
1229 | 1239 | */ |
1230 | 1240 | public function get_next_attendance_calendar_datetime($attendance_id) |
@@ -1253,6 +1263,7 @@ discard block |
||
1253 | 1263 | * Get user' score from current attendance |
1254 | 1264 | * @param int $user_id |
1255 | 1265 | * @param int $attendance_id |
1266 | + * @param integer $groupId |
|
1256 | 1267 | * @return int score |
1257 | 1268 | */ |
1258 | 1269 | public function get_user_score($user_id, $attendance_id, $groupId = null) |
@@ -1300,6 +1311,7 @@ discard block |
||
1300 | 1311 | /** |
1301 | 1312 | * Get attendance calendar data by id |
1302 | 1313 | * @param int attendance calendar id |
1314 | + * @param integer $calendar_id |
|
1303 | 1315 | * @return array attendance calendar data |
1304 | 1316 | */ |
1305 | 1317 | public function get_attendance_calendar_by_id($calendar_id) |
@@ -1422,6 +1434,7 @@ discard block |
||
1422 | 1434 | * Get number of attendance calendar inside current attendance |
1423 | 1435 | * @param int $attendance_id |
1424 | 1436 | * @param int $groupId |
1437 | + * @param boolean $done_attendance |
|
1425 | 1438 | * @return int number of dates in attendance calendar |
1426 | 1439 | */ |
1427 | 1440 | public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0) |
@@ -1647,7 +1660,6 @@ discard block |
||
1647 | 1660 | /** |
1648 | 1661 | * @param int $calendarId |
1649 | 1662 | * @param int $courseId |
1650 | - * @param int $groupId |
|
1651 | 1663 | * @return array |
1652 | 1664 | */ |
1653 | 1665 | public function getGroupListByAttendanceCalendar($calendarId, $courseId) |
@@ -1687,7 +1699,6 @@ discard block |
||
1687 | 1699 | /** |
1688 | 1700 | * @param int $calendarId |
1689 | 1701 | * @param int $courseId |
1690 | - * @param int $groupId |
|
1691 | 1702 | * |
1692 | 1703 | * @return array |
1693 | 1704 | */ |
@@ -1788,6 +1799,8 @@ discard block |
||
1788 | 1799 | * edit a datetime inside attendance calendar table |
1789 | 1800 | * @param int attendance calendar id |
1790 | 1801 | * @param int attendance id |
1802 | + * @param integer $calendar_id |
|
1803 | + * @param integer $attendance_id |
|
1791 | 1804 | * @return int affected rows |
1792 | 1805 | */ |
1793 | 1806 | public function attendance_calendar_edit($calendar_id, $attendance_id) |
@@ -1827,6 +1840,8 @@ discard block |
||
1827 | 1840 | * @param int attendance calendar id |
1828 | 1841 | * @param int attendance id |
1829 | 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 |
|
1830 | 1845 | * @return int affected rows |
1831 | 1846 | */ |
1832 | 1847 | public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false) |
@@ -1889,6 +1904,9 @@ discard block |
||
1889 | 1904 | $this->course_id = $course_id; |
1890 | 1905 | } |
1891 | 1906 | |
1907 | + /** |
|
1908 | + * @param string $datetime |
|
1909 | + */ |
|
1892 | 1910 | public function set_date_time($datetime) |
1893 | 1911 | { |
1894 | 1912 | $this->date_time = $datetime; |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Available driver list. |
87 | - * @return array |
|
87 | + * @return string[] |
|
88 | 88 | */ |
89 | 89 | private function getDefaultDriverList() |
90 | 90 | { |
@@ -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 | { |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | * Gets an array of options for a specific field |
413 | 413 | * @param int $field_id The field ID |
414 | 414 | * @param bool $add_id_in_array Whether to add the row ID in the result |
415 | - * @param null $ordered_by Extra ordering query bit |
|
415 | + * @param null|string $ordered_by Extra ordering query bit |
|
416 | 416 | * @return array The options if they exists. Otherwise return false |
417 | 417 | */ |
418 | 418 | public function get_field_options_by_field($field_id, $add_id_in_array = false, $ordered_by = null) |
@@ -782,8 +782,8 @@ discard block |
||
782 | 782 | } |
783 | 783 | |
784 | 784 | /** |
785 | - * @param $defaultDisplayText |
|
786 | - * @return mixed|string |
|
785 | + * @param string $defaultDisplayText |
|
786 | + * @return string |
|
787 | 787 | */ |
788 | 788 | public static function getLanguageVariable($defaultDisplayText) |
789 | 789 | { |
@@ -954,7 +954,7 @@ |
||
954 | 954 | /** |
955 | 955 | * This function has been created for avoiding changes directly within QuickForm class. |
956 | 956 | * When we use it, the element is threated as 'required' to be dealt during validation. |
957 | - * @param array $element The array of elements |
|
957 | + * @param array $elements The array of elements |
|
958 | 958 | * @param string $message The message displayed |
959 | 959 | */ |
960 | 960 | public function add_multiple_required_rule($elements, $message) |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * @author Kjell-Inge Gustafsson <[email protected]> |
137 | 137 | * @since 2.4.8 - 2008-10-21 |
138 | 138 | * @param string $value |
139 | - * @return void |
|
139 | + * @return false|null |
|
140 | 140 | */ |
141 | 141 | function setCalscale( $value ) { |
142 | 142 | if( empty( $value )) return FALSE; |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * @author Kjell-Inge Gustafsson <[email protected]> |
273 | 273 | * @since 2.4.8 - 2008-10-23 |
274 | 274 | * @param string $value |
275 | - * @return void |
|
275 | + * @return boolean |
|
276 | 276 | */ |
277 | 277 | function setVersion( $value ) { |
278 | 278 | if( empty( $value )) return FALSE; |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * @since 2.4.11 - 2008-11-04 |
325 | 325 | * @param string $label |
326 | 326 | * @param string $value |
327 | - * @param array $params optional |
|
327 | + * @param null|string $params optional |
|
328 | 328 | * @return bool |
329 | 329 | */ |
330 | 330 | function setXprop($label, $value, $params = array()) { |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | * @param mixed variable number of function arguments, |
451 | 451 | * first argument is ALWAYS component name, |
452 | 452 | * second ALWAYS component value! |
453 | - * @return bool |
|
453 | + * @return null|boolean |
|
454 | 454 | */ |
455 | 455 | function setProperty () { |
456 | 456 | $numargs = func_num_args(); |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | * @author Kjell-Inge Gustafsson <[email protected]> |
479 | 479 | * @since 2.4.10 - 2008-10-23 |
480 | 480 | * @param string $config |
481 | - * @return value |
|
481 | + * @return string |
|
482 | 482 | */ |
483 | 483 | function getConfig( $config ) { |
484 | 484 | switch( strtoupper( $config )) { |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | * @since 2.4.10 - 2008-08-05 |
700 | 700 | * @param mixed $arg1 ordno / component type / component uid |
701 | 701 | * @param mixed $arg2 optional, ordno if arg1 = component type |
702 | - * @return void |
|
702 | + * @return boolean |
|
703 | 703 | */ |
704 | 704 | function deleteComponent( $arg1, $arg2=FALSE ) { |
705 | 705 | $argType = $index = null; |
@@ -1058,7 +1058,7 @@ discard block |
||
1058 | 1058 | * @param object $component calendar component |
1059 | 1059 | * @param mixed $arg1 optional, ordno/component type/ component uid |
1060 | 1060 | * @param mixed $arg2 optional, ordno if arg1 = component type |
1061 | - * @return void |
|
1061 | + * @return boolean |
|
1062 | 1062 | */ |
1063 | 1063 | function setComponent( $component, $arg1=FALSE, $arg2=FALSE ) { |
1064 | 1064 | if( '' >= $component->getConfig( 'language')) |
@@ -1607,7 +1607,7 @@ discard block |
||
1607 | 1607 | * @param string $filename optional |
1608 | 1608 | * @param string $delimiter optional |
1609 | 1609 | * @param int timeout optional, default 3600 sec |
1610 | - * @return mixed |
|
1610 | + * @return false|null |
|
1611 | 1611 | */ |
1612 | 1612 | function useCachedCalendar($directory=FALSE, $filename=FALSE, $delimiter=FALSE, $timeout=3600) { |
1613 | 1613 | if ( $directory && ctype_digit( (string) $directory ) && !$filename ) { |
@@ -2310,7 +2310,7 @@ discard block |
||
2310 | 2310 | * @param int $min optional |
2311 | 2311 | * @param int $sec optional |
2312 | 2312 | * @param array $params optional |
2313 | - * @return TRUE |
|
2313 | + * @return boolean |
|
2314 | 2314 | */ |
2315 | 2315 | function setDtstamp( $year, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $params=FALSE ) { |
2316 | 2316 | if( empty( $year )) |
@@ -2796,7 +2796,7 @@ discard block |
||
2796 | 2796 | * @param int $min optional |
2797 | 2797 | * @param int $sec optional |
2798 | 2798 | * @param array $params optional |
2799 | - * @return boll |
|
2799 | + * @return boolean |
|
2800 | 2800 | */ |
2801 | 2801 | function setLastModified( $year=FALSE, $month=FALSE, $day=FALSE, $hour=FALSE, $min=FALSE, $sec=FALSE, $params=FALSE ) { |
2802 | 2802 | if( empty( $year )) |
@@ -3217,7 +3217,6 @@ discard block |
||
3217 | 3217 | * |
3218 | 3218 | * @author Kjell-Inge Gustafsson <[email protected]> |
3219 | 3219 | * @since 2.5.1 - 2008-11-07 |
3220 | - * @param float $relid |
|
3221 | 3220 | * @param array $params optional |
3222 | 3221 | * @param index $index optional |
3223 | 3222 | * @return bool |
@@ -3255,7 +3254,7 @@ discard block |
||
3255 | 3254 | * @since 2.4.8 - 2008-11-04 |
3256 | 3255 | * @param string $value |
3257 | 3256 | * @param array $params optional |
3258 | - * @return void |
|
3257 | + * @return boolean |
|
3259 | 3258 | */ |
3260 | 3259 | function setRepeat( $value, $params=FALSE ) { |
3261 | 3260 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
@@ -3378,7 +3377,7 @@ discard block |
||
3378 | 3377 | * @param array $rruleset |
3379 | 3378 | * @param array $params optional |
3380 | 3379 | * @param integer $index optional |
3381 | - * @return void |
|
3380 | + * @return boolean |
|
3382 | 3381 | */ |
3383 | 3382 | function setRrule( $rruleset, $params=FALSE, $index=FALSE ) { |
3384 | 3383 | if( empty( $rruleset )) if( $this->getConfig( 'allowEmpty' )) $rruleset = null; else return FALSE; |
@@ -3804,7 +3803,7 @@ discard block |
||
3804 | 3803 | * @since 2.4.8 - 2008-11-04 |
3805 | 3804 | * @param string $value |
3806 | 3805 | * @param string $params optional |
3807 | - * @return boll |
|
3806 | + * @return boolean |
|
3808 | 3807 | */ |
3809 | 3808 | function setTzurl( $value, $params=FALSE ) { |
3810 | 3809 | if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = null; else return FALSE; |
@@ -3933,7 +3932,7 @@ discard block |
||
3933 | 3932 | * @param string $label |
3934 | 3933 | * @param mixed $value |
3935 | 3934 | * @param array $params optional |
3936 | - * @return bool |
|
3935 | + * @return null|boolean |
|
3937 | 3936 | */ |
3938 | 3937 | function setXprop( $label, $value, $params=FALSE ) { |
3939 | 3938 | if( empty( $label )) return; |
@@ -4100,7 +4099,7 @@ discard block |
||
4100 | 4099 | * @author Kjell-Inge Gustafsson <[email protected]> |
4101 | 4100 | * @since 0.9.22 - 2007-04-10 |
4102 | 4101 | * @param array $params optional |
4103 | - * @param array $ctrKeys optional |
|
4102 | + * @param string[] $ctrKeys optional |
|
4104 | 4103 | * @return string |
4105 | 4104 | */ |
4106 | 4105 | function _createParams( $params=array(), $ctrKeys=array() ) { |
@@ -4142,7 +4141,6 @@ discard block |
||
4142 | 4141 | * |
4143 | 4142 | * @author Kjell-Inge Gustafsson <[email protected]> |
4144 | 4143 | * @since 2.4.16 - 2008-10-25 |
4145 | - * @param array $date date to check |
|
4146 | 4144 | * @param int $parno no of date parts (i.e. year, month.. .) |
4147 | 4145 | * @return array $params property parameters |
4148 | 4146 | */ |
@@ -4198,7 +4196,6 @@ discard block |
||
4198 | 4196 | * @author Kjell-Inge Gustafsson <[email protected]> |
4199 | 4197 | * @since 2.2.11 - 2007-11-03 |
4200 | 4198 | * @param array $startdate optional |
4201 | - * @param array $duration optional |
|
4202 | 4199 | * @return array duration |
4203 | 4200 | */ |
4204 | 4201 | function _date2duration( $startdate=FALSE, $enddate=FALSE ) { |
@@ -4232,7 +4229,7 @@ discard block |
||
4232 | 4229 | * @since 2.4.8 - 2008-10-30 |
4233 | 4230 | * @param array $datetime datetime/(date) |
4234 | 4231 | * @param string $tz timezone |
4235 | - * @return timestamp |
|
4232 | + * @return integer |
|
4236 | 4233 | */ |
4237 | 4234 | function _date2timestamp( $datetime, $tz=null ) { |
4238 | 4235 | $output = null; |
@@ -4691,7 +4688,7 @@ discard block |
||
4691 | 4688 | * |
4692 | 4689 | * @author Kjell-Inge Gustafsson <[email protected]> |
4693 | 4690 | * @since 2.4.8 - 2008-10-22 |
4694 | - * @param array $recurlabel |
|
4691 | + * @param string $recurlabel |
|
4695 | 4692 | * @param array $recurdata |
4696 | 4693 | * @return string |
4697 | 4694 | */ |
@@ -5231,6 +5228,10 @@ discard block |
||
5231 | 5228 | else |
5232 | 5229 | return FALSE; |
5233 | 5230 | } |
5231 | + |
|
5232 | + /** |
|
5233 | + * @param integer $wkst |
|
5234 | + */ |
|
5234 | 5235 | function _recurIntervalIx( $freq, $date, $wkst ) { |
5235 | 5236 | /* create interval index */ |
5236 | 5237 | switch( $freq ) { |
@@ -5539,7 +5540,6 @@ discard block |
||
5539 | 5540 | * |
5540 | 5541 | * @author Kjell-Inge Gustafsson <[email protected]> |
5541 | 5542 | * @since 2.4.16 - 2008-10-19 |
5542 | - * @param string $offset |
|
5543 | 5543 | * @return integer |
5544 | 5544 | */ |
5545 | 5545 | function _tz2offset( $tz ) { |
@@ -6195,9 +6195,6 @@ discard block |
||
6195 | 6195 | * |
6196 | 6196 | * @author Kjell-Inge Gustafsson <[email protected]> |
6197 | 6197 | * @since 2.5.1 - 2008-11-05 |
6198 | - * @param mixed $args variable number of function arguments, |
|
6199 | - * first argument is ALWAYS component name, |
|
6200 | - * second ALWAYS component value! |
|
6201 | 6198 | * @return void |
6202 | 6199 | */ |
6203 | 6200 | function setProperty() { |
@@ -6311,7 +6308,7 @@ discard block |
||
6311 | 6308 | * @author Kjell-Inge Gustafsson <[email protected]> |
6312 | 6309 | * @since 2.5.2 - 2008-10-23 |
6313 | 6310 | * @param mixed $unparsedtext optional, strict rfc2445 formatted, single property string or array of property strings |
6314 | - * @return bool FALSE if error occurs during parsing |
|
6311 | + * @return boolean|null FALSE if error occurs during parsing |
|
6315 | 6312 | * |
6316 | 6313 | */ |
6317 | 6314 | function parse( $unparsedtext=null ) { |
@@ -6613,7 +6610,7 @@ discard block |
||
6613 | 6610 | * @since 2.5.1 - 2008-10-15 |
6614 | 6611 | * @param mixed $arg1 ordno / component type / component uid |
6615 | 6612 | * @param mixed $arg2 optional, ordno if arg1 = component type |
6616 | - * @return void |
|
6613 | + * @return boolean |
|
6617 | 6614 | */ |
6618 | 6615 | function deleteComponent( $arg1, $arg2=FALSE ) { |
6619 | 6616 | if( !isset( $this->components )) return FALSE; |
@@ -6816,7 +6813,7 @@ discard block |
||
6816 | 6813 | * |
6817 | 6814 | * @author Kjell-Inge Gustafsson <[email protected]> |
6818 | 6815 | * @since 2.2.8 - 2006-09-03 |
6819 | - * @param string $value |
|
6816 | + * @param string $string |
|
6820 | 6817 | * @return string |
6821 | 6818 | */ |
6822 | 6819 | function _size75( $string ) { |
@@ -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|bool wiki id |
2517 | - * @return array wiki data |
|
2521 | + * @return string wiki data |
|
2518 | 2522 | */ |
2519 | 2523 | public function getWikiDataFromDb($id) |
2520 | 2524 | { |
@@ -2561,6 +2565,7 @@ discard block |
||
2561 | 2565 | * Get wiki information |
2562 | 2566 | * @param string wiki id |
2563 | 2567 | * @param int $courseId |
2568 | + * @param string $title |
|
2564 | 2569 | * @return array wiki data |
2565 | 2570 | */ |
2566 | 2571 | public function getPageByTitle($title, $courseId = null) |
@@ -2593,6 +2598,8 @@ discard block |
||
2593 | 2598 | * @param int $courseId |
2594 | 2599 | * @param string |
2595 | 2600 | * @param string |
2601 | + * @param string $groupfilter |
|
2602 | + * @param string $condition_session |
|
2596 | 2603 | * @return bool |
2597 | 2604 | */ |
2598 | 2605 | public function deletePage($title, $courseId, $groupfilter = null, $condition_session = null) |
@@ -3644,6 +3651,7 @@ discard block |
||
3644 | 3651 | |
3645 | 3652 | /** |
3646 | 3653 | * Show all pages |
3654 | + * @param string $action |
|
3647 | 3655 | */ |
3648 | 3656 | public function allPages($action) |
3649 | 3657 | { |
@@ -4200,7 +4208,7 @@ discard block |
||
4200 | 4208 | |
4201 | 4209 | /** |
4202 | 4210 | * Restore page |
4203 | - * @return bool |
|
4211 | + * @return false|null |
|
4204 | 4212 | */ |
4205 | 4213 | public function restorePage() |
4206 | 4214 | { |
@@ -4302,7 +4310,7 @@ discard block |
||
4302 | 4310 | } |
4303 | 4311 | |
4304 | 4312 | /** |
4305 | - * @param int|bool $wikiId |
|
4313 | + * @param false|string $wikiId |
|
4306 | 4314 | */ |
4307 | 4315 | public function setWikiData($wikiId) |
4308 | 4316 | { |