@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @return array |
|
36 | + * @return string[] |
|
37 | 37 | */ |
38 | 38 | public static function toolList() |
39 | 39 | { |
@@ -293,7 +293,6 @@ discard block |
||
293 | 293 | * 'page_nr' = The page to display |
294 | 294 | * 'hide_navigation' = true to hide the navigation |
295 | 295 | * @param array $query_vars Additional variables to add in the query-string |
296 | - * @param array $form actions Additional variables to add in the query-string |
|
297 | 296 | * @param mixed An array with bool values to know which columns show. |
298 | 297 | * i.e: $visibility_options= array(true, false) we will only show the first column |
299 | 298 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -334,7 +333,6 @@ discard block |
||
334 | 333 | * 'page_nr' = The page to display |
335 | 334 | * 'hide_navigation' = true to hide the navigation |
336 | 335 | * @param array $query_vars Additional variables to add in the query-string |
337 | - * @param array $form actions Additional variables to add in the query-string |
|
338 | 336 | * @param mixed An array with bool values to know which columns show. i.e: |
339 | 337 | * $visibility_options= array(true, false) we will only show the first column |
340 | 338 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -391,10 +389,11 @@ discard block |
||
391 | 389 | * 'per_page' = number of items to show per page |
392 | 390 | * 'page_nr' = The page to display |
393 | 391 | * @param array $query_vars Additional variables to add in the query-string |
394 | - * @param array $column_show Array of binaries 1= show columns 0. hide a column |
|
392 | + * @param integer[] $column_show Array of binaries 1= show columns 0. hide a column |
|
395 | 393 | * @param array $column_order An array of integers that let us decide how the columns are going to be sort. |
396 | 394 | * i.e: $column_order=array('1''4','3','4'); The 2nd column will be order like the 4th column |
397 | 395 | * @param array $form_actions Set optional forms actions |
396 | + * @param string $table_name |
|
398 | 397 | * |
399 | 398 | * @author Julio Montoya |
400 | 399 | */ |
@@ -449,7 +448,7 @@ discard block |
||
449 | 448 | * |
450 | 449 | * @deprecated use Display::addFlash with Display::return_message($message, 'normal'); |
451 | 450 | * |
452 | - * @return void |
|
451 | + * @return string|null |
|
453 | 452 | */ |
454 | 453 | public static function display_normal_message($message, $filter = true, $returnValue = false) |
455 | 454 | { |
@@ -481,7 +480,7 @@ discard block |
||
481 | 480 | * Displays an confirmation message. Use this if something has been done successfully |
482 | 481 | * @param bool Filter (true) or not (false) |
483 | 482 | * @deprecated use Display::addFlash with Display::return_message |
484 | - * @return void |
|
483 | + * @return string|null |
|
485 | 484 | */ |
486 | 485 | public static function display_confirmation_message ($message, $filter = true, $returnValue = false) |
487 | 486 | { |
@@ -500,7 +499,7 @@ discard block |
||
500 | 499 | * @param bool Filter (true) or not (false) |
501 | 500 | * @deprecated use Display::addFlash with Display::return_message |
502 | 501 | * |
503 | - * @return void |
|
502 | + * @return string|null |
|
504 | 503 | */ |
505 | 504 | public static function display_error_message ($message, $filter = true, $returnValue = false) |
506 | 505 | { |
@@ -681,6 +680,7 @@ discard block |
||
681 | 680 | * @param string The alt text (probably a language variable) |
682 | 681 | * @param array additional attributes (for instance height, width, onclick, ...) |
683 | 682 | * @param integer The wanted width of the icon (to be looked for in the corresponding img/icons/ folder) |
683 | + * @param string $image |
|
684 | 684 | * @return void |
685 | 685 | */ |
686 | 686 | public static function display_icon( |
@@ -917,6 +917,7 @@ discard block |
||
917 | 917 | /** |
918 | 918 | * Displays an HTML input tag |
919 | 919 | * |
920 | + * @param string $type |
|
920 | 921 | */ |
921 | 922 | public static function input($type, $name, $value, $attributes = array()) |
922 | 923 | { |
@@ -933,8 +934,8 @@ discard block |
||
933 | 934 | } |
934 | 935 | |
935 | 936 | /** |
936 | - * @param $name |
|
937 | - * @param $value |
|
937 | + * @param string $name |
|
938 | + * @param string $value |
|
938 | 939 | * @param array $attributes |
939 | 940 | * @return string |
940 | 941 | */ |
@@ -949,6 +950,7 @@ discard block |
||
949 | 950 | /** |
950 | 951 | * Displays an HTML select tag |
951 | 952 | * |
953 | + * @param string $blank_item_text |
|
952 | 954 | */ |
953 | 955 | public static function select( |
954 | 956 | $name, |
@@ -1015,8 +1017,8 @@ discard block |
||
1015 | 1017 | $( "#tabs" ).tabs(); |
1016 | 1018 | }); |
1017 | 1019 | </script> |
1018 | - * @param array $headers list of the tab titles |
|
1019 | - * @param array $items |
|
1020 | + * @param string[] $headers list of the tab titles |
|
1021 | + * @param string[] $items |
|
1020 | 1022 | * @param string $id id of the container of the tab in the example "tabs" |
1021 | 1023 | * @param array $attributes for the ul |
1022 | 1024 | * @param array $ul_attributes |
@@ -1070,7 +1072,7 @@ discard block |
||
1070 | 1072 | |
1071 | 1073 | /** |
1072 | 1074 | * @param $headers |
1073 | - * @param null $selected |
|
1075 | + * @param integer $selected |
|
1074 | 1076 | * |
1075 | 1077 | * @return string |
1076 | 1078 | */ |
@@ -1108,6 +1110,7 @@ discard block |
||
1108 | 1110 | * As you can see both function use the same "my_grid_name" this is very important otherwise nothing will work |
1109 | 1111 | * |
1110 | 1112 | * @param string the div id, this value must be the same with the first parameter of Display::grid_js() |
1113 | + * @param string $div_id |
|
1111 | 1114 | * @return string html |
1112 | 1115 | * |
1113 | 1116 | */ |
@@ -1668,6 +1671,8 @@ discard block |
||
1668 | 1671 | * @param string url that will be added (for jquery see hot_courses.tpl) |
1669 | 1672 | * @param string point info array see function CourseManager::get_course_ranking() |
1670 | 1673 | * @param bool add a div wrapper |
1674 | + * @param string $id |
|
1675 | + * @param string $url |
|
1671 | 1676 | * @todo use templates |
1672 | 1677 | **/ |
1673 | 1678 | public static function return_rating_system($id, $url, $point_info = array(), $add_div_wrapper = true) |
@@ -1758,6 +1763,9 @@ discard block |
||
1758 | 1763 | return '<'.$size.'>'.Security::remove_XSS($title).'</'.$size.'>'; |
1759 | 1764 | } |
1760 | 1765 | |
1766 | + /** |
|
1767 | + * @param string $title |
|
1768 | + */ |
|
1761 | 1769 | public static function page_subheader2($title, $second_title = null) |
1762 | 1770 | { |
1763 | 1771 | return self::page_header($title, $second_title, 'h4'); |
@@ -2005,6 +2013,7 @@ discard block |
||
2005 | 2013 | |
2006 | 2014 | /** |
2007 | 2015 | * @todo use twig |
2016 | + * @param string $title |
|
2008 | 2017 | */ |
2009 | 2018 | public static function groupButtonWithDropDown($title, $elements) |
2010 | 2019 | { |
@@ -2378,9 +2387,9 @@ discard block |
||
2378 | 2387 | |
2379 | 2388 | /** |
2380 | 2389 | * @param int $id |
2381 | - * @param array $content |
|
2390 | + * @param string[] $content |
|
2382 | 2391 | * @param int $col |
2383 | - * @param bool|true $right |
|
2392 | + * @param boolean $right |
|
2384 | 2393 | * @return string |
2385 | 2394 | */ |
2386 | 2395 | public static function toolbarAction($id, $content = array(), $col = 2, $right = true) |
@@ -2464,10 +2473,10 @@ discard block |
||
2464 | 2473 | /** |
2465 | 2474 | * @param string $title |
2466 | 2475 | * @param string $content |
2467 | - * @param null $id |
|
2476 | + * @param string $id |
|
2468 | 2477 | * @param array $params |
2469 | - * @param null $idAccordion |
|
2470 | - * @param null $idCollapse |
|
2478 | + * @param string $idAccordion |
|
2479 | + * @param string $idCollapse |
|
2471 | 2480 | * @param bool|true $open |
2472 | 2481 | * @param bool|false $fullClickable |
2473 | 2482 | * @return null|string |
@@ -120,6 +120,9 @@ discard block |
||
120 | 120 | return $this->created_at; |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @return string |
|
125 | + */ |
|
123 | 126 | public function get_weight() |
124 | 127 | { |
125 | 128 | return $this->weight; |
@@ -271,7 +274,7 @@ discard block |
||
271 | 274 | } |
272 | 275 | |
273 | 276 | /** |
274 | - * @param array $result |
|
277 | + * @param Doctrine\DBAL\Driver\Statement|null $result |
|
275 | 278 | * @return array |
276 | 279 | */ |
277 | 280 | private static function create_evaluation_objects_from_sql_result($result) |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * Formats a number depending of the number of decimals |
278 | 278 | * |
279 | 279 | * @param float $score |
280 | - * @return float the score formatted |
|
280 | + * @return boolean|string the score formatted |
|
281 | 281 | */ |
282 | 282 | public function format_score($score) |
283 | 283 | { |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | /** |
393 | 393 | * @param array $score |
394 | - * @return float|string |
|
394 | + * @return boolean|string |
|
395 | 395 | */ |
396 | 396 | private function display_simple_score($score) |
397 | 397 | { |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | /** |
405 | 405 | * Returns "1" for array("100", "100"); |
406 | 406 | * @param array $score |
407 | - * @return float |
|
407 | + * @return boolean|string |
|
408 | 408 | */ |
409 | 409 | private function display_as_decimal($score) |
410 | 410 | { |
@@ -1022,7 +1022,6 @@ |
||
1022 | 1022 | * Processes an IMS/QTI manifest file: store links to new files |
1023 | 1023 | * to be able to transform them into the questions text |
1024 | 1024 | * @param string $filePath The absolute filepath |
1025 | - * @param array $links List of filepaths changes |
|
1026 | 1025 | * @return bool |
1027 | 1026 | */ |
1028 | 1027 | function qtiProcessManifest($filePath) |
@@ -910,7 +910,7 @@ discard block |
||
910 | 910 | /** |
911 | 911 | * This function has been created for avoiding changes directly within QuickForm class. |
912 | 912 | * When we use it, the element is threated as 'required' to be dealt during validation. |
913 | - * @param array $element The array of elements |
|
913 | + * @param array $elements The array of elements |
|
914 | 914 | * @param string $message The message displayed |
915 | 915 | */ |
916 | 916 | public function add_multiple_required_rule($elements, $message) |
@@ -1186,12 +1186,12 @@ discard block |
||
1186 | 1186 | } |
1187 | 1187 | |
1188 | 1188 | /** |
1189 | - * @param $name |
|
1189 | + * @param string $name |
|
1190 | 1190 | * @param $label |
1191 | 1191 | * @param bool $required |
1192 | 1192 | * @param array $attributes |
1193 | 1193 | * @param bool $allowNegative |
1194 | - * @param null $minValue |
|
1194 | + * @param integer $minValue |
|
1195 | 1195 | * @param null $maxValue |
1196 | 1196 | */ |
1197 | 1197 | public function addFloat( |
@@ -65,6 +65,8 @@ discard block |
||
65 | 65 | * @param int user id |
66 | 66 | * @param int user friend id |
67 | 67 | * @param string |
68 | + * @param integer $user_id |
|
69 | + * @param integer $user_friend |
|
68 | 70 | * @author isaac flores paz |
69 | 71 | */ |
70 | 72 | public static function get_relation_between_contacts($user_id, $user_friend) |
@@ -96,6 +98,8 @@ discard block |
||
96 | 98 | * @param int group id |
97 | 99 | * @param string name to search |
98 | 100 | * @param bool true will load firstname, lastname, and image name |
101 | + * @param integer $user_id |
|
102 | + * @param integer $id_group |
|
99 | 103 | * @return array |
100 | 104 | * @author Julio Montoya <[email protected]> Cleaning code, function renamed, $load_extra_info option added |
101 | 105 | * @author isaac flores paz |
@@ -173,6 +177,9 @@ discard block |
||
173 | 177 | * @param int user friend id |
174 | 178 | * @param string title of the message |
175 | 179 | * @param string content of the message |
180 | + * @param integer $user_id |
|
181 | + * @param string $message_title |
|
182 | + * @param string $message_content |
|
176 | 183 | * @return boolean |
177 | 184 | * @author isaac flores paz |
178 | 185 | * @author Julio Montoya <[email protected]> Cleaning code |
@@ -247,6 +254,7 @@ discard block |
||
247 | 254 | * Get number messages of the inbox |
248 | 255 | * @author isaac flores paz |
249 | 256 | * @param int user receiver id |
257 | + * @param integer $user_receiver_id |
|
250 | 258 | * @return int |
251 | 259 | */ |
252 | 260 | public static function get_message_number_invitation_by_user_id($user_receiver_id) |
@@ -289,6 +297,7 @@ discard block |
||
289 | 297 | * Get invitation list sent by user |
290 | 298 | * @author Julio Montoya <[email protected]> |
291 | 299 | * @param int user id |
300 | + * @param integer $user_id |
|
292 | 301 | * @return array() |
293 | 302 | */ |
294 | 303 | public static function get_list_invitation_sent_by_user_id($user_id) |
@@ -331,6 +340,7 @@ discard block |
||
331 | 340 | * Denies invitation |
332 | 341 | * @param int user sender id |
333 | 342 | * @param int user receiver id |
343 | + * @param integer $user_receiver_id |
|
334 | 344 | * @author isaac flores paz |
335 | 345 | * @author Julio Montoya <[email protected]> Cleaning code |
336 | 346 | */ |
@@ -425,7 +435,7 @@ discard block |
||
425 | 435 | * @param string $subject |
426 | 436 | * @param string $content |
427 | 437 | * |
428 | - * @return string message invitation |
|
438 | + * @return false|null message invitation |
|
429 | 439 | */ |
430 | 440 | public static function sendInvitationToUser($userId, $subject = '', $content = '') |
431 | 441 | { |
@@ -1225,7 +1235,7 @@ discard block |
||
1225 | 1235 | * @param string $messageContent of the message |
1226 | 1236 | * @param int $messageId id parent |
1227 | 1237 | * @param string $messageStatus status type of message |
1228 | - * @return boolean |
|
1238 | + * @return false|string |
|
1229 | 1239 | * @author Yannick Warnier |
1230 | 1240 | */ |
1231 | 1241 | public static function sendWallMessage($userId, $friendId, $messageContent, $messageId = 0, $messageStatus = '') |
@@ -1317,7 +1327,7 @@ discard block |
||
1317 | 1327 | * Gets all messages from someone's wall (within specific limits) |
1318 | 1328 | * @param int $userId id of wall shown |
1319 | 1329 | * @param string $messageStatus status wall message |
1320 | - * @param int|string $parentId id message (Post main) |
|
1330 | + * @param integer|null $parentId id message (Post main) |
|
1321 | 1331 | * @param string $start Date from which we want to show the messages, in UTC time |
1322 | 1332 | * @param int $limit Limit for the number of parent messages we want to show |
1323 | 1333 | * @param int $offset Wall message query offset |
@@ -1602,7 +1612,7 @@ discard block |
||
1602 | 1612 | |
1603 | 1613 | /** |
1604 | 1614 | * verify if Url Exist - Using Curl |
1605 | - * @param $uri url |
|
1615 | + * @param string $uri url |
|
1606 | 1616 | * |
1607 | 1617 | * @return boolean |
1608 | 1618 | */ |
@@ -1628,7 +1638,7 @@ discard block |
||
1628 | 1638 | /** |
1629 | 1639 | * Delete messages delete logic |
1630 | 1640 | * @param int $id id message to delete. |
1631 | - * @return bool status query |
|
1641 | + * @return Statement|null status query |
|
1632 | 1642 | */ |
1633 | 1643 | public static function deleteMessage($id) |
1634 | 1644 | { |
@@ -748,7 +748,7 @@ discard block |
||
748 | 748 | * @param string $courseCode the course code |
749 | 749 | * @param int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible) |
750 | 750 | * |
751 | - * @return boolean true if added succesfully, false otherwise. |
|
751 | + * @return boolean|string true if added succesfully, false otherwise. |
|
752 | 752 | */ |
753 | 753 | public static function addUserVisibilityToCourseInCatalogue($userId, $courseCode, $visible = 1) |
754 | 754 | { |
@@ -2620,7 +2620,7 @@ discard block |
||
2620 | 2620 | * then the courses that the user is allowed or not to see in catalogue |
2621 | 2621 | * |
2622 | 2622 | * @param boolean $allowed Either if the courses have some users that are or are not allowed to see in catalogue |
2623 | - * @param boolean $byUserId if the courses are or are not allowed to see to the user |
|
2623 | + * @param integer $byUserId if the courses are or are not allowed to see to the user |
|
2624 | 2624 | * @return array Course codes allowed or not to see in catalogue by some user or the user |
2625 | 2625 | */ |
2626 | 2626 | public static function getCatalogueCourseList($allowed = true, $byUserId = -1) |
@@ -3164,6 +3164,7 @@ discard block |
||
3164 | 3164 | * @param int $limit |
3165 | 3165 | * @param string $column |
3166 | 3166 | * @param string $direction |
3167 | + * @param integer $status |
|
3167 | 3168 | * @return array courses |
3168 | 3169 | */ |
3169 | 3170 | public static function get_courses_followed_by_drh( |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | /** |
52 | 52 | * |
53 | - * @return StaticPlugin |
|
53 | + * @return BuyCoursesPlugin |
|
54 | 54 | */ |
55 | 55 | static function create() |
56 | 56 | { |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * Save a transfer account information |
280 | 280 | * @param array $params The transfer account |
281 | - * @return int Rows affected. Otherwise return false |
|
281 | + * @return false|string Rows affected. Otherwise return false |
|
282 | 282 | */ |
283 | 283 | public function saveTransferAccount($params) |
284 | 284 | { |
@@ -691,7 +691,7 @@ discard block |
||
691 | 691 | /** |
692 | 692 | * Get session info |
693 | 693 | * @param array $sessionId The session ID |
694 | - * @return array |
|
694 | + * @return Session |
|
695 | 695 | */ |
696 | 696 | public function getSessionInfo($sessionId) |
697 | 697 | { |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | * Register a sale |
785 | 785 | * @param int $itemId The product ID |
786 | 786 | * @param int $paymentType The payment type |
787 | - * @return boolean |
|
787 | + * @return false|string |
|
788 | 788 | */ |
789 | 789 | public function registerSale($itemId, $paymentType) |
790 | 790 | { |
@@ -966,7 +966,7 @@ discard block |
||
966 | 966 | |
967 | 967 | /** |
968 | 968 | * Get payment types |
969 | - * @return array |
|
969 | + * @return string[] |
|
970 | 970 | */ |
971 | 971 | public function getPaymentTypes() |
972 | 972 | { |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | |
1006 | 1006 | /** |
1007 | 1007 | * Get the statuses for sales |
1008 | - * @return array |
|
1008 | + * @return string[] |
|
1009 | 1009 | */ |
1010 | 1010 | public function getSaleStatuses() |
1011 | 1011 | { |
@@ -1018,7 +1018,7 @@ discard block |
||
1018 | 1018 | |
1019 | 1019 | /** |
1020 | 1020 | * Get the statuses for Payouts |
1021 | - * @return array |
|
1021 | + * @return string[] |
|
1022 | 1022 | */ |
1023 | 1023 | public function getPayoutStatuses() |
1024 | 1024 | { |
@@ -1031,7 +1031,7 @@ discard block |
||
1031 | 1031 | |
1032 | 1032 | /** |
1033 | 1033 | * Get the list of product types |
1034 | - * @return array |
|
1034 | + * @return string[] |
|
1035 | 1035 | */ |
1036 | 1036 | public function getProductTypes() |
1037 | 1037 | { |
@@ -1043,7 +1043,7 @@ discard block |
||
1043 | 1043 | |
1044 | 1044 | /** |
1045 | 1045 | * Get the list of service types |
1046 | - * @return array |
|
1046 | + * @return string[] |
|
1047 | 1047 | */ |
1048 | 1048 | public function getServiceTypes() |
1049 | 1049 | { |
@@ -1426,7 +1426,7 @@ discard block |
||
1426 | 1426 | /** |
1427 | 1427 | * Register a item |
1428 | 1428 | * @param array $itemData The item data |
1429 | - * @return int The item ID. Otherwise return false |
|
1429 | + * @return false|string The item ID. Otherwise return false |
|
1430 | 1430 | */ |
1431 | 1431 | public function registerItem(array $itemData) |
1432 | 1432 | { |
@@ -1584,7 +1584,7 @@ discard block |
||
1584 | 1584 | /** |
1585 | 1585 | * Verify if the beneficiary have a paypal account |
1586 | 1586 | * @param int $userId |
1587 | - * @return true if the user have a paypal account, false if not |
|
1587 | + * @return boolean if the user have a paypal account, false if not |
|
1588 | 1588 | */ |
1589 | 1589 | public function verifyPaypalAccountByBeneficiary($userId) |
1590 | 1590 | { |
@@ -1706,7 +1706,7 @@ discard block |
||
1706 | 1706 | /** |
1707 | 1707 | * Register addicional service |
1708 | 1708 | * @param array params $service |
1709 | - * @return mixed response |
|
1709 | + * @return false|string response |
|
1710 | 1710 | */ |
1711 | 1711 | public function storeService($service) |
1712 | 1712 | { |
@@ -1862,7 +1862,7 @@ discard block |
||
1862 | 1862 | |
1863 | 1863 | /** |
1864 | 1864 | * Get the statuses for sales |
1865 | - * @return array |
|
1865 | + * @return string[] |
|
1866 | 1866 | */ |
1867 | 1867 | public function getServiceSaleStatuses() |
1868 | 1868 | { |
@@ -2123,7 +2123,7 @@ discard block |
||
2123 | 2123 | * @param int $paymentType The payment type |
2124 | 2124 | * @param int $infoSelect The ID for Service Type |
2125 | 2125 | * @param int $trial trial mode |
2126 | - * @return boolean |
|
2126 | + * @return false|string |
|
2127 | 2127 | */ |
2128 | 2128 | public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null) |
2129 | 2129 | { |
@@ -681,7 +681,7 @@ discard block |
||
681 | 681 | * @param bool $addAnnouncement |
682 | 682 | * @param bool $updateContent |
683 | 683 | * |
684 | - * @return null|false |
|
684 | + * @return null|boolean |
|
685 | 685 | */ |
686 | 686 | public function editEvent( |
687 | 687 | $id, |
@@ -1382,6 +1382,7 @@ discard block |
||
1382 | 1382 | * Gets a single event |
1383 | 1383 | * |
1384 | 1384 | * @param int event id |
1385 | + * @param integer $id |
|
1385 | 1386 | * @return array |
1386 | 1387 | */ |
1387 | 1388 | public function get_event($id) |