@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | * Set description |
507 | 507 | * |
508 | 508 | * @param string $description |
509 | - * @return Groups |
|
509 | + * @return Session |
|
510 | 510 | */ |
511 | 511 | public function setDescription($description) |
512 | 512 | { |
@@ -839,7 +839,7 @@ discard block |
||
839 | 839 | } |
840 | 840 | |
841 | 841 | /** |
842 | - * @return array |
|
842 | + * @return string[] |
|
843 | 843 | */ |
844 | 844 | public static function getStatusList() |
845 | 845 | { |
@@ -306,7 +306,7 @@ |
||
306 | 306 | * @param int Whether the announcement should be visible to anonymous users (1) or not (0) |
307 | 307 | * @param string The language for which the announvement should be shown. Leave null for all langages |
308 | 308 | * @param int Whether to send an e-mail to all users (1) or not (0) |
309 | - * @return mixed insert_id on success, false on failure |
|
309 | + * @return false|string insert_id on success, false on failure |
|
310 | 310 | */ |
311 | 311 | public static function add_announcement( |
312 | 312 | $title, |
@@ -1359,6 +1359,7 @@ discard block |
||
1359 | 1359 | * Gets the list of courses a specific user is subscribed to |
1360 | 1360 | * @param int User ID |
1361 | 1361 | * @param boolean $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED |
1362 | + * @param integer $userid |
|
1362 | 1363 | * @return array Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d) |
1363 | 1364 | */ |
1364 | 1365 | function api_get_user_courses($userid, $fetch_session = true) |
@@ -6733,7 +6734,7 @@ discard block |
||
6733 | 6734 | /** |
6734 | 6735 | * Returns an array of global configuration settings which should be ignored |
6735 | 6736 | * when printing the configuration settings screens |
6736 | - * @return array Array of strings, each identifying one of the excluded settings |
|
6737 | + * @return string[] Array of strings, each identifying one of the excluded settings |
|
6737 | 6738 | */ |
6738 | 6739 | function api_get_locked_settings() { |
6739 | 6740 | return array( |
@@ -6776,6 +6777,7 @@ discard block |
||
6776 | 6777 | * false if he isn't. If the user ID is given and is an integer, then the same |
6777 | 6778 | * ID is simply returned |
6778 | 6779 | * @param integer User ID |
6780 | + * @param integer $user_id |
|
6779 | 6781 | * @return boolean Integer User ID is logged in, or false otherwise |
6780 | 6782 | */ |
6781 | 6783 | function api_user_is_login($user_id = null) { |
@@ -7220,6 +7222,7 @@ discard block |
||
7220 | 7222 | /** |
7221 | 7223 | * Gets memory limit in bytes |
7222 | 7224 | * @param string The memory size (128M, 1G, 1000K, etc) |
7225 | + * @param string $mem |
|
7223 | 7226 | * @return int |
7224 | 7227 | * @assert (null) === false |
7225 | 7228 | * @assert ('1t') === 1099511627776 |
@@ -8131,7 +8134,7 @@ discard block |
||
8131 | 8134 | /** |
8132 | 8135 | * Like strip_tags(), but leaves an additional space and removes only the given tags |
8133 | 8136 | * @param string $string |
8134 | - * @param array $tags Tags to be removed |
|
8137 | + * @param string[] $tags Tags to be removed |
|
8135 | 8138 | * @return string The original string without the given tags |
8136 | 8139 | */ |
8137 | 8140 | function stripGivenTags($string, $tags) { |
@@ -14,6 +14,9 @@ discard block |
||
14 | 14 | class Session implements \ArrayAccess |
15 | 15 | { |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $variable |
|
19 | + */ |
|
17 | 20 | static function read($variable, $default = null) |
18 | 21 | { |
19 | 22 | return isset($_SESSION[$variable]) ? $_SESSION[$variable] : $default; |
@@ -39,7 +42,7 @@ discard block |
||
39 | 42 | * Returns true if session has variable set up, false otherwise. |
40 | 43 | * |
41 | 44 | * @param string $variable |
42 | - * @return mixed value |
|
45 | + * @return boolean value |
|
43 | 46 | */ |
44 | 47 | static function has($variable) |
45 | 48 | { |
@@ -949,7 +949,6 @@ |
||
949 | 949 | /** |
950 | 950 | * Processes an IMS/QTI manifest file: store links to new files to be able to transform them into questions text |
951 | 951 | * @param string $filePath The absolute filepath |
952 | - * @param array $links List of filepaths changes |
|
953 | 952 | * @return bool |
954 | 953 | */ |
955 | 954 | function qtiProcessManifest($filePath) |