@@ -1013,7 +1013,7 @@ discard block |
||
1013 | 1013 | * @param int $groupId |
1014 | 1014 | * @param string $picture |
1015 | 1015 | * |
1016 | - * @return bool|string |
|
1016 | + * @return false|string |
|
1017 | 1017 | */ |
1018 | 1018 | public function manageFileUpload($groupId, $picture) |
1019 | 1019 | { |
@@ -1155,7 +1155,7 @@ discard block |
||
1155 | 1155 | } |
1156 | 1156 | |
1157 | 1157 | /** |
1158 | - * @return mixed |
|
1158 | + * @return integer |
|
1159 | 1159 | */ |
1160 | 1160 | public function getGroupType() |
1161 | 1161 | { |
@@ -1359,6 +1359,8 @@ discard block |
||
1359 | 1359 | * @param string height |
1360 | 1360 | * @param string picture size it can be small_, medium_ or big_ |
1361 | 1361 | * @param string style css |
1362 | + * @param integer $height |
|
1363 | + * @param integer $size_picture |
|
1362 | 1364 | * @return array with the file and the style of an image i.e $array['file'] $array['style'] |
1363 | 1365 | */ |
1364 | 1366 | public function get_picture_group($id, $picture_file, $height, $size_picture = GROUP_IMAGE_SIZE_MEDIUM , $style = '') |
@@ -1420,7 +1422,7 @@ discard block |
||
1420 | 1422 | * @param string Type of path to return (can be 'none', 'system', 'rel', 'web') |
1421 | 1423 | * @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) |
1422 | 1424 | * @param bool If we want that the function returns the /main/img/unknown.jpg image set it at true |
1423 | - * @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 |
|
1425 | + * @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 |
|
1424 | 1426 | */ |
1425 | 1427 | public function get_group_picture_path_by_id($id, $type = 'none', $preview = false, $anonymous = false) |
1426 | 1428 | { |
@@ -1470,7 +1472,7 @@ discard block |
||
1470 | 1472 | } |
1471 | 1473 | |
1472 | 1474 | /** |
1473 | - * @return array |
|
1475 | + * @return string[] |
|
1474 | 1476 | */ |
1475 | 1477 | public function getAllowedPictureExtensions() |
1476 | 1478 | { |
@@ -1660,7 +1662,7 @@ discard block |
||
1660 | 1662 | * @author Julio Montoya |
1661 | 1663 | * @param int $user_id |
1662 | 1664 | * @param int $group_id |
1663 | - * @return boolean true if success |
|
1665 | + * @return Doctrine\DBAL\Driver\Statement|null true if success |
|
1664 | 1666 | * */ |
1665 | 1667 | public function delete_user_rel_group($user_id, $group_id) |
1666 | 1668 | { |
@@ -1872,6 +1874,8 @@ discard block |
||
1872 | 1874 | * @param int from value |
1873 | 1875 | * @param int limit |
1874 | 1876 | * @param array image configuration, i.e array('height'=>'20px', 'size'=> '20px') |
1877 | + * @param integer $from |
|
1878 | + * @param integer $limit |
|
1875 | 1879 | * @return array list of users in a group |
1876 | 1880 | */ |
1877 | 1881 | public function get_users_by_group( |
@@ -1970,6 +1974,8 @@ discard block |
||
1970 | 1974 | * Shows the left column of the group page |
1971 | 1975 | * @param int group id |
1972 | 1976 | * @param int user id |
1977 | + * @param integer $group_id |
|
1978 | + * @param integer $user_id |
|
1973 | 1979 | * |
1974 | 1980 | */ |
1975 | 1981 | public function show_group_column_information($group_id, $user_id, $show = '') |
@@ -2323,7 +2329,7 @@ discard block |
||
2323 | 2329 | * @param int $group_id |
2324 | 2330 | * @param int $parent_group_id if 0, we delete the parent_group association |
2325 | 2331 | * @param int $relation_type |
2326 | - * @return resource |
|
2332 | + * @return Doctrine\DBAL\Driver\Statement|null |
|
2327 | 2333 | **/ |
2328 | 2334 | public static function set_parent_group($group_id, $parent_group_id, $relation_type = 1) |
2329 | 2335 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | - * @return bool|mixed |
|
89 | + * @return string |
|
90 | 90 | */ |
91 | 91 | public static function getPasswordEncryption() |
92 | 92 | { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * @param string $raw |
162 | 162 | * @param User $user |
163 | 163 | * |
164 | - * @return bool |
|
164 | + * @return string |
|
165 | 165 | */ |
166 | 166 | public static function encryptPassword($raw, User $user) |
167 | 167 | { |
@@ -965,6 +965,7 @@ discard block |
||
965 | 965 | * Disables or enables a user |
966 | 966 | * @param int user_id |
967 | 967 | * @param int Enable or disable |
968 | + * @param integer $active |
|
968 | 969 | * @return void |
969 | 970 | * @assert (-1,0) === false |
970 | 971 | * @assert (1,1) === true |
@@ -995,6 +996,7 @@ discard block |
||
995 | 996 | /** |
996 | 997 | * Disables a user |
997 | 998 | * @param int User id |
999 | + * @param integer $user_id |
|
998 | 1000 | * @return bool |
999 | 1001 | * @uses UserManager::change_active_state() to actually disable the user |
1000 | 1002 | * @assert (0) === false |
@@ -1011,6 +1013,7 @@ discard block |
||
1011 | 1013 | /** |
1012 | 1014 | * Enable a user |
1013 | 1015 | * @param int User id |
1016 | + * @param integer $user_id |
|
1014 | 1017 | * @return bool |
1015 | 1018 | * @uses UserManager::change_active_state() to actually disable the user |
1016 | 1019 | * @assert (0) === false |
@@ -1175,6 +1178,7 @@ discard block |
||
1175 | 1178 | * Checks whether the user id exists in the database |
1176 | 1179 | * |
1177 | 1180 | * @param int User id |
1181 | + * @param integer $userId |
|
1178 | 1182 | * @return bool True if user id was found, false otherwise |
1179 | 1183 | */ |
1180 | 1184 | public static function is_user_id_valid($userId) |
@@ -1357,7 +1361,7 @@ discard block |
||
1357 | 1361 | * @param array $userInfo user information to avoid query the DB |
1358 | 1362 | * returns the /main/img/unknown.jpg image set it at true |
1359 | 1363 | * |
1360 | - * @return array Array of 2 elements: 'dir' and 'file' which contain |
|
1364 | + * @return integer Array of 2 elements: 'dir' and 'file' which contain |
|
1361 | 1365 | * the dir and file as the name implies if image does not exist it will |
1362 | 1366 | * return the unknow image if anonymous parameter is true if not it returns an empty array |
1363 | 1367 | */ |
@@ -1729,7 +1733,7 @@ discard block |
||
1729 | 1733 | * @param int $user_id User id |
1730 | 1734 | * @param $force Optional parameter to force building after a removal request |
1731 | 1735 | * |
1732 | - * @return A string containing the XHTML code to dipslay the production list, or FALSE |
|
1736 | + * @return boolean|string string containing the XHTML code to dipslay the production list, or FALSE |
|
1733 | 1737 | */ |
1734 | 1738 | public static function build_production_list($user_id, $force = false, $showdelete = false) |
1735 | 1739 | { |
@@ -1765,7 +1769,7 @@ discard block |
||
1765 | 1769 | /** |
1766 | 1770 | * Returns an array with the user's productions. |
1767 | 1771 | * |
1768 | - * @param $user_id User id |
|
1772 | + * @param integer $user_id User id |
|
1769 | 1773 | * @return array An array containing the user's productions |
1770 | 1774 | */ |
1771 | 1775 | public static function get_user_productions($user_id) |
@@ -1920,7 +1924,7 @@ discard block |
||
1920 | 1924 | |
1921 | 1925 | /** |
1922 | 1926 | * Build a list of extra file already uploaded in $user_folder/{$extra_field}/ |
1923 | - * @param $user_id |
|
1927 | + * @param integer $user_id |
|
1924 | 1928 | * @param $extra_field |
1925 | 1929 | * @param bool $force |
1926 | 1930 | * @param bool $showdelete |
@@ -2023,7 +2027,7 @@ discard block |
||
2023 | 2027 | * @param int $fieldType Field's type |
2024 | 2028 | * @param string $displayText Field's language var name |
2025 | 2029 | * @param string $default Field's default value |
2026 | - * @return int |
|
2030 | + * @return boolean |
|
2027 | 2031 | */ |
2028 | 2032 | public static function create_extra_field($variable, $fieldType, $displayText, $default) |
2029 | 2033 | { |
@@ -2056,6 +2060,7 @@ discard block |
||
2056 | 2060 | * @param boolean Whether to prefix the fields indexes with "extra_" (might be used by formvalidator) |
2057 | 2061 | * @param boolean Whether to return invisible fields as well |
2058 | 2062 | * @param boolean Whether to split multiple-selection fields or not |
2063 | + * @param boolean $field_filter |
|
2059 | 2064 | * @return array Array of fields => value for the given user |
2060 | 2065 | */ |
2061 | 2066 | public static function get_extra_user_data( |
@@ -2242,7 +2247,6 @@ discard block |
||
2242 | 2247 | /** |
2243 | 2248 | * Get all the extra field information of a certain field (also the options) |
2244 | 2249 | * |
2245 | - * @param int $field_name the name of the field we want to know everything of |
|
2246 | 2250 | * @return array $return containing all th information about the extra profile field |
2247 | 2251 | * @author Julio Montoya |
2248 | 2252 | * @deprecated |
@@ -2285,6 +2289,7 @@ discard block |
||
2285 | 2289 | /** |
2286 | 2290 | * Get extra user data by field variable |
2287 | 2291 | * @param string field variable |
2292 | + * @param string $field_variable |
|
2288 | 2293 | * @return array data |
2289 | 2294 | */ |
2290 | 2295 | public static function get_extra_user_data_by_field_variable($field_variable) |
@@ -2829,7 +2834,7 @@ discard block |
||
2829 | 2834 | * @param string User ID |
2830 | 2835 | * @param string course directory |
2831 | 2836 | * @param string resourcetype: images, all |
2832 | - * @return int User ID (or false if not found) |
|
2837 | + * @return string User ID (or false if not found) |
|
2833 | 2838 | */ |
2834 | 2839 | public static function get_user_upload_files_by_course($user_id, $course, $resourcetype = 'all') |
2835 | 2840 | { |
@@ -2909,7 +2914,7 @@ discard block |
||
2909 | 2914 | /** |
2910 | 2915 | * Adds a new API key to the users' account |
2911 | 2916 | * @param int Optional user ID (defaults to the results of api_get_user_id()) |
2912 | - * @return boolean True on success, false on failure |
|
2917 | + * @return false|string True on success, false on failure |
|
2913 | 2918 | */ |
2914 | 2919 | public static function add_api_key($user_id = null, $api_service = 'dokeos') |
2915 | 2920 | { |
@@ -2964,6 +2969,7 @@ discard block |
||
2964 | 2969 | * Regenerate an API key from the user's account |
2965 | 2970 | * @param int user ID (defaults to the results of api_get_user_id()) |
2966 | 2971 | * @param string API key's internal ID |
2972 | + * @param string $api_service |
|
2967 | 2973 | * @return int num |
2968 | 2974 | */ |
2969 | 2975 | public static function update_api_key($user_id, $api_service) |
@@ -2993,6 +2999,7 @@ discard block |
||
2993 | 2999 | /** |
2994 | 3000 | * @param int user ID (defaults to the results of api_get_user_id()) |
2995 | 3001 | * @param string API key's internal ID |
3002 | + * @param string $api_service |
|
2996 | 3003 | * @return int row ID, or return false if not found |
2997 | 3004 | */ |
2998 | 3005 | public static function get_api_key_id($user_id, $api_service) |
@@ -3204,7 +3211,8 @@ discard block |
||
3204 | 3211 | * @param int user_id |
3205 | 3212 | * @param int field_id |
3206 | 3213 | * @param bool show links or not |
3207 | - * @return array |
|
3214 | + * @param integer $user_id |
|
3215 | + * @return string |
|
3208 | 3216 | */ |
3209 | 3217 | public static function get_user_tags_to_string($user_id, $field_id, $show_links = true) |
3210 | 3218 | { |
@@ -3249,6 +3257,8 @@ discard block |
||
3249 | 3257 | * Get the tag id |
3250 | 3258 | * @param int tag |
3251 | 3259 | * @param int field_id |
3260 | + * @param string $tag |
|
3261 | + * @param integer $field_id |
|
3252 | 3262 | * @return int returns 0 if fails otherwise the tag id |
3253 | 3263 | */ |
3254 | 3264 | public static function get_tag_id($tag, $field_id) |
@@ -3295,7 +3305,7 @@ discard block |
||
3295 | 3305 | * @param mixed tag |
3296 | 3306 | * @param int The user id |
3297 | 3307 | * @param int field id of the tag |
3298 | - * @return bool |
|
3308 | + * @return boolean|null |
|
3299 | 3309 | */ |
3300 | 3310 | public static function add_tag($tag, $user_id, $field_id) |
3301 | 3311 | { |
@@ -4101,7 +4111,7 @@ discard block |
||
4101 | 4111 | * Add subscribed users to a user by relation type |
4102 | 4112 | * @param int $userId The user id |
4103 | 4113 | * @param array $subscribedUsersId The id of suscribed users |
4104 | - * @param action $relationType The relation type |
|
4114 | + * @param integer $relationType The relation type |
|
4105 | 4115 | */ |
4106 | 4116 | public static function subscribeUsersToUser($userId, $subscribedUsersId, $relationType) |
4107 | 4117 | { |
@@ -4158,6 +4168,8 @@ discard block |
||
4158 | 4168 | * This function check if an user is followed by human resources manager |
4159 | 4169 | * @param int User id |
4160 | 4170 | * @param int Human resources manager |
4171 | + * @param integer $user_id |
|
4172 | + * @param integer $hr_dept_id |
|
4161 | 4173 | * @return bool |
4162 | 4174 | */ |
4163 | 4175 | public static function is_user_followed_by_drh($user_id, $hr_dept_id) |
@@ -4230,6 +4242,8 @@ discard block |
||
4230 | 4242 | * Determines if a user is a gradebook certified |
4231 | 4243 | * @param int The category id of gradebook |
4232 | 4244 | * @param int The user id |
4245 | + * @param integer $cat_id |
|
4246 | + * @param integer $user_id |
|
4233 | 4247 | * @return boolean |
4234 | 4248 | */ |
4235 | 4249 | public static function is_user_certified($cat_id, $user_id) |
@@ -4252,6 +4266,8 @@ discard block |
||
4252 | 4266 | * Gets the info about a gradebook certificate for a user by course |
4253 | 4267 | * @param string The course code |
4254 | 4268 | * @param int The user id |
4269 | + * @param integer $course_code |
|
4270 | + * @param integer $user_id |
|
4255 | 4271 | * @return array if there is not information return false |
4256 | 4272 | */ |
4257 | 4273 | public static function get_info_gradebook_certificate($course_code, $user_id) |
@@ -4715,7 +4731,7 @@ discard block |
||
4715 | 4731 | } |
4716 | 4732 | |
4717 | 4733 | /** |
4718 | - * @return array |
|
4734 | + * @return string[] |
|
4719 | 4735 | */ |
4720 | 4736 | static function get_user_field_types() |
4721 | 4737 | { |
@@ -4967,7 +4983,7 @@ discard block |
||
4967 | 4983 | * Get either a Gravatar URL or complete image tag for a specified email address. |
4968 | 4984 | * |
4969 | 4985 | * @param string $email The email address |
4970 | - * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
4986 | + * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
4971 | 4987 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
4972 | 4988 | * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] |
4973 | 4989 | * @param boole $img True to return a complete IMG tag False for just the URL |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * Create a video chat |
44 | 44 | * @param int $fromUser The sender user |
45 | 45 | * @param int $toUser The receiver user |
46 | - * @return int The created video chat id. Otherwise return false |
|
46 | + * @return false|string The created video chat id. Otherwise return false |
|
47 | 47 | */ |
48 | 48 | public static function createRoom($fromUser, $toUser) |
49 | 49 | { |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | * Returns the current request mode (XAJAX_GET or XAJAX_POST), or -1 if |
501 | 501 | * there is none. |
502 | 502 | * |
503 | - * @return mixed |
|
503 | + * @return integer |
|
504 | 504 | */ |
505 | 505 | function getRequestMode() |
506 | 506 | { |
@@ -1018,6 +1018,7 @@ discard block |
||
1018 | 1018 | * |
1019 | 1019 | * @param string the root tag of the XML |
1020 | 1020 | * @param string XML to convert |
1021 | + * @param string $rootTag |
|
1021 | 1022 | * @access private |
1022 | 1023 | * @return array |
1023 | 1024 | */ |
@@ -39,6 +39,7 @@ |
||
39 | 39 | * (used internally) |
40 | 40 | * |
41 | 41 | * @param string contains the Javascript code to compress |
42 | + * @param string $sJS |
|
42 | 43 | */ |
43 | 44 | function xajaxCompressJavascript($sJS) |
44 | 45 | { |
@@ -97,6 +97,7 @@ discard block |
||
97 | 97 | * @param string contains the character encoding string to use |
98 | 98 | * @param boolean lets you set if you want special characters in the output |
99 | 99 | * converted to HTML entities |
100 | + * @param string $sEncoding |
|
100 | 101 | * |
101 | 102 | */ |
102 | 103 | function xajaxResponse($sEncoding=XAJAX_DEFAULT_CHAR_ENCODING, $bOutputEntities=false) |
@@ -223,6 +224,8 @@ discard block |
||
223 | 224 | * @param string contains the id of an HTML element |
224 | 225 | * @param string the part of the element you wish to clear ("innerHTML", |
225 | 226 | * "value", etc.) |
227 | + * @param string $sTarget |
|
228 | + * @param string $sAttribute |
|
226 | 229 | */ |
227 | 230 | function addClear($sTarget,$sAttribute) |
228 | 231 | { |
@@ -279,6 +282,7 @@ discard block |
||
279 | 282 | * <i>Usage:</i> <kbd>$objResponse->addScript("var x = prompt('get some text');");</kbd> |
280 | 283 | * |
281 | 284 | * @param string contains Javascript code to be executed |
285 | + * @param string $sJS |
|
282 | 286 | */ |
283 | 287 | function addScript($sJS) |
284 | 288 | { |
@@ -290,8 +294,6 @@ discard block |
||
290 | 294 | * |
291 | 295 | * <i>Usage:</i> <kbd>$objResponse->addScriptCall("myJSFunction", "arg 1", "arg 2", 12345);</kbd> |
292 | 296 | * |
293 | - * @param string $sFunc the name of a Javascript function |
|
294 | - * @param mixed $args,... optional arguments to pass to the Javascript function |
|
295 | 297 | */ |
296 | 298 | function addScriptCall() { |
297 | 299 | $arguments = func_get_args(); |
@@ -121,6 +121,9 @@ |
||
121 | 121 | return $form->isSubmitted() == false || $form->validate(); |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param string $format |
|
126 | + */ |
|
124 | 127 | function get_ceiling($format = null) |
125 | 128 | { |
126 | 129 | $result = Request::get('ceiling'); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * This function return the value of a php.ini setting if not "" or if exists, |
98 | 98 | * otherwise return false |
99 | 99 | * @param string $phpSetting The name of a PHP setting |
100 | - * @return mixed The value of the setting, or false if not found |
|
100 | + * @return string|false The value of the setting, or false if not found |
|
101 | 101 | */ |
102 | 102 | function checkPhpSettingExists($phpSetting) |
103 | 103 | { |
@@ -1268,6 +1268,10 @@ discard block |
||
1268 | 1268 | * @param string Extra notice (to show on the right side) |
1269 | 1269 | * @param boolean Whether to display in update mode |
1270 | 1270 | * @param string Additional attribute for the <tr> element |
1271 | + * @param string $installType |
|
1272 | + * @param string $parameterName |
|
1273 | + * @param string $formFieldName |
|
1274 | + * @param string $extra_notice |
|
1271 | 1275 | * @return void Direct output |
1272 | 1276 | */ |
1273 | 1277 | function displayDatabaseParameter( |
@@ -1481,6 +1485,11 @@ discard block |
||
1481 | 1485 | |
1482 | 1486 | <?php |
1483 | 1487 | } |
1488 | +/** |
|
1489 | + * @param string $content |
|
1490 | + * @param string $title |
|
1491 | + * @param string $id |
|
1492 | + */ |
|
1484 | 1493 | function panel($content = null, $title = null, $id = null, $style = null) { |
1485 | 1494 | $html = ''; |
1486 | 1495 | if (empty($style)) { |
@@ -1837,8 +1846,8 @@ discard block |
||
1837 | 1846 | } |
1838 | 1847 | |
1839 | 1848 | /** |
1840 | - * @param $current_value |
|
1841 | - * @param $wanted_value |
|
1849 | + * @param string $current_value |
|
1850 | + * @param string $wanted_value |
|
1842 | 1851 | * @return string |
1843 | 1852 | */ |
1844 | 1853 | function compare_setting_values($current_value, $wanted_value) |
@@ -1855,8 +1864,8 @@ discard block |
||
1855 | 1864 | } |
1856 | 1865 | |
1857 | 1866 | /** |
1858 | - * @param $course_dir |
|
1859 | - * @param $course_attempt_name |
|
1867 | + * @param string $course_dir |
|
1868 | + * @param string $course_attempt_name |
|
1860 | 1869 | * @param string $file |
1861 | 1870 | * @return bool |
1862 | 1871 | */ |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | /** |
217 | 217 | * Import the aicc object (as a result from the parse_config_files function) into the database structure |
218 | 218 | * @param string $course_code |
219 | - * @return bool Returns -1 on error |
|
219 | + * @return false|null Returns -1 on error |
|
220 | 220 | */ |
221 | 221 | public function import_aicc($course_code) |
222 | 222 | { |
@@ -780,7 +780,8 @@ discard block |
||
780 | 780 | * Static function to parse AICC ini files. |
781 | 781 | * Based on work by sinedeo at gmail dot com published on php.net (parse_ini_file()). |
782 | 782 | * @param string File path |
783 | - * @return array Structured array |
|
783 | + * @param string $f |
|
784 | + * @return string Structured array |
|
784 | 785 | */ |
785 | 786 | function parse_ini_file_quotes_safe($f) { |
786 | 787 | $null = ''; |
@@ -831,7 +832,7 @@ discard block |
||
831 | 832 | * Based on work by sinedeo at gmail dot com published on php.net (parse_ini_file()). |
832 | 833 | * @param string INI File string |
833 | 834 | * @param array List of names of sections that should be considered as containing only hard string data (no variables), provided in lower case |
834 | - * @return array Structured array |
|
835 | + * @return string Structured array |
|
835 | 836 | */ |
836 | 837 | function parse_ini_string_quotes_safe($s, $pure_strings = array()) { |
837 | 838 | $null = ''; |
@@ -894,6 +895,7 @@ discard block |
||
894 | 895 | * @param string CSV delimiter |
895 | 896 | * @param string CSV enclosure |
896 | 897 | * @param boolean Might one field name happen more than once on the same line? (then split by comma in the values) |
898 | + * @param string $f |
|
897 | 899 | * @return array Simple structured array |
898 | 900 | */ |
899 | 901 | function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false) { |