@@ -496,7 +496,7 @@ |
||
496 | 496 | * @param int User id |
497 | 497 | * @param string plugin path |
498 | 498 | * @param integer $user_id |
499 | - * @return bool |
|
499 | + * @return false|string |
|
500 | 500 | */ |
501 | 501 | public static function close_user_block($user_id, $path) |
502 | 502 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * Returns the name without extension, used for the title |
54 | 54 | * |
55 | 55 | * @param string $name |
56 | - * @return name without the extension |
|
56 | + * @return string without the extension |
|
57 | 57 | */ |
58 | 58 | function get_document_title($name) |
59 | 59 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * This function checks if the upload succeeded |
68 | 68 | * |
69 | 69 | * @param array $uploaded_file ($_FILES) |
70 | - * @return true if upload succeeded |
|
70 | + * @return boolean if upload succeeded |
|
71 | 71 | */ |
72 | 72 | function process_uploaded_file($uploaded_file, $show_output = true) |
73 | 73 | { |
@@ -1227,7 +1227,7 @@ discard block |
||
1227 | 1227 | * @param int $session_id Session ID, if any |
1228 | 1228 | * @param int $userId creator id |
1229 | 1229 | * |
1230 | - * @return int id if inserted document |
|
1230 | + * @return string|false id if inserted document |
|
1231 | 1231 | */ |
1232 | 1232 | function add_document( |
1233 | 1233 | $_course, |
@@ -1368,7 +1368,7 @@ discard block |
||
1368 | 1368 | * |
1369 | 1369 | * @author Olivier Cauberghe <[email protected]> |
1370 | 1370 | * @param path+filename eg: /main/document/document.php |
1371 | - * @return The directory depth |
|
1371 | + * @return integer directory depth |
|
1372 | 1372 | */ |
1373 | 1373 | function get_levels($filename) |
1374 | 1374 | { |
@@ -1386,6 +1386,8 @@ discard block |
||
1386 | 1386 | * @author Olivier Cauberghe <[email protected]> |
1387 | 1387 | * @param path,filename |
1388 | 1388 | * action: Adds an entry to the document table with the default settings. |
1389 | + * @param string $upload_path |
|
1390 | + * @param string $filename |
|
1389 | 1391 | */ |
1390 | 1392 | function set_default_settings($upload_path, $filename, $filetype = 'file') |
1391 | 1393 | { |
@@ -1844,7 +1846,6 @@ discard block |
||
1844 | 1846 | * @param int $groupId group.id |
1845 | 1847 | * @param bool $output |
1846 | 1848 | * @param array $parent |
1847 | - * @param string $uploadPath |
|
1848 | 1849 | * |
1849 | 1850 | */ |
1850 | 1851 | function add_all_documents_in_folder_to_database( |
@@ -1067,7 +1067,7 @@ discard block |
||
1067 | 1067 | * @param int $groupId |
1068 | 1068 | * @param string $picture |
1069 | 1069 | * |
1070 | - * @return bool|string |
|
1070 | + * @return false|string |
|
1071 | 1071 | */ |
1072 | 1072 | public function manageFileUpload($groupId, $picture) |
1073 | 1073 | { |
@@ -1096,7 +1096,7 @@ discard block |
||
1096 | 1096 | * If an empty name is provided, then old user photos are deleted only, |
1097 | 1097 | * @see UserManager::delete_user_picture() as the prefered way for deletion. |
1098 | 1098 | * @param string $source_file The full system name of the image from which user photos will be created. |
1099 | - * @return mixed Returns the resulting common file name of created images which usually should be stored in database. |
|
1099 | + * @return false|string Returns the resulting common file name of created images which usually should be stored in database. |
|
1100 | 1100 | * When an image is removed the function returns an empty string. In case of internal error or negative validation it returns FALSE. |
1101 | 1101 | */ |
1102 | 1102 | public function update_group_picture($group_id, $file = null, $source_file = null) |
@@ -1209,7 +1209,7 @@ discard block |
||
1209 | 1209 | } |
1210 | 1210 | |
1211 | 1211 | /** |
1212 | - * @return mixed |
|
1212 | + * @return integer |
|
1213 | 1213 | */ |
1214 | 1214 | public function getGroupType() |
1215 | 1215 | { |
@@ -1408,6 +1408,8 @@ discard block |
||
1408 | 1408 | * @param string height |
1409 | 1409 | * @param string picture size it can be small_, medium_ or big_ |
1410 | 1410 | * @param string style css |
1411 | + * @param integer $height |
|
1412 | + * @param integer $size_picture |
|
1411 | 1413 | * @return array with the file and the style of an image i.e $array['file'] $array['style'] |
1412 | 1414 | */ |
1413 | 1415 | public function get_picture_group( |
@@ -1475,7 +1477,7 @@ discard block |
||
1475 | 1477 | * @param string Type of path to return (can be 'none', 'system', 'rel', 'web') |
1476 | 1478 | * @param bool Whether we want to have the directory name returned 'as if' there was a file or not (in the case we want to know which directory to create - otherwise no file means no split subdir) |
1477 | 1479 | * @param bool If we want that the function returns the /main/img/unknown.jpg image set it at true |
1478 | - * @return array Array of 2 elements: 'dir' and 'file' which contain the dir and file as the name implies if image does not exist it will return the unknow image if anonymous parameter is true if not it returns an empty er's |
|
1480 | + * @return integer Array of 2 elements: 'dir' and 'file' which contain the dir and file as the name implies if image does not exist it will return the unknow image if anonymous parameter is true if not it returns an empty er's |
|
1479 | 1481 | */ |
1480 | 1482 | public function get_group_picture_path_by_id($id, $type = 'none', $preview = false, $anonymous = false) |
1481 | 1483 | { |
@@ -1525,7 +1527,7 @@ discard block |
||
1525 | 1527 | } |
1526 | 1528 | |
1527 | 1529 | /** |
1528 | - * @return array |
|
1530 | + * @return string[] |
|
1529 | 1531 | */ |
1530 | 1532 | public function getAllowedPictureExtensions() |
1531 | 1533 | { |
@@ -1716,7 +1718,7 @@ discard block |
||
1716 | 1718 | * @author Julio Montoya |
1717 | 1719 | * @param int $user_id |
1718 | 1720 | * @param int $group_id |
1719 | - * @return boolean true if success |
|
1721 | + * @return Doctrine\DBAL\Driver\Statement true if success |
|
1720 | 1722 | * */ |
1721 | 1723 | public function delete_user_rel_group($user_id, $group_id) |
1722 | 1724 | { |
@@ -1927,6 +1929,8 @@ discard block |
||
1927 | 1929 | * @param int from value |
1928 | 1930 | * @param int limit |
1929 | 1931 | * @param array image configuration, i.e array('height'=>'20px', 'size'=> '20px') |
1932 | + * @param integer $from |
|
1933 | + * @param integer $limit |
|
1930 | 1934 | * @return array list of users in a group |
1931 | 1935 | */ |
1932 | 1936 | public function get_users_by_group( |
@@ -2025,6 +2029,8 @@ discard block |
||
2025 | 2029 | * Shows the left column of the group page |
2026 | 2030 | * @param int group id |
2027 | 2031 | * @param int user id |
2032 | + * @param integer $group_id |
|
2033 | + * @param integer $user_id |
|
2028 | 2034 | * @return string |
2029 | 2035 | */ |
2030 | 2036 | public function show_group_column_information($group_id, $user_id, $show = '') |
@@ -2353,7 +2359,7 @@ discard block |
||
2353 | 2359 | * @param int $group_id |
2354 | 2360 | * @param int $parent_group_id if 0, we delete the parent_group association |
2355 | 2361 | * @param int $relation_type |
2356 | - * @return resource |
|
2362 | + * @return Doctrine\DBAL\Driver\Statement |
|
2357 | 2363 | **/ |
2358 | 2364 | public static function set_parent_group($group_id, $parent_group_id, $relation_type = 1) |
2359 | 2365 | { |
@@ -2617,6 +2617,9 @@ |
||
2617 | 2617 | ) |
2618 | 2618 | ); |
2619 | 2619 | |
2620 | +/** |
|
2621 | + * @param string $type |
|
2622 | + */ |
|
2620 | 2623 | function WSHelperActionOnUsers($params, $type) |
2621 | 2624 | { |
2622 | 2625 | if (!WSHelperVerifyKey($params)) { |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | } |
362 | 362 | |
363 | 363 | /** |
364 | - * @return int |
|
364 | + * @return string |
|
365 | 365 | */ |
366 | 366 | public function selectPassPercentage() |
367 | 367 | { |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | * tells if questions are selected randomly, and if so returns the draws |
465 | 465 | * |
466 | 466 | * @author Olivier Brouckaert |
467 | - * @return integer - 0 if not random, otherwise the draws |
|
467 | + * @return boolean - 0 if not random, otherwise the draws |
|
468 | 468 | */ |
469 | 469 | public function isRandom() |
470 | 470 | { |
@@ -2853,9 +2853,9 @@ discard block |
||
2853 | 2853 | * @param int int lp item id |
2854 | 2854 | * @param int int lp item_view id |
2855 | 2855 | * @param array $questionList |
2856 | - * @param float $weight |
|
2856 | + * @param integer $weight |
|
2857 | 2857 | * |
2858 | - * @return int |
|
2858 | + * @return false|string |
|
2859 | 2859 | */ |
2860 | 2860 | public function save_stat_track_exercise_info( |
2861 | 2861 | $clock_expired_time = 0, |
@@ -5361,7 +5361,7 @@ discard block |
||
5361 | 5361 | * @param int $exe_id |
5362 | 5362 | * @param float $score |
5363 | 5363 | * @param float $weight |
5364 | - * @return bool |
|
5364 | + * @return false|null |
|
5365 | 5365 | */ |
5366 | 5366 | public function send_mail_notification_for_exam( |
5367 | 5367 | $type = 'end', |
@@ -5536,6 +5536,7 @@ discard block |
||
5536 | 5536 | * @param array $question_list_answers |
5537 | 5537 | * @param string $origin |
5538 | 5538 | * @param int $exe_id |
5539 | + * @param string $url_email |
|
5539 | 5540 | * @return null |
5540 | 5541 | */ |
5541 | 5542 | private function send_notification_for_open_questions( |
@@ -5626,6 +5627,7 @@ discard block |
||
5626 | 5627 | * @param array $question_list_answers |
5627 | 5628 | * @param string $origin |
5628 | 5629 | * @param int $exe_id |
5630 | + * @param string $url_email |
|
5629 | 5631 | * @return null |
5630 | 5632 | */ |
5631 | 5633 | private function send_notification_for_oral_questions( |
@@ -5776,7 +5778,7 @@ discard block |
||
5776 | 5778 | * @param int Maximum number of attempts (0 if no limit) |
5777 | 5779 | * @param int Feedback type |
5778 | 5780 | * @todo this was function was added due the import exercise via CSV |
5779 | - * @return int New exercise ID |
|
5781 | + * @return string New exercise ID |
|
5780 | 5782 | */ |
5781 | 5783 | public function createExercise( |
5782 | 5784 | $title, |
@@ -493,7 +493,7 @@ |
||
493 | 493 | * in this version, a question can only have 1 category |
494 | 494 | * if category is 0, then question has no category then delete the category entry |
495 | 495 | * @param int $categoryId |
496 | - * @return bool |
|
496 | + * @return null|boolean |
|
497 | 497 | * |
498 | 498 | * @author Hubert Borderiou 12-10-2011 |
499 | 499 | */ |
@@ -828,7 +828,7 @@ discard block |
||
828 | 828 | /** |
829 | 829 | * Get status |
830 | 830 | * |
831 | - * @return boolean |
|
831 | + * @return integer |
|
832 | 832 | */ |
833 | 833 | public function getStatus() |
834 | 834 | { |
@@ -897,7 +897,7 @@ discard block |
||
897 | 897 | /** |
898 | 898 | * Get pictureUri |
899 | 899 | * |
900 | - * @return Media |
|
900 | + * @return string |
|
901 | 901 | */ |
902 | 902 | public function getPictureUri() |
903 | 903 | { |
@@ -1128,7 +1128,7 @@ discard block |
||
1128 | 1128 | /** |
1129 | 1129 | * Get active |
1130 | 1130 | * |
1131 | - * @return boolean |
|
1131 | + * @return integer |
|
1132 | 1132 | */ |
1133 | 1133 | public function getActive() |
1134 | 1134 | { |
@@ -1205,7 +1205,7 @@ discard block |
||
1205 | 1205 | } |
1206 | 1206 | |
1207 | 1207 | /** |
1208 | - * @return Media |
|
1208 | + * @return string |
|
1209 | 1209 | */ |
1210 | 1210 | public function getAvatar() |
1211 | 1211 | { |
@@ -1972,7 +1972,7 @@ discard block |
||
1972 | 1972 | /** |
1973 | 1973 | * Returns the user roles |
1974 | 1974 | * |
1975 | - * @return array The roles |
|
1975 | + * @return string[] The roles |
|
1976 | 1976 | */ |
1977 | 1977 | public function getRoles() |
1978 | 1978 | { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | /** |
137 | 137 | * Close connection |
138 | 138 | * |
139 | - * @return void |
|
139 | + * @return boolean |
|
140 | 140 | * @author Dmitry (dio) Levashov |
141 | 141 | **/ |
142 | 142 | public function umount() |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | * Close opened file |
499 | 499 | * |
500 | 500 | * @param resource $fp file pointer |
501 | - * @return bool |
|
501 | + * @return boolean|null |
|
502 | 502 | * @author Dmitry (dio) Levashov |
503 | 503 | **/ |
504 | 504 | protected function _fclose($fp, $path = '') |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | * |
517 | 517 | * @param string $path parent dir path |
518 | 518 | * @param string $name new directory name |
519 | - * @return string|bool |
|
519 | + * @return string|false |
|
520 | 520 | * @author Dmitry (dio) Levashov |
521 | 521 | **/ |
522 | 522 | protected function _mkdir($path, $name) |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | /** |
296 | 296 | * Save a transfer account information |
297 | 297 | * @param array $params The transfer account |
298 | - * @return int Rows affected. Otherwise return false |
|
298 | + * @return false|string Rows affected. Otherwise return false |
|
299 | 299 | */ |
300 | 300 | public function saveTransferAccount($params) |
301 | 301 | { |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | /** |
733 | 733 | * Get session info |
734 | 734 | * @param array $sessionId The session ID |
735 | - * @return array |
|
735 | + * @return Session |
|
736 | 736 | */ |
737 | 737 | public function getSessionInfo($sessionId) |
738 | 738 | { |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | * Register a sale |
826 | 826 | * @param int $itemId The product ID |
827 | 827 | * @param int $paymentType The payment type |
828 | - * @return boolean |
|
828 | + * @return false|string |
|
829 | 829 | */ |
830 | 830 | public function registerSale($itemId, $paymentType) |
831 | 831 | { |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | |
1006 | 1006 | /** |
1007 | 1007 | * Get payment types |
1008 | - * @return array |
|
1008 | + * @return string[] |
|
1009 | 1009 | */ |
1010 | 1010 | public function getPaymentTypes() |
1011 | 1011 | { |
@@ -1044,7 +1044,7 @@ discard block |
||
1044 | 1044 | |
1045 | 1045 | /** |
1046 | 1046 | * Get the statuses for sales |
1047 | - * @return array |
|
1047 | + * @return string[] |
|
1048 | 1048 | */ |
1049 | 1049 | public function getSaleStatuses() |
1050 | 1050 | { |
@@ -1057,7 +1057,7 @@ discard block |
||
1057 | 1057 | |
1058 | 1058 | /** |
1059 | 1059 | * Get the statuses for Payouts |
1060 | - * @return array |
|
1060 | + * @return string[] |
|
1061 | 1061 | */ |
1062 | 1062 | public function getPayoutStatuses() |
1063 | 1063 | { |
@@ -1070,7 +1070,7 @@ discard block |
||
1070 | 1070 | |
1071 | 1071 | /** |
1072 | 1072 | * Get the list of product types |
1073 | - * @return array |
|
1073 | + * @return string[] |
|
1074 | 1074 | */ |
1075 | 1075 | public function getProductTypes() |
1076 | 1076 | { |
@@ -1082,7 +1082,7 @@ discard block |
||
1082 | 1082 | |
1083 | 1083 | /** |
1084 | 1084 | * Get the list of service types |
1085 | - * @return array |
|
1085 | + * @return string[] |
|
1086 | 1086 | */ |
1087 | 1087 | public function getServiceTypes() |
1088 | 1088 | { |
@@ -1470,7 +1470,7 @@ discard block |
||
1470 | 1470 | /** |
1471 | 1471 | * Register a item |
1472 | 1472 | * @param array $itemData The item data |
1473 | - * @return int The item ID. Otherwise return false |
|
1473 | + * @return false|string The item ID. Otherwise return false |
|
1474 | 1474 | */ |
1475 | 1475 | public function registerItem(array $itemData) |
1476 | 1476 | { |
@@ -1625,7 +1625,7 @@ discard block |
||
1625 | 1625 | /** |
1626 | 1626 | * Verify if the beneficiary have a paypal account |
1627 | 1627 | * @param int $userId |
1628 | - * @return true if the user have a paypal account, false if not |
|
1628 | + * @return boolean if the user have a paypal account, false if not |
|
1629 | 1629 | */ |
1630 | 1630 | public function verifyPaypalAccountByBeneficiary($userId) |
1631 | 1631 | { |
@@ -1746,7 +1746,7 @@ discard block |
||
1746 | 1746 | * Register additional service |
1747 | 1747 | * @param array $service params |
1748 | 1748 | * |
1749 | - * @return mixed response |
|
1749 | + * @return false|string response |
|
1750 | 1750 | */ |
1751 | 1751 | public function storeService($service) |
1752 | 1752 | { |
@@ -1909,7 +1909,7 @@ discard block |
||
1909 | 1909 | |
1910 | 1910 | /** |
1911 | 1911 | * Get the statuses for sales |
1912 | - * @return array |
|
1912 | + * @return string[] |
|
1913 | 1913 | */ |
1914 | 1914 | public function getServiceSaleStatuses() |
1915 | 1915 | { |
@@ -2177,7 +2177,7 @@ discard block |
||
2177 | 2177 | * @param int $paymentType The payment type |
2178 | 2178 | * @param int $infoSelect The ID for Service Type |
2179 | 2179 | * @param int $trial trial mode |
2180 | - * @return boolean |
|
2180 | + * @return false|string |
|
2181 | 2181 | */ |
2182 | 2182 | public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null) |
2183 | 2183 | { |