@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * Add attendances sheet inside table. This is the *list of* dates, not |
| 278 | 278 | * a specific date in itself. |
| 279 | 279 | * @param bool true for adding link in gradebook or false otherwise (optional) |
| 280 | - * @return int last attendance id |
|
| 280 | + * @return false|string last attendance id |
|
| 281 | 281 | */ |
| 282 | 282 | public function attendance_add($link_to_gradebook = false) |
| 283 | 283 | { |
@@ -354,6 +354,7 @@ discard block |
||
| 354 | 354 | * edit attendances inside table |
| 355 | 355 | * @param int attendance id |
| 356 | 356 | * @param bool true for adding link in gradebook or false otherwise (optional) |
| 357 | + * @param integer $attendance_id |
|
| 357 | 358 | * @return int last id |
| 358 | 359 | */ |
| 359 | 360 | public function attendance_edit($attendance_id, $link_to_gradebook = false) |
@@ -429,6 +430,7 @@ discard block |
||
| 429 | 430 | /** |
| 430 | 431 | * Restore attendance |
| 431 | 432 | * @param int|array one or many attendances id |
| 433 | + * @param integer $attendance_id |
|
| 432 | 434 | * @return int affected rows |
| 433 | 435 | */ |
| 434 | 436 | public function attendance_restore($attendance_id) |
@@ -478,7 +480,7 @@ discard block |
||
| 478 | 480 | |
| 479 | 481 | /** |
| 480 | 482 | * Delete attendances |
| 481 | - * @param int|array $attendance_id one or many attendances id |
|
| 483 | + * @param integer $attendance_id one or many attendances id |
|
| 482 | 484 | * @return int affected rows |
| 483 | 485 | */ |
| 484 | 486 | public function attendance_delete($attendance_id) |
@@ -530,7 +532,7 @@ discard block |
||
| 530 | 532 | |
| 531 | 533 | /** |
| 532 | 534 | * Changes visibility |
| 533 | - * @param int|array $attendanceId one or many attendances id |
|
| 535 | + * @param integer $attendanceId one or many attendances id |
|
| 534 | 536 | * @param int status |
| 535 | 537 | * |
| 536 | 538 | * @return int affected rows |
@@ -585,6 +587,7 @@ discard block |
||
| 585 | 587 | * Lock or unlock an attendance |
| 586 | 588 | * @param int attendance id |
| 587 | 589 | * @param bool True to lock or false otherwise |
| 590 | + * @param integer $attendance_id |
|
| 588 | 591 | */ |
| 589 | 592 | public function lock_attendance($attendance_id, $lock = true) |
| 590 | 593 | { |
@@ -918,7 +921,10 @@ discard block |
||
| 918 | 921 | * @param string Event type ('locked_attendance', 'done_attendance_sheet' ...) |
| 919 | 922 | * @param int Last edit user id |
| 920 | 923 | * @param string Calendar datetime value (optional, when event type is 'done_attendance_sheet') |
| 921 | - * @return int Affected rows |
|
| 924 | + * @param integer $attendance_id |
|
| 925 | + * @param string $lastedit_type |
|
| 926 | + * @param integer $lastedit_user_id |
|
| 927 | + * @return false|string Affected rows |
|
| 922 | 928 | */ |
| 923 | 929 | public function save_attendance_sheet_log( |
| 924 | 930 | $attendance_id, |
@@ -963,6 +969,7 @@ discard block |
||
| 963 | 969 | /** |
| 964 | 970 | * Get number of done attendances inside current sheet |
| 965 | 971 | * @param int attendance id |
| 972 | + * @param integer $attendance_id |
|
| 966 | 973 | * @return int number of done attendances |
| 967 | 974 | */ |
| 968 | 975 | public static function get_done_attendance_calendar($attendance_id) |
@@ -1198,6 +1205,7 @@ discard block |
||
| 1198 | 1205 | /** |
| 1199 | 1206 | * Get next attendance calendar without presences (done attendances) |
| 1200 | 1207 | * @param int attendance id |
| 1208 | + * @param integer $attendance_id |
|
| 1201 | 1209 | * @return int attendance calendar id |
| 1202 | 1210 | */ |
| 1203 | 1211 | public function get_next_attendance_calendar_id($attendance_id) |
@@ -1226,6 +1234,7 @@ discard block |
||
| 1226 | 1234 | /** |
| 1227 | 1235 | * Get next attendance calendar datetime without presences (done attendances) |
| 1228 | 1236 | * @param int attendance id |
| 1237 | + * @param integer $attendance_id |
|
| 1229 | 1238 | * @return int UNIX time format datetime |
| 1230 | 1239 | */ |
| 1231 | 1240 | public function get_next_attendance_calendar_datetime($attendance_id) |
@@ -1254,6 +1263,7 @@ discard block |
||
| 1254 | 1263 | * Get user' score from current attendance |
| 1255 | 1264 | * @param int $user_id |
| 1256 | 1265 | * @param int $attendance_id |
| 1266 | + * @param integer $groupId |
|
| 1257 | 1267 | * @return int score |
| 1258 | 1268 | */ |
| 1259 | 1269 | public function get_user_score($user_id, $attendance_id, $groupId = null) |
@@ -1301,6 +1311,7 @@ discard block |
||
| 1301 | 1311 | /** |
| 1302 | 1312 | * Get attendance calendar data by id |
| 1303 | 1313 | * @param int attendance calendar id |
| 1314 | + * @param integer $calendar_id |
|
| 1304 | 1315 | * @return array attendance calendar data |
| 1305 | 1316 | */ |
| 1306 | 1317 | public function get_attendance_calendar_by_id($calendar_id) |
@@ -1423,6 +1434,7 @@ discard block |
||
| 1423 | 1434 | * Get number of attendance calendar inside current attendance |
| 1424 | 1435 | * @param int $attendance_id |
| 1425 | 1436 | * @param int $groupId |
| 1437 | + * @param boolean $done_attendance |
|
| 1426 | 1438 | * @return int number of dates in attendance calendar |
| 1427 | 1439 | */ |
| 1428 | 1440 | public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0) |
@@ -1648,7 +1660,6 @@ discard block |
||
| 1648 | 1660 | /** |
| 1649 | 1661 | * @param int $calendarId |
| 1650 | 1662 | * @param int $courseId |
| 1651 | - * @param int $groupId |
|
| 1652 | 1663 | * @return array |
| 1653 | 1664 | */ |
| 1654 | 1665 | public function getGroupListByAttendanceCalendar($calendarId, $courseId) |
@@ -1688,7 +1699,6 @@ discard block |
||
| 1688 | 1699 | /** |
| 1689 | 1700 | * @param int $calendarId |
| 1690 | 1701 | * @param int $courseId |
| 1691 | - * @param int $groupId |
|
| 1692 | 1702 | * |
| 1693 | 1703 | * @return array |
| 1694 | 1704 | */ |
@@ -1789,6 +1799,8 @@ discard block |
||
| 1789 | 1799 | * edit a datetime inside attendance calendar table |
| 1790 | 1800 | * @param int attendance calendar id |
| 1791 | 1801 | * @param int attendance id |
| 1802 | + * @param integer $calendar_id |
|
| 1803 | + * @param integer $attendance_id |
|
| 1792 | 1804 | * @return int affected rows |
| 1793 | 1805 | */ |
| 1794 | 1806 | public function attendance_calendar_edit($calendar_id, $attendance_id) |
@@ -1828,6 +1840,8 @@ discard block |
||
| 1828 | 1840 | * @param int attendance calendar id |
| 1829 | 1841 | * @param int attendance id |
| 1830 | 1842 | * @param bool true for removing all calendar inside current attendance, false for removing by calendar id |
| 1843 | + * @param integer $calendar_id |
|
| 1844 | + * @param integer $attendance_id |
|
| 1831 | 1845 | * @return int affected rows |
| 1832 | 1846 | */ |
| 1833 | 1847 | public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false) |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * |
| 48 | - * @return StaticPlugin |
|
| 48 | + * @return BuyCoursesPlugin |
|
| 49 | 49 | */ |
| 50 | 50 | static function create() |
| 51 | 51 | {
|
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | /** |
| 269 | 269 | * Save a transfer account information |
| 270 | 270 | * @param array $params The transfer account |
| 271 | - * @return int Rows affected. Otherwise return false |
|
| 271 | + * @return false|string Rows affected. Otherwise return false |
|
| 272 | 272 | */ |
| 273 | 273 | public function saveTransferAccount($params) |
| 274 | 274 | {
|
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | /** |
| 681 | 681 | * Get session info |
| 682 | 682 | * @param array $sessionId The session ID |
| 683 | - * @return array |
|
| 683 | + * @return Session |
|
| 684 | 684 | */ |
| 685 | 685 | public function getSessionInfo($sessionId) |
| 686 | 686 | {
|
@@ -773,7 +773,7 @@ discard block |
||
| 773 | 773 | * Register a sale |
| 774 | 774 | * @param int $itemId The product ID |
| 775 | 775 | * @param int $paymentType The payment type |
| 776 | - * @return boolean |
|
| 776 | + * @return false|string |
|
| 777 | 777 | */ |
| 778 | 778 | public function registerSale($itemId, $paymentType) |
| 779 | 779 | {
|
@@ -955,7 +955,7 @@ discard block |
||
| 955 | 955 | |
| 956 | 956 | /** |
| 957 | 957 | * Get payment types |
| 958 | - * @return array |
|
| 958 | + * @return string[] |
|
| 959 | 959 | */ |
| 960 | 960 | public function getPaymentTypes() |
| 961 | 961 | {
|
@@ -994,7 +994,7 @@ discard block |
||
| 994 | 994 | |
| 995 | 995 | /** |
| 996 | 996 | * Get the statuses for sales |
| 997 | - * @return array |
|
| 997 | + * @return string[] |
|
| 998 | 998 | */ |
| 999 | 999 | public function getSaleStatuses() |
| 1000 | 1000 | {
|
@@ -1007,7 +1007,7 @@ discard block |
||
| 1007 | 1007 | |
| 1008 | 1008 | /** |
| 1009 | 1009 | * Get the statuses for Payouts |
| 1010 | - * @return array |
|
| 1010 | + * @return string[] |
|
| 1011 | 1011 | */ |
| 1012 | 1012 | public function getPayoutStatuses() |
| 1013 | 1013 | {
|
@@ -1020,7 +1020,7 @@ discard block |
||
| 1020 | 1020 | |
| 1021 | 1021 | /** |
| 1022 | 1022 | * Get the list of product types |
| 1023 | - * @return array |
|
| 1023 | + * @return string[] |
|
| 1024 | 1024 | */ |
| 1025 | 1025 | public function getProductTypes() |
| 1026 | 1026 | {
|
@@ -1401,7 +1401,7 @@ discard block |
||
| 1401 | 1401 | /** |
| 1402 | 1402 | * Register a item |
| 1403 | 1403 | * @param array $itemData The item data |
| 1404 | - * @return int The item ID. Otherwise return false |
|
| 1404 | + * @return false|string The item ID. Otherwise return false |
|
| 1405 | 1405 | */ |
| 1406 | 1406 | public function registerItem(array $itemData) |
| 1407 | 1407 | {
|
@@ -1559,7 +1559,7 @@ discard block |
||
| 1559 | 1559 | /** |
| 1560 | 1560 | * Verify if the beneficiary have a paypal account |
| 1561 | 1561 | * @param int $userId |
| 1562 | - * @return true if the user have a paypal account, false if not |
|
| 1562 | + * @return boolean if the user have a paypal account, false if not |
|
| 1563 | 1563 | */ |
| 1564 | 1564 | public function verifyPaypalAccountByBeneficiary($userId) |
| 1565 | 1565 | {
|
@@ -1681,7 +1681,7 @@ discard block |
||
| 1681 | 1681 | /** |
| 1682 | 1682 | * Register addicional service |
| 1683 | 1683 | * @param array params $service |
| 1684 | - * @return mixed response |
|
| 1684 | + * @return string|false response |
|
| 1685 | 1685 | */ |
| 1686 | 1686 | public function storeService($service) |
| 1687 | 1687 | {
|
@@ -1838,7 +1838,7 @@ discard block |
||
| 1838 | 1838 | |
| 1839 | 1839 | /** |
| 1840 | 1840 | * Get the statuses for sales |
| 1841 | - * @return array |
|
| 1841 | + * @return string[] |
|
| 1842 | 1842 | */ |
| 1843 | 1843 | public function getServiceSaleStatuses() |
| 1844 | 1844 | {
|
@@ -2094,7 +2094,7 @@ discard block |
||
| 2094 | 2094 | * @param int $paymentType The payment type |
| 2095 | 2095 | * @param int $infoSelect The ID for Service Type |
| 2096 | 2096 | * @param int $trial trial mode |
| 2097 | - * @return boolean |
|
| 2097 | + * @return false|string |
|
| 2098 | 2098 | */ |
| 2099 | 2099 | public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null) |
| 2100 | 2100 | {
|
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @param string $schemaAlias Example: admin, agenda, etc |
| 40 | - * @return object|\Sylius\Bundle\SettingsBundle\Model\SettingsInterface |
|
| 40 | + * @return \Sylius\Bundle\SettingsBundle\Model\SettingsInterface |
|
| 41 | 41 | */ |
| 42 | 42 | public function getSettings($schemaAlias) |
| 43 | 43 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @param string $parameter Example: admin.administrator_name |
| 49 | - * @return mixed |
|
| 49 | + * @return string |
|
| 50 | 50 | */ |
| 51 | 51 | public function getSettingsParameter($parameter) |
| 52 | 52 | { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @param string $namespace |
| 58 | 58 | * |
| 59 | - * @return array |
|
| 59 | + * @return \Sylius\Bundle\SettingsBundle\Model\SettingsInterface |
|
| 60 | 60 | */ |
| 61 | 61 | public function getSettings($namespace) |
| 62 | 62 | { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * @param $name |
| 68 | - * @return mixed |
|
| 68 | + * @return string |
|
| 69 | 69 | */ |
| 70 | 70 | public function getSettingsParameter($name) |
| 71 | 71 | { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | /** |
| 219 | 219 | * Displays the tools of a certain category. |
| 220 | 220 | * |
| 221 | - * @return void |
|
| 221 | + * @return string |
|
| 222 | 222 | * @param string $course_tool_category contains the category of tools to display: |
| 223 | 223 | * "Public", "PublicButHide", "courseAdmin", "claroAdmin" |
| 224 | 224 | */ |
@@ -1014,6 +1014,7 @@ discard block |
||
| 1014 | 1014 | * Shows the general data for a particular meeting |
| 1015 | 1015 | * |
| 1016 | 1016 | * @param id session id |
| 1017 | + * @param integer $id_session |
|
| 1017 | 1018 | * @return string session data |
| 1018 | 1019 | */ |
| 1019 | 1020 | public static function show_session_data($id_session) |
@@ -1517,7 +1518,7 @@ discard block |
||
| 1517 | 1518 | |
| 1518 | 1519 | /** |
| 1519 | 1520 | * Available tools |
| 1520 | - * @return array |
|
| 1521 | + * @return string[] |
|
| 1521 | 1522 | */ |
| 1522 | 1523 | public static function availableTools() |
| 1523 | 1524 | { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @return array |
|
| 37 | + * @return string[] |
|
| 38 | 38 | */ |
| 39 | 39 | public static function toolList() |
| 40 | 40 | { |
@@ -176,8 +176,7 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | 178 | * @param string $tool |
| 179 | - * @param array $editor_config |
|
| 180 | - * @return null |
|
| 179 | + * @return string|null |
|
| 181 | 180 | */ |
| 182 | 181 | public static function return_introduction_section($tool, $toolList = null) |
| 183 | 182 | { |
@@ -465,7 +464,6 @@ discard block |
||
| 465 | 464 | * 'page_nr' = The page to display |
| 466 | 465 | * 'hide_navigation' = true to hide the navigation |
| 467 | 466 | * @param array $query_vars Additional variables to add in the query-string |
| 468 | - * @param array $form actions Additional variables to add in the query-string |
|
| 469 | 467 | * @param mixed An array with bool values to know which columns show. |
| 470 | 468 | * i.e: $visibility_options= array(true, false) we will only show the first column |
| 471 | 469 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -506,7 +504,6 @@ discard block |
||
| 506 | 504 | * 'page_nr' = The page to display |
| 507 | 505 | * 'hide_navigation' = true to hide the navigation |
| 508 | 506 | * @param array $query_vars Additional variables to add in the query-string |
| 509 | - * @param array $form actions Additional variables to add in the query-string |
|
| 510 | 507 | * @param mixed An array with bool values to know which columns show. i.e: |
| 511 | 508 | * $visibility_options= array(true, false) we will only show the first column |
| 512 | 509 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -563,10 +560,11 @@ discard block |
||
| 563 | 560 | * 'per_page' = number of items to show per page |
| 564 | 561 | * 'page_nr' = The page to display |
| 565 | 562 | * @param array $query_vars Additional variables to add in the query-string |
| 566 | - * @param array $column_show Array of binaries 1= show columns 0. hide a column |
|
| 563 | + * @param integer[] $column_show Array of binaries 1= show columns 0. hide a column |
|
| 567 | 564 | * @param array $column_order An array of integers that let us decide how the columns are going to be sort. |
| 568 | 565 | * i.e: $column_order=array('1''4','3','4'); The 2nd column will be order like the 4th column |
| 569 | 566 | * @param array $form_actions Set optional forms actions |
| 567 | + * @param string $table_name |
|
| 570 | 568 | * |
| 571 | 569 | * @author Julio Montoya |
| 572 | 570 | */ |
@@ -621,7 +619,7 @@ discard block |
||
| 621 | 619 | * |
| 622 | 620 | * @deprecated use Display::addFlash with Display::return_message($message, 'normal'); |
| 623 | 621 | * |
| 624 | - * @return void |
|
| 622 | + * @return string|null |
|
| 625 | 623 | */ |
| 626 | 624 | public static function display_normal_message($message, $filter = true, $returnValue = false) |
| 627 | 625 | { |
@@ -653,7 +651,7 @@ discard block |
||
| 653 | 651 | * Displays an confirmation message. Use this if something has been done successfully |
| 654 | 652 | * @param bool Filter (true) or not (false) |
| 655 | 653 | * @deprecated use Display::addFlash with Display::return_message |
| 656 | - * @return void |
|
| 654 | + * @return string|null |
|
| 657 | 655 | */ |
| 658 | 656 | public static function display_confirmation_message ($message, $filter = true, $returnValue = false) |
| 659 | 657 | { |
@@ -672,7 +670,7 @@ discard block |
||
| 672 | 670 | * @param bool Filter (true) or not (false) |
| 673 | 671 | * @deprecated use Display::addFlash with Display::return_message |
| 674 | 672 | * |
| 675 | - * @return void |
|
| 673 | + * @return string|null |
|
| 676 | 674 | */ |
| 677 | 675 | public static function display_error_message ($message, $filter = true, $returnValue = false) |
| 678 | 676 | { |
@@ -853,6 +851,7 @@ discard block |
||
| 853 | 851 | * @param string The alt text (probably a language variable) |
| 854 | 852 | * @param array additional attributes (for instance height, width, onclick, ...) |
| 855 | 853 | * @param integer The wanted width of the icon (to be looked for in the corresponding img/icons/ folder) |
| 854 | + * @param string $image |
|
| 856 | 855 | * @return void |
| 857 | 856 | */ |
| 858 | 857 | public static function display_icon( |
@@ -1024,6 +1023,7 @@ discard block |
||
| 1024 | 1023 | /** |
| 1025 | 1024 | * Displays an HTML input tag |
| 1026 | 1025 | * |
| 1026 | + * @param string $type |
|
| 1027 | 1027 | */ |
| 1028 | 1028 | public static function input($type, $name, $value, $attributes = array()) |
| 1029 | 1029 | { |
@@ -1040,8 +1040,8 @@ discard block |
||
| 1040 | 1040 | } |
| 1041 | 1041 | |
| 1042 | 1042 | /** |
| 1043 | - * @param $name |
|
| 1044 | - * @param $value |
|
| 1043 | + * @param string $name |
|
| 1044 | + * @param string $value |
|
| 1045 | 1045 | * @param array $attributes |
| 1046 | 1046 | * @return string |
| 1047 | 1047 | */ |
@@ -1056,6 +1056,7 @@ discard block |
||
| 1056 | 1056 | /** |
| 1057 | 1057 | * Displays an HTML select tag |
| 1058 | 1058 | * |
| 1059 | + * @param string $blank_item_text |
|
| 1059 | 1060 | */ |
| 1060 | 1061 | public static function select( |
| 1061 | 1062 | $name, |
@@ -1122,8 +1123,8 @@ discard block |
||
| 1122 | 1123 | $( "#tabs" ).tabs(); |
| 1123 | 1124 | }); |
| 1124 | 1125 | </script> |
| 1125 | - * @param array $headers list of the tab titles |
|
| 1126 | - * @param array $items |
|
| 1126 | + * @param string[] $headers list of the tab titles |
|
| 1127 | + * @param string[] $items |
|
| 1127 | 1128 | * @param string $id id of the container of the tab in the example "tabs" |
| 1128 | 1129 | * @param array $attributes for the ul |
| 1129 | 1130 | * @param array $ul_attributes |
@@ -1177,7 +1178,7 @@ discard block |
||
| 1177 | 1178 | |
| 1178 | 1179 | /** |
| 1179 | 1180 | * @param $headers |
| 1180 | - * @param null $selected |
|
| 1181 | + * @param integer $selected |
|
| 1181 | 1182 | * |
| 1182 | 1183 | * @return string |
| 1183 | 1184 | */ |
@@ -1215,6 +1216,7 @@ discard block |
||
| 1215 | 1216 | * As you can see both function use the same "my_grid_name" this is very important otherwise nothing will work |
| 1216 | 1217 | * |
| 1217 | 1218 | * @param string the div id, this value must be the same with the first parameter of Display::grid_js() |
| 1219 | + * @param string $div_id |
|
| 1218 | 1220 | * @return string html |
| 1219 | 1221 | * |
| 1220 | 1222 | */ |
@@ -1775,6 +1777,8 @@ discard block |
||
| 1775 | 1777 | * @param string url that will be added (for jquery see hot_courses.tpl) |
| 1776 | 1778 | * @param string point info array see function CourseManager::get_course_ranking() |
| 1777 | 1779 | * @param bool add a div wrapper |
| 1780 | + * @param string $id |
|
| 1781 | + * @param string $url |
|
| 1778 | 1782 | * @todo use templates |
| 1779 | 1783 | **/ |
| 1780 | 1784 | public static function return_rating_system($id, $url, $point_info = array(), $add_div_wrapper = true) |
@@ -1865,6 +1869,9 @@ discard block |
||
| 1865 | 1869 | return '<'.$size.'>'.Security::remove_XSS($title).'</'.$size.'>'; |
| 1866 | 1870 | } |
| 1867 | 1871 | |
| 1872 | + /** |
|
| 1873 | + * @param string $title |
|
| 1874 | + */ |
|
| 1868 | 1875 | public static function page_subheader2($title, $second_title = null) |
| 1869 | 1876 | { |
| 1870 | 1877 | return self::page_header($title, $second_title, 'h4'); |
@@ -2097,6 +2104,7 @@ discard block |
||
| 2097 | 2104 | |
| 2098 | 2105 | /** |
| 2099 | 2106 | * @todo use twig |
| 2107 | + * @param string $title |
|
| 2100 | 2108 | */ |
| 2101 | 2109 | public static function group_button($title, $elements) |
| 2102 | 2110 | { |
@@ -2467,9 +2475,9 @@ discard block |
||
| 2467 | 2475 | |
| 2468 | 2476 | /** |
| 2469 | 2477 | * @param int $id |
| 2470 | - * @param array $content |
|
| 2478 | + * @param string[] $content |
|
| 2471 | 2479 | * @param int $col |
| 2472 | - * @param bool|true $right |
|
| 2480 | + * @param boolean $right |
|
| 2473 | 2481 | * @return string |
| 2474 | 2482 | */ |
| 2475 | 2483 | public static function toolbarAction($id, $content = array(), $col = 2, $right = true) |
@@ -2553,10 +2561,10 @@ discard block |
||
| 2553 | 2561 | /** |
| 2554 | 2562 | * @param string $title |
| 2555 | 2563 | * @param string $content |
| 2556 | - * @param null $id |
|
| 2564 | + * @param string $id |
|
| 2557 | 2565 | * @param array $params |
| 2558 | - * @param null $idAccordion |
|
| 2559 | - * @param null $idCollapse |
|
| 2566 | + * @param string $idAccordion |
|
| 2567 | + * @param string $idCollapse |
|
| 2560 | 2568 | * @param bool|true $open |
| 2561 | 2569 | * @param bool|false $fullClickable |
| 2562 | 2570 | * @return null|string |
@@ -34,6 +34,9 @@ discard block |
||
| 34 | 34 | $this->course_int_id = api_get_course_int_id(); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param integer $course_id |
|
| 39 | + */ |
|
| 37 | 40 | public function setCourseIntId($course_id) |
| 38 | 41 | { |
| 39 | 42 | $this->course_int_id = intval($course_id); |
@@ -248,6 +251,8 @@ discard block |
||
| 248 | 251 | /** |
| 249 | 252 | * get thematic list |
| 250 | 253 | * @param int Thematic id (optional), get list by id |
| 254 | + * @param string $course_code |
|
| 255 | + * @param integer $session_id |
|
| 251 | 256 | * @return array Thematic data |
| 252 | 257 | */ |
| 253 | 258 | public static function get_thematic_list( |
@@ -805,6 +810,7 @@ discard block |
||
| 805 | 810 | /** |
| 806 | 811 | * delete thematic advance |
| 807 | 812 | * @param int Thematic advance id |
| 813 | + * @param integer $thematic_advance_id |
|
| 808 | 814 | * @return int Affected rows |
| 809 | 815 | */ |
| 810 | 816 | public function thematic_advance_destroy($thematic_advance_id) |
@@ -1122,6 +1128,7 @@ discard block |
||
| 1122 | 1128 | /** |
| 1123 | 1129 | * update done thematic advances from thematic details interface |
| 1124 | 1130 | * @param int Thematic id |
| 1131 | + * @param integer $thematic_advance_id |
|
| 1125 | 1132 | * @return int Affected rows |
| 1126 | 1133 | */ |
| 1127 | 1134 | public function update_done_thematic_advances($thematic_advance_id) |
@@ -1349,6 +1356,7 @@ discard block |
||
| 1349 | 1356 | * Get average of advances by thematic |
| 1350 | 1357 | * @param int Thematic id |
| 1351 | 1358 | * @param string Course code (optional) |
| 1359 | + * @param string $course_code |
|
| 1352 | 1360 | * @return float Average of thematic advances |
| 1353 | 1361 | */ |
| 1354 | 1362 | public function get_average_of_advances_by_thematic($thematic_id, $course_code = null) |
@@ -1413,6 +1421,7 @@ discard block |
||
| 1413 | 1421 | * @param string Content |
| 1414 | 1422 | * @param string Date and time |
| 1415 | 1423 | * @param int Duration in hours |
| 1424 | + * @param integer $id |
|
| 1416 | 1425 | * @return void |
| 1417 | 1426 | */ |
| 1418 | 1427 | public function set_thematic_advance_attributes( |
@@ -1443,7 +1452,7 @@ discard block |
||
| 1443 | 1452 | |
| 1444 | 1453 | /** |
| 1445 | 1454 | * get thematic id |
| 1446 | - * @return void |
|
| 1455 | + * @return integer |
|
| 1447 | 1456 | */ |
| 1448 | 1457 | public function get_thematic_id() |
| 1449 | 1458 | { |
@@ -1452,7 +1461,7 @@ discard block |
||
| 1452 | 1461 | |
| 1453 | 1462 | /** |
| 1454 | 1463 | * Get thematic plan titles by default |
| 1455 | - * @return array |
|
| 1464 | + * @return string[] |
|
| 1456 | 1465 | */ |
| 1457 | 1466 | public function get_default_thematic_plan_title() |
| 1458 | 1467 | { |
@@ -1469,7 +1478,7 @@ discard block |
||
| 1469 | 1478 | |
| 1470 | 1479 | /** |
| 1471 | 1480 | * Get thematic plan icons by default |
| 1472 | - * @return array |
|
| 1481 | + * @return string[] |
|
| 1473 | 1482 | */ |
| 1474 | 1483 | public function get_default_thematic_plan_icon() |
| 1475 | 1484 | { |
@@ -1486,7 +1495,7 @@ discard block |
||
| 1486 | 1495 | |
| 1487 | 1496 | /** |
| 1488 | 1497 | * Get questions by default for help |
| 1489 | - * @return array |
|
| 1498 | + * @return string[] |
|
| 1490 | 1499 | */ |
| 1491 | 1500 | public function get_default_question() |
| 1492 | 1501 | { |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | } |
| 674 | 674 | |
| 675 | 675 | /** |
| 676 | - * @param $portal |
|
| 676 | + * @param AccessUrlRelUser $portal |
|
| 677 | 677 | */ |
| 678 | 678 | public function setPortal($portal) |
| 679 | 679 | { |
@@ -1033,7 +1033,7 @@ discard block |
||
| 1033 | 1033 | /** |
| 1034 | 1034 | * Get pictureUri |
| 1035 | 1035 | * |
| 1036 | - * @return Media |
|
| 1036 | + * @return string |
|
| 1037 | 1037 | */ |
| 1038 | 1038 | public function getPictureUri() |
| 1039 | 1039 | { |
@@ -2118,7 +2118,7 @@ discard block |
||
| 2118 | 2118 | } |
| 2119 | 2119 | |
| 2120 | 2120 | /** |
| 2121 | - * @return mixed |
|
| 2121 | + * @return string|null |
|
| 2122 | 2122 | */ |
| 2123 | 2123 | public function getPlainPassword() |
| 2124 | 2124 | { |
@@ -2130,7 +2130,7 @@ discard block |
||
| 2130 | 2130 | /** |
| 2131 | 2131 | * Returns the user roles |
| 2132 | 2132 | * |
| 2133 | - * @return array The roles |
|
| 2133 | + * @return string[] The roles |
|
| 2134 | 2134 | */ |
| 2135 | 2135 | public function getRoles() |
| 2136 | 2136 | { |
@@ -2455,7 +2455,7 @@ discard block |
||
| 2455 | 2455 | /** |
| 2456 | 2456 | * Check if the user has the skill |
| 2457 | 2457 | * @param Skill $skill The skill |
| 2458 | - * @return boolean |
|
| 2458 | + * @return boolean|null |
|
| 2459 | 2459 | */ |
| 2460 | 2460 | public function hasSkill(Skill $skill) |
| 2461 | 2461 | { |
@@ -1263,6 +1263,7 @@ discard block |
||
| 1263 | 1263 | * Gets the list of courses a specific user is subscribed to |
| 1264 | 1264 | * @param int User ID |
| 1265 | 1265 | * @param boolean $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED |
| 1266 | + * @param integer $userid |
|
| 1266 | 1267 | * @return array Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d) |
| 1267 | 1268 | */ |
| 1268 | 1269 | function api_get_user_courses($userid, $fetch_session = true) |
@@ -3024,7 +3025,7 @@ discard block |
||
| 3024 | 3025 | * on the session visibility |
| 3025 | 3026 | * @param bool $tutor Whether to check if the user has the tutor role |
| 3026 | 3027 | * @param bool $coach Whether to check if the user has the coach role |
| 3027 | -* @return boolean true: the user has the rights to edit, false: he does not |
|
| 3028 | +* @return boolean|null true: the user has the rights to edit, false: he does not |
|
| 3028 | 3029 | */ |
| 3029 | 3030 | function api_is_allowed_to_session_edit($tutor = false, $coach = false) |
| 3030 | 3031 | { |
@@ -4199,6 +4200,7 @@ discard block |
||
| 4199 | 4200 | /** |
| 4200 | 4201 | * Returns the id (the database id) of a language |
| 4201 | 4202 | * @param string language name (the corresponding name of the language-folder in the filesystem) |
| 4203 | + * @param string $language |
|
| 4202 | 4204 | * @return int id of the language |
| 4203 | 4205 | */ |
| 4204 | 4206 | function api_get_language_id($language) |
@@ -5207,6 +5209,7 @@ discard block |
||
| 5207 | 5209 | * @param string Whether we want a simple list (display a category) or |
| 5208 | 5210 | * a grouped list (group by variable as in settings.php default). Values: 'list' or 'group' |
| 5209 | 5211 | * @param int Access URL's ID. Optional. Uses 1 by default, which is the unique URL |
| 5212 | + * @param string $cat |
|
| 5210 | 5213 | * @return array Array of database results for the current settings of the current access URL |
| 5211 | 5214 | */ |
| 5212 | 5215 | function &api_get_settings($cat = null, $ordering = 'list', $access_url = 1, $url_changeable = 0) |
@@ -6285,7 +6288,7 @@ discard block |
||
| 6285 | 6288 | * |
| 6286 | 6289 | * Returns the <link> HTML tag |
| 6287 | 6290 | * |
| 6288 | - * @param $file |
|
| 6291 | + * @param string $file |
|
| 6289 | 6292 | * @param string $media |
| 6290 | 6293 | * @return string |
| 6291 | 6294 | */ |
@@ -6608,7 +6611,7 @@ discard block |
||
| 6608 | 6611 | /** |
| 6609 | 6612 | * Returns an array of global configuration settings which should be ignored |
| 6610 | 6613 | * when printing the configuration settings screens |
| 6611 | - * @return array Array of strings, each identifying one of the excluded settings |
|
| 6614 | + * @return string[] Array of strings, each identifying one of the excluded settings |
|
| 6612 | 6615 | */ |
| 6613 | 6616 | function api_get_locked_settings() { |
| 6614 | 6617 | return array( |
@@ -6649,6 +6652,7 @@ discard block |
||
| 6649 | 6652 | * false if he isn't. If the user ID is given and is an integer, then the same |
| 6650 | 6653 | * ID is simply returned |
| 6651 | 6654 | * @param integer User ID |
| 6655 | + * @param integer $user_id |
|
| 6652 | 6656 | * @return boolean Integer User ID is logged in, or false otherwise |
| 6653 | 6657 | */ |
| 6654 | 6658 | function api_user_is_login($user_id = null) { |
@@ -7069,6 +7073,7 @@ discard block |
||
| 7069 | 7073 | /** |
| 7070 | 7074 | * Gets memory limit in bytes |
| 7071 | 7075 | * @param string The memory size (128M, 1G, 1000K, etc) |
| 7076 | + * @param string $mem |
|
| 7072 | 7077 | * @return int |
| 7073 | 7078 | * @assert (null) === false |
| 7074 | 7079 | * @assert ('1t') === 1099511627776 |