@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | * @param string $courseCode the course code |
814 | 814 | * @param int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible) |
815 | 815 | * |
816 | - * @return boolean true if added succesfully, false otherwise. |
|
816 | + * @return boolean|string true if added succesfully, false otherwise. |
|
817 | 817 | */ |
818 | 818 | public static function addUserVisibilityToCourseInCatalogue($userId, $courseCode, $visible = 1) |
819 | 819 | { |
@@ -1784,6 +1784,7 @@ discard block |
||
1784 | 1784 | * @param string Course code |
1785 | 1785 | * @param int Session ID |
1786 | 1786 | * @param bool $addGeneralCoach |
1787 | + * @param integer $session_id |
|
1787 | 1788 | * @return array List of users |
1788 | 1789 | */ |
1789 | 1790 | public static function get_coach_list_from_course_code($course_code, $session_id, $addGeneralCoach = true) |
@@ -2418,7 +2419,7 @@ discard block |
||
2418 | 2419 | |
2419 | 2420 | /** |
2420 | 2421 | * Creates a file called mysql_dump.sql in the course folder |
2421 | - * @param $course_code The code of the course |
|
2422 | + * @param string $course_code The code of the course |
|
2422 | 2423 | * @todo Implementation for single database |
2423 | 2424 | */ |
2424 | 2425 | public static function create_database_dump($course_code) |
@@ -3212,6 +3213,7 @@ discard block |
||
3212 | 3213 | * @param int $limit |
3213 | 3214 | * @param string $column |
3214 | 3215 | * @param string $direction |
3216 | + * @param integer $status |
|
3215 | 3217 | * @return array courses |
3216 | 3218 | */ |
3217 | 3219 | public static function get_courses_followed_by_drh( |
@@ -3806,6 +3808,7 @@ discard block |
||
3806 | 3808 | * class userportal-course-item. |
3807 | 3809 | * @param int User category id |
3808 | 3810 | * @param bool Whether to show the document quick-loader or not |
3811 | + * @param integer $user_category_id |
|
3809 | 3812 | * @return string |
3810 | 3813 | */ |
3811 | 3814 | public static function returnCoursesWithoutCategories($user_category_id, $load_dirs = false) |
@@ -4992,7 +4995,7 @@ discard block |
||
4992 | 4995 | /** |
4993 | 4996 | * Returns the SQL conditions to filter course only visible by the user in the catalogue |
4994 | 4997 | * |
4995 | - * @param $courseTableAlias Alias of the course table |
|
4998 | + * @param string $courseTableAlias Alias of the course table |
|
4996 | 4999 | * @return string SQL conditions |
4997 | 5000 | */ |
4998 | 5001 | public static function getCourseVisibilitySQLCondition($courseTableAlias) { |
@@ -6087,11 +6090,11 @@ discard block |
||
6087 | 6090 | |
6088 | 6091 | /** |
6089 | 6092 | * @param int $user_id |
6090 | - * @param $filter |
|
6093 | + * @param string $filter |
|
6091 | 6094 | * @param bool $load_dirs |
6092 | 6095 | * @param int $getCount |
6093 | 6096 | * @param int $start |
6094 | - * @param null $maxPerPage |
|
6097 | + * @param integer $maxPerPage |
|
6095 | 6098 | * @return null|string |
6096 | 6099 | */ |
6097 | 6100 | public static function displayCourses($user_id, $filter, $load_dirs, $getCount, $start = null, $maxPerPage = null) |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | /** |
127 | 127 | * Get variables and categories as in 1.11.x |
128 | - * @return array |
|
128 | + * @return string |
|
129 | 129 | */ |
130 | 130 | public function getVariablesAndCategories() |
131 | 131 | { |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | /** |
429 | 429 | * Rename old variable with variable used in Chamilo 2.0 |
430 | 430 | * @param string $variable |
431 | - * @return mixed |
|
431 | + * @return string |
|
432 | 432 | */ |
433 | 433 | public function renameVariable($variable) |
434 | 434 | { |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | * Replace old Chamilo 1.x category with 2.0 version |
465 | 465 | * @param string $variable |
466 | 466 | * @param string $defaultCategory |
467 | - * @return mixed |
|
467 | + * @return string |
|
468 | 468 | */ |
469 | 469 | public function fixCategory($variable, $defaultCategory) |
470 | 470 | { |
@@ -558,8 +558,8 @@ discard block |
||
558 | 558 | } |
559 | 559 | |
560 | 560 | /** |
561 | - * @param $name |
|
562 | - * @return mixed |
|
561 | + * @param string $name |
|
562 | + * @return string |
|
563 | 563 | * @throws \InvalidArgumentException |
564 | 564 | */ |
565 | 565 | public function getSetting($name) |
@@ -843,6 +843,9 @@ discard block |
||
843 | 843 | return $parameters; |
844 | 844 | } |
845 | 845 | |
846 | + /** |
|
847 | + * @param string $namespace |
|
848 | + */ |
|
846 | 849 | public function getParametersFromKeyword($namespace, $keyword = '') |
847 | 850 | { |
848 | 851 | $criteria = array('category' => $namespace); |
@@ -132,9 +132,9 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * Validates the password |
134 | 134 | * |
135 | - * @param $encoded |
|
136 | - * @param $raw |
|
137 | - * @param $salt |
|
135 | + * @param string $encoded |
|
136 | + * @param string $raw |
|
137 | + * @param string $salt |
|
138 | 138 | * @return bool |
139 | 139 | */ |
140 | 140 | public static function isPasswordValid($encoded, $raw, $salt) |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * @param string $raw |
150 | 150 | * @param User $user |
151 | 151 | * |
152 | - * @return bool |
|
152 | + * @return string |
|
153 | 153 | */ |
154 | 154 | public static function encryptPassword($raw, User $user) |
155 | 155 | { |
@@ -1096,6 +1096,7 @@ discard block |
||
1096 | 1096 | /** |
1097 | 1097 | * Disables a user |
1098 | 1098 | * @param int User id |
1099 | + * @param integer $user_id |
|
1099 | 1100 | * @return bool |
1100 | 1101 | * @uses UserManager::change_active_state() to actually disable the user |
1101 | 1102 | * @assert (0) === false |
@@ -1112,6 +1113,7 @@ discard block |
||
1112 | 1113 | /** |
1113 | 1114 | * Enable a user |
1114 | 1115 | * @param int User id |
1116 | + * @param integer $user_id |
|
1115 | 1117 | * @return bool |
1116 | 1118 | * @uses UserManager::change_active_state() to actually disable the user |
1117 | 1119 | * @assert (0) === false |
@@ -1278,6 +1280,7 @@ discard block |
||
1278 | 1280 | * Checks whether the user id exists in the database |
1279 | 1281 | * |
1280 | 1282 | * @param int User id |
1283 | + * @param integer $userId |
|
1281 | 1284 | * @return bool True if user id was found, false otherwise |
1282 | 1285 | */ |
1283 | 1286 | public static function is_user_id_valid($userId) |
@@ -1419,7 +1422,7 @@ discard block |
||
1419 | 1422 | /** |
1420 | 1423 | * Get a list of users of which the given conditions match with a LIKE '%cond%' |
1421 | 1424 | * @param array $conditions a list of condition (exemple : status=>STUDENT) |
1422 | - * @param array $order_by a list of fields on which sort |
|
1425 | + * @param string[] $order_by a list of fields on which sort |
|
1423 | 1426 | * @return array An array with all users of the platform. |
1424 | 1427 | * @todo optional course code parameter, optional sorting parameters... |
1425 | 1428 | * @todo security filter order_by |
@@ -1490,7 +1493,7 @@ discard block |
||
1490 | 1493 | * @param array $userInfo user information to avoid query the DB |
1491 | 1494 | * returns the /main/img/unknown.jpg image set it at true |
1492 | 1495 | * |
1493 | - * @return array Array of 2 elements: 'dir' and 'file' which contain |
|
1496 | + * @return integer Array of 2 elements: 'dir' and 'file' which contain |
|
1494 | 1497 | * the dir and file as the name implies if image does not exist it will |
1495 | 1498 | * return the unknow image if anonymous parameter is true if not it returns an empty array |
1496 | 1499 | */ |
@@ -1982,7 +1985,7 @@ discard block |
||
1982 | 1985 | /** |
1983 | 1986 | * Returns an array with the user's productions. |
1984 | 1987 | * |
1985 | - * @param $user_id User id |
|
1988 | + * @param integer $user_id User id |
|
1986 | 1989 | * @return array An array containing the user's productions |
1987 | 1990 | */ |
1988 | 1991 | public static function get_user_productions($user_id) |
@@ -2137,7 +2140,7 @@ discard block |
||
2137 | 2140 | |
2138 | 2141 | /** |
2139 | 2142 | * Build a list of extra file already uploaded in $user_folder/{$extra_field}/ |
2140 | - * @param $user_id |
|
2143 | + * @param integer $user_id |
|
2141 | 2144 | * @param $extra_field |
2142 | 2145 | * @param bool $force |
2143 | 2146 | * @param bool $showDelete |
@@ -2242,7 +2245,7 @@ discard block |
||
2242 | 2245 | * @param int $fieldType Field's type |
2243 | 2246 | * @param string $displayText Field's language var name |
2244 | 2247 | * @param string $default Field's default value |
2245 | - * @return int |
|
2248 | + * @return boolean |
|
2246 | 2249 | */ |
2247 | 2250 | public static function create_extra_field($variable, $fieldType, $displayText, $default) |
2248 | 2251 | { |
@@ -2276,6 +2279,7 @@ discard block |
||
2276 | 2279 | * @param boolean Whether to prefix the fields indexes with "extra_" (might be used by formvalidator) |
2277 | 2280 | * @param boolean Whether to return invisible fields as well |
2278 | 2281 | * @param boolean Whether to split multiple-selection fields or not |
2282 | + * @param boolean $field_filter |
|
2279 | 2283 | * @return array Array of fields => value for the given user |
2280 | 2284 | */ |
2281 | 2285 | public static function get_extra_user_data( |
@@ -2550,6 +2554,7 @@ discard block |
||
2550 | 2554 | /** |
2551 | 2555 | * Get extra user data by field variable |
2552 | 2556 | * @param string field variable |
2557 | + * @param string $field_variable |
|
2553 | 2558 | * @return array data |
2554 | 2559 | */ |
2555 | 2560 | public static function get_extra_user_data_by_field_variable($field_variable) |
@@ -3119,7 +3124,7 @@ discard block |
||
3119 | 3124 | * @param string $user_id User ID |
3120 | 3125 | * @param string $course course directory |
3121 | 3126 | * @param string $resourcetype resourcetype: images, all |
3122 | - * @return int User ID (or false if not found) |
|
3127 | + * @return string User ID (or false if not found) |
|
3123 | 3128 | */ |
3124 | 3129 | public static function get_user_upload_files_by_course($user_id, $course, $resourcetype = 'all') |
3125 | 3130 | { |
@@ -3203,7 +3208,7 @@ discard block |
||
3203 | 3208 | /** |
3204 | 3209 | * Adds a new API key to the users' account |
3205 | 3210 | * @param int Optional user ID (defaults to the results of api_get_user_id()) |
3206 | - * @return boolean True on success, false on failure |
|
3211 | + * @return false|string True on success, false on failure |
|
3207 | 3212 | */ |
3208 | 3213 | public static function add_api_key($user_id = null, $api_service = 'dokeos') |
3209 | 3214 | { |
@@ -3258,6 +3263,7 @@ discard block |
||
3258 | 3263 | * Regenerate an API key from the user's account |
3259 | 3264 | * @param int user ID (defaults to the results of api_get_user_id()) |
3260 | 3265 | * @param string API key's internal ID |
3266 | + * @param string $api_service |
|
3261 | 3267 | * @return int num |
3262 | 3268 | */ |
3263 | 3269 | public static function update_api_key($user_id, $api_service) |
@@ -3287,6 +3293,7 @@ discard block |
||
3287 | 3293 | /** |
3288 | 3294 | * @param int user ID (defaults to the results of api_get_user_id()) |
3289 | 3295 | * @param string API key's internal ID |
3296 | + * @param string $api_service |
|
3290 | 3297 | * @return int row ID, or return false if not found |
3291 | 3298 | */ |
3292 | 3299 | public static function get_api_key_id($user_id, $api_service) |
@@ -3502,7 +3509,7 @@ discard block |
||
3502 | 3509 | * @param int $field_id |
3503 | 3510 | * @param bool $show_links show links or not |
3504 | 3511 | * |
3505 | - * @return array |
|
3512 | + * @return string |
|
3506 | 3513 | */ |
3507 | 3514 | public static function get_user_tags_to_string($user_id, $field_id, $show_links = true) |
3508 | 3515 | { |
@@ -3599,7 +3606,7 @@ discard block |
||
3599 | 3606 | * @param mixed $tag |
3600 | 3607 | * @param int $user_id |
3601 | 3608 | * @param int $field_id field id of the tag |
3602 | - * @return bool |
|
3609 | + * @return boolean|null |
|
3603 | 3610 | */ |
3604 | 3611 | public static function add_tag($tag, $user_id, $field_id) |
3605 | 3612 | { |
@@ -5045,7 +5052,7 @@ discard block |
||
5045 | 5052 | } |
5046 | 5053 | |
5047 | 5054 | /** |
5048 | - * @return array |
|
5055 | + * @return string[] |
|
5049 | 5056 | */ |
5050 | 5057 | public static function get_user_field_types() |
5051 | 5058 | { |
@@ -5337,7 +5344,7 @@ discard block |
||
5337 | 5344 | |
5338 | 5345 | /** |
5339 | 5346 | * Get the boss user ID from a followed user id |
5340 | - * @param $userId |
|
5347 | + * @param integer $userId |
|
5341 | 5348 | * @return bool |
5342 | 5349 | */ |
5343 | 5350 | public static function getStudentBossList($userId) |
@@ -5389,7 +5396,7 @@ discard block |
||
5389 | 5396 | * Get either a Gravatar URL or complete image tag for a specified email address. |
5390 | 5397 | * |
5391 | 5398 | * @param string $email The email address |
5392 | - * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5399 | + * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5393 | 5400 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
5394 | 5401 | * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] |
5395 | 5402 | * @param boole $img True to return a complete IMG tag False for just the URL |
@@ -5755,9 +5762,9 @@ discard block |
||
5755 | 5762 | * @param bool $get_count |
5756 | 5763 | * @param bool $reverse_order |
5757 | 5764 | * @param int $start |
5758 | - * @param null $maxPerPage |
|
5765 | + * @param integer $maxPerPage |
|
5759 | 5766 | * @param null $categoryFilter |
5760 | - * @return array |
|
5767 | + * @return integer |
|
5761 | 5768 | */ |
5762 | 5769 | public static function getCategories( |
5763 | 5770 | $user_id, |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * This function is used with $extraField->addElements() |
76 | 76 | * @param array $params array for the insertion into the *_field_values table |
77 | 77 | * @param bool $showQuery |
78 | - * @return mixed false on empty params, void otherwise |
|
78 | + * @return false|null false on empty params, void otherwise |
|
79 | 79 | * @assert (array()) === false |
80 | 80 | */ |
81 | 81 | public function saveFieldValues($params, $showQuery = false) |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | * @param int $item_id Item ID (It could be a session_id, course_id or user_id) |
532 | 532 | * @param int $field_id Field ID (the ID from the *_field table) |
533 | 533 | * @param bool $transform Whether to transform the result to a human readable strings |
534 | - * @return mixed A structured array with the field_id and field_value, or false on error |
|
534 | + * @return string A structured array with the field_id and field_value, or false on error |
|
535 | 535 | * @assert (-1,-1) === false |
536 | 536 | */ |
537 | 537 | public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false) |
@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | * @param int $item_id Item ID from the original table |
625 | 625 | * @param string $field_variable The name of the field we are looking for |
626 | 626 | * @param bool $transform |
627 | - * @param bool $allVisibility |
|
627 | + * @param bool $visibility |
|
628 | 628 | * |
629 | 629 | * @return mixed Array of results, or false on error or not found |
630 | 630 | * @assert (-1,'') === false |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | * @param string $field_value Data we are looking for in the given field |
687 | 687 | * @param bool $transform Whether to transform the result to a human readable strings |
688 | 688 | * @param bool $last Whether to return the last element or simply the first one we get |
689 | - * @return mixed Give the ID if found, or false on failure or not found |
|
689 | + * @return string|null Give the ID if found, or false on failure or not found |
|
690 | 690 | * @assert (-1,-1) === false |
691 | 691 | */ |
692 | 692 | public function get_item_id_from_field_variable_and_field_value( |
@@ -1222,6 +1222,7 @@ discard block |
||
1222 | 1222 | * Gets the list of courses a specific user is subscribed to |
1223 | 1223 | * @param int User ID |
1224 | 1224 | * @param boolean $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED |
1225 | + * @param integer $userid |
|
1225 | 1226 | * @return array Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d) |
1226 | 1227 | */ |
1227 | 1228 | function api_get_user_courses($userid, $fetch_session = true) |
@@ -2976,7 +2977,7 @@ discard block |
||
2976 | 2977 | * on the session visibility |
2977 | 2978 | * @param bool $tutor Whether to check if the user has the tutor role |
2978 | 2979 | * @param bool $coach Whether to check if the user has the coach role |
2979 | -* @return boolean true: the user has the rights to edit, false: he does not |
|
2980 | +* @return boolean|null true: the user has the rights to edit, false: he does not |
|
2980 | 2981 | */ |
2981 | 2982 | function api_is_allowed_to_session_edit($tutor = false, $coach = false) |
2982 | 2983 | { |
@@ -5153,6 +5154,7 @@ discard block |
||
5153 | 5154 | * @param string Whether we want a simple list (display a category) or |
5154 | 5155 | * a grouped list (group by variable as in settings.php default). Values: 'list' or 'group' |
5155 | 5156 | * @param int Access URL's ID. Optional. Uses 1 by default, which is the unique URL |
5157 | + * @param string $cat |
|
5156 | 5158 | * @return array Array of database results for the current settings of the current access URL |
5157 | 5159 | */ |
5158 | 5160 | function &api_get_settings($cat = null, $ordering = 'list', $access_url = 1, $url_changeable = 0) |
@@ -6206,7 +6208,7 @@ discard block |
||
6206 | 6208 | * |
6207 | 6209 | * Returns the <link> HTML tag |
6208 | 6210 | * |
6209 | - * @param $file |
|
6211 | + * @param string $file |
|
6210 | 6212 | * @param string $media |
6211 | 6213 | * @return string |
6212 | 6214 | */ |
@@ -6519,7 +6521,7 @@ discard block |
||
6519 | 6521 | /** |
6520 | 6522 | * Returns an array of global configuration settings which should be ignored |
6521 | 6523 | * when printing the configuration settings screens |
6522 | - * @return array Array of strings, each identifying one of the excluded settings |
|
6524 | + * @return string[] Array of strings, each identifying one of the excluded settings |
|
6523 | 6525 | */ |
6524 | 6526 | function api_get_locked_settings() { |
6525 | 6527 | return array( |
@@ -6560,6 +6562,7 @@ discard block |
||
6560 | 6562 | * false if he isn't. If the user ID is given and is an integer, then the same |
6561 | 6563 | * ID is simply returned |
6562 | 6564 | * @param integer User ID |
6565 | + * @param integer $user_id |
|
6563 | 6566 | * @return boolean Integer User ID is logged in, or false otherwise |
6564 | 6567 | */ |
6565 | 6568 | function api_user_is_login($user_id = null) { |
@@ -6980,6 +6983,7 @@ discard block |
||
6980 | 6983 | /** |
6981 | 6984 | * Gets memory limit in bytes |
6982 | 6985 | * @param string The memory size (128M, 1G, 1000K, etc) |
6986 | + * @param string $mem |
|
6983 | 6987 | * @return int |
6984 | 6988 | * @assert (null) === false |
6985 | 6989 | * @assert ('1t') === 1099511627776 |
@@ -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 | */ |
@@ -1000,6 +1000,7 @@ discard block |
||
1000 | 1000 | * Shows the general data for a particular meeting |
1001 | 1001 | * |
1002 | 1002 | * @param id session id |
1003 | + * @param integer $id_session |
|
1003 | 1004 | * @return string session data |
1004 | 1005 | */ |
1005 | 1006 | public static function show_session_data($id_session) |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * @param string |
279 | 279 | * @param string |
280 | - * @return true if the user is allowed to see the document, false otherwise |
|
280 | + * @return boolean if the user is allowed to see the document, false otherwise |
|
281 | 281 | * @author Sergio A Kessler, first version |
282 | 282 | * @author Roan Embrechts, bugfix |
283 | 283 | * @todo not only check if a file is visible, but also check if the user is allowed to see the file?? |
@@ -1558,7 +1558,7 @@ discard block |
||
1558 | 1558 | * Return true if the documentpath have visibility=1 as |
1559 | 1559 | * item_property (you should use the is_visible_by_id) |
1560 | 1560 | * |
1561 | - * @param string $document_path the relative complete path of the document |
|
1561 | + * @param string $doc_path the relative complete path of the document |
|
1562 | 1562 | * @param array $course the _course array info of the document's course |
1563 | 1563 | * @param int |
1564 | 1564 | * @param string |
@@ -1644,6 +1644,7 @@ discard block |
||
1644 | 1644 | * @param int |
1645 | 1645 | * @param int |
1646 | 1646 | * @param bool |
1647 | + * @param integer $user_id |
|
1647 | 1648 | * @return bool |
1648 | 1649 | */ |
1649 | 1650 | public static function is_visible_by_id( |
@@ -1995,7 +1996,7 @@ discard block |
||
1995 | 1996 | * Remove default certificate |
1996 | 1997 | * @param string $course_id The course code |
1997 | 1998 | * @param int $default_certificate_id The document id of the default certificate |
1998 | - * @return void |
|
1999 | + * @return false|null |
|
1999 | 2000 | */ |
2000 | 2001 | public static function remove_attach_certificate($course_id, $default_certificate_id) |
2001 | 2002 | { |
@@ -2128,6 +2129,7 @@ discard block |
||
2128 | 2129 | * @param bool is file or string html |
2129 | 2130 | * @param string type (one of the app tools) - optional (otherwise takes the current item's type) |
2130 | 2131 | * @param int level of recursivity we're in |
2132 | + * @param string $source_html |
|
2131 | 2133 | * @return array List of file paths. An additional field containing 'local' or 'remote' helps determine |
2132 | 2134 | * if the file should be copied into the zip or just linked |
2133 | 2135 | */ |
@@ -2970,6 +2972,7 @@ discard block |
||
2970 | 2972 | |
2971 | 2973 | /** |
2972 | 2974 | * Obtains the text inside the file with the right parser |
2975 | + * @param string $doc_path |
|
2973 | 2976 | */ |
2974 | 2977 | public static function get_text_content($doc_path, $doc_mime) |
2975 | 2978 | { |
@@ -3221,6 +3224,7 @@ discard block |
||
3221 | 3224 | * Shows a play icon next to the document title in the document list |
3222 | 3225 | * @param int |
3223 | 3226 | * @param string |
3227 | + * @param integer|null $i |
|
3224 | 3228 | * @return string html content |
3225 | 3229 | */ |
3226 | 3230 | public static function generate_media_preview($i, $type = 'simple') |
@@ -4122,7 +4126,7 @@ discard block |
||
4122 | 4126 | } |
4123 | 4127 | |
4124 | 4128 | /** |
4125 | - * @return array |
|
4129 | + * @return string[] |
|
4126 | 4130 | */ |
4127 | 4131 | public static function get_web_odf_extension_list() |
4128 | 4132 | { |
@@ -4131,10 +4135,10 @@ discard block |
||
4131 | 4135 | |
4132 | 4136 | /** |
4133 | 4137 | * Set of extension allowed to use Jodconverter |
4134 | - * @param $mode 'from' |
|
4138 | + * @param string $mode 'from' |
|
4135 | 4139 | * 'to' |
4136 | 4140 | * 'all' |
4137 | - * @param $format 'text' |
|
4141 | + * @param string $format 'text' |
|
4138 | 4142 | * 'spreadsheet' |
4139 | 4143 | * 'presentation' |
4140 | 4144 | * 'drawing' |
@@ -4338,7 +4342,7 @@ discard block |
||
4338 | 4342 | } |
4339 | 4343 | |
4340 | 4344 | /** |
4341 | - * @return array |
|
4345 | + * @return string[] |
|
4342 | 4346 | */ |
4343 | 4347 | public static function get_system_folders() |
4344 | 4348 | { |
@@ -4356,7 +4360,7 @@ discard block |
||
4356 | 4360 | } |
4357 | 4361 | |
4358 | 4362 | /** |
4359 | - * @return array |
|
4363 | + * @return string[] |
|
4360 | 4364 | */ |
4361 | 4365 | public static function getProtectedFolderFromStudent() |
4362 | 4366 | { |
@@ -4512,7 +4516,7 @@ discard block |
||
4512 | 4516 | * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg |
4513 | 4517 | * @param string $wavFile |
4514 | 4518 | * @param bool $removeWavFileIfSuccess |
4515 | - * @return bool |
|
4519 | + * @return string|false |
|
4516 | 4520 | */ |
4517 | 4521 | public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false) |
4518 | 4522 | { |
@@ -5088,6 +5092,8 @@ discard block |
||
5088 | 5092 | * @param string The current folder (path inside of the "document" directory, including the prefix "/") |
5089 | 5093 | * @param string Group directory, if empty, prevents documents to be uploaded (because group documents cannot be uploaded in root) |
5090 | 5094 | * @param boolean Whether to change the renderer (this will add a template <span> to the QuickForm object displaying the form) |
5095 | + * @param string $document_id |
|
5096 | + * @param FormValidator $form |
|
5091 | 5097 | |
5092 | 5098 | * @return string html form |
5093 | 5099 | */ |
@@ -5596,9 +5602,6 @@ discard block |
||
5596 | 5602 | /** |
5597 | 5603 | * Creates the row of edit icons for a file/folder |
5598 | 5604 | * |
5599 | - * @param string $curdirpath current path (cfr open folder) |
|
5600 | - * @param string $type (file/folder) |
|
5601 | - * @param string $path dbase path of file/folder |
|
5602 | 5605 | * @param int $visibility (1/0) |
5603 | 5606 | * @param int $id dbase id of the document |
5604 | 5607 | * @return string html img tags with hyperlinks |
@@ -5947,7 +5950,7 @@ discard block |
||
5947 | 5950 | /** |
5948 | 5951 | * Gets the path translated with title of docs and folders |
5949 | 5952 | * @param string $path the real path |
5950 | - * @return the path which should be displayed |
|
5953 | + * @return string path which should be displayed |
|
5951 | 5954 | */ |
5952 | 5955 | public static function get_titles_of_path($path) |
5953 | 5956 | { |
@@ -6003,7 +6006,8 @@ discard block |
||
6003 | 6006 | |
6004 | 6007 | /** |
6005 | 6008 | * Checks whether the user is in shared folder |
6006 | - * @return return bool Return true when user is into shared folder |
|
6009 | + * @param integer $current_session_id |
|
6010 | + * @return boolean bool Return true when user is into shared folder |
|
6007 | 6011 | */ |
6008 | 6012 | public static function is_shared_folder($curdirpath, $current_session_id) |
6009 | 6013 | { |
@@ -6019,7 +6023,7 @@ discard block |
||
6019 | 6023 | |
6020 | 6024 | /** |
6021 | 6025 | * Checks whether the user is into any user shared folder |
6022 | - * @return return bool Return true when user is in any user shared folder |
|
6026 | + * @return boolean bool Return true when user is in any user shared folder |
|
6023 | 6027 | */ |
6024 | 6028 | public static function is_any_user_shared_folder($path, $current_session_id) |
6025 | 6029 | { |
@@ -6233,7 +6237,7 @@ discard block |
||
6233 | 6237 | * @param int $id |
6234 | 6238 | * @param array $courseInfo |
6235 | 6239 | * @param int $sessionId |
6236 | - * @return bool |
|
6240 | + * @return boolean|null |
|
6237 | 6241 | */ |
6238 | 6242 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
6239 | 6243 | { |
@@ -6252,7 +6256,7 @@ discard block |
||
6252 | 6256 | * @param array $courseInfo |
6253 | 6257 | * @param int $sessionId |
6254 | 6258 | * |
6255 | - * @return bool |
|
6259 | + * @return false|null |
|
6256 | 6260 | */ |
6257 | 6261 | public static function downloadAllDeletedDocument($courseInfo, $sessionId) |
6258 | 6262 | { |
@@ -6291,7 +6295,7 @@ discard block |
||
6291 | 6295 | * @param array $courseInfo |
6292 | 6296 | * @param int $sessionId |
6293 | 6297 | * |
6294 | - * @return bool |
|
6298 | + * @return false|null |
|
6295 | 6299 | */ |
6296 | 6300 | public static function deleteDocumentsFromSession($courseInfo, $sessionId) |
6297 | 6301 | { |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | * Read and validate the quiz module XML |
404 | 404 | * |
405 | 405 | * @param resource $moduleXml XML file |
406 | - * @return mixed | array if is a valid xml file, false otherwise |
|
406 | + * @return string | array if is a valid xml file, false otherwise |
|
407 | 407 | */ |
408 | 408 | public function readQuizModule($moduleXml) |
409 | 409 | { |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | * Fix moodle files that contains spaces |
622 | 622 | * @param array $importedFiles |
623 | 623 | * @param string $text |
624 | - * @return mixed |
|
624 | + * @return string |
|
625 | 625 | */ |
626 | 626 | public function fixPathInText($importedFiles, &$text) |
627 | 627 | { |
@@ -642,10 +642,10 @@ discard block |
||
642 | 642 | * |
643 | 643 | * @param array $questionList |
644 | 644 | * @param string $questionType |
645 | - * @param object $questionInstance Question/Answer instance |
|
645 | + * @param Question $questionInstance Question/Answer instance |
|
646 | 646 | * @param array $currentQuestion |
647 | 647 | * @param array $importedFiles |
648 | - * @return integer db response |
|
648 | + * @return boolean|null db response |
|
649 | 649 | */ |
650 | 650 | public function processAnswers($questionList, $questionType, $questionInstance, $currentQuestion, $importedFiles) |
651 | 651 | { |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | /** |
801 | 801 | * Process Chamilo Unique Answer |
802 | 802 | * |
803 | - * @param object $objAnswer |
|
803 | + * @param Answer $objAnswer |
|
804 | 804 | * @param array $answerValues |
805 | 805 | * @param integer $position |
806 | 806 | * @param integer $questionWeighting |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | /** |
837 | 837 | * Process Chamilo True False |
838 | 838 | * |
839 | - * @param object $objAnswer |
|
839 | + * @param Answer $objAnswer |
|
840 | 840 | * @param array $answerValues |
841 | 841 | * @param integer $position |
842 | 842 | * @param integer $questionWeighting |
@@ -873,7 +873,7 @@ discard block |
||
873 | 873 | /** |
874 | 874 | * Process Chamilo FillBlanks |
875 | 875 | * |
876 | - * @param object $objAnswer |
|
876 | + * @param Answer $objAnswer |
|
877 | 877 | * @param array $questionType |
878 | 878 | * @param array $answerValues |
879 | 879 | * @param string $placeholder |
@@ -1026,7 +1026,7 @@ discard block |
||
1026 | 1026 | * Litle utility to delete the unuseful tags |
1027 | 1027 | * |
1028 | 1028 | * @param $array |
1029 | - * @param $keys |
|
1029 | + * @param string[] $keys |
|
1030 | 1030 | */ |
1031 | 1031 | public function traverseArray(&$array, $keys) |
1032 | 1032 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Install the plugin |
46 | - * @return void |
|
46 | + * @return boolean |
|
47 | 47 | */ |
48 | 48 | public function install() |
49 | 49 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | /** |
54 | 54 | * Uninstall the plugin |
55 | - * @return void |
|
55 | + * @return boolean |
|
56 | 56 | */ |
57 | 57 | public function uninstall() |
58 | 58 | { |