@@ -679,7 +679,6 @@ discard block |
||
679 | 679 | * @param int $sessionId The session ID |
680 | 680 | * @param int $courseId The course ID |
681 | 681 | * @param int $exerciseId The quiz ID |
682 | - * @param int $answer Answer status (0 = incorrect, 1 = correct, 2 = both) |
|
683 | 682 | * @return string HTML array of results formatted for gridJS |
684 | 683 | * @author César Perales <[email protected]>, Beeznest Team |
685 | 684 | */ |
@@ -898,6 +897,7 @@ discard block |
||
898 | 897 | * @param int Number of items to select |
899 | 898 | * @param string Column to order on |
900 | 899 | * @param string Order direction |
900 | + * @param integer $number_of_items |
|
901 | 901 | * @return array Results |
902 | 902 | */ |
903 | 903 | public static function get_course_data_tracking_overview($from, $number_of_items, $column, $direction) |
@@ -1235,6 +1235,7 @@ discard block |
||
1235 | 1235 | * @param int Number of items to select |
1236 | 1236 | * @param string Column to order on |
1237 | 1237 | * @param string Order direction |
1238 | + * @param integer $number_of_items |
|
1238 | 1239 | * @return array Results |
1239 | 1240 | */ |
1240 | 1241 | public static function get_session_data_tracking_overview($from, $number_of_items, $column, $direction) |
@@ -1255,7 +1256,6 @@ discard block |
||
1255 | 1256 | /** |
1256 | 1257 | * Fills in session reporting data |
1257 | 1258 | * |
1258 | - * @param integer $user_id the id of the user |
|
1259 | 1259 | * @param array $url_params additonal url parameters |
1260 | 1260 | * @param array $row the row information (the other columns) |
1261 | 1261 | * @return string html code |
@@ -1888,6 +1888,7 @@ discard block |
||
1888 | 1888 | * @author Patrick Cool <[email protected]>, Ghent University, Belgium |
1889 | 1889 | * @version Dokeos 1.8.6 |
1890 | 1890 | * @since October 2008 |
1891 | + * @param integer $number_of_items |
|
1891 | 1892 | */ |
1892 | 1893 | public static function get_user_data_tracking_overview($from, $number_of_items, $column, $direction) |
1893 | 1894 | { |
@@ -1990,7 +1991,6 @@ discard block |
||
1990 | 1991 | /** |
1991 | 1992 | * Checks if there are repeted users in a given array |
1992 | 1993 | * @param array $usernames list of the usernames in the uploaded file |
1993 | - * @param array $user_array['username'] and $user_array['sufix'] where sufix is the number part in a login i.e -> jmontoya2 |
|
1994 | 1994 | * @return array with the $usernames array and the $user_array array |
1995 | 1995 | * @author Julio Montoya |
1996 | 1996 | */ |
@@ -2165,6 +2165,7 @@ discard block |
||
2165 | 2165 | |
2166 | 2166 | /** |
2167 | 2167 | * Adds missing user-information (which isn't required, like password, etc). |
2168 | + * @return integer |
|
2168 | 2169 | */ |
2169 | 2170 | function complete_missing_data($user) { |
2170 | 2171 | // 1. Generate a password if it is necessary. |
@@ -41,7 +41,7 @@ |
||
41 | 41 | * @param string $faultcode (SOAP-ENV:Client | SOAP-ENV:Server) |
42 | 42 | * @param string $faultactor only used when msg routed between multiple actors |
43 | 43 | * @param string $faultstring human readable error message |
44 | - * @param mixed $faultdetail detail, typically a string or array of string |
|
44 | + * @param string $faultdetail detail, typically a string or array of string |
|
45 | 45 | */ |
46 | 46 | public function __construct($faultcode,$faultactor='',$faultstring='',$faultdetail=''){ |
47 | 47 | parent::__construct(); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * @param string $encoding character encoding scheme of message |
53 | 53 | * @param string $method method for which XML is parsed (unused?) |
54 | 54 | * @param bool $decode_utf8 whether to decode UTF-8 to ISO-8859-1 |
55 | - * @return void|bool |
|
55 | + * @return false|null |
|
56 | 56 | * @access public |
57 | 57 | */ |
58 | 58 | function __construct($xml,$encoding='UTF-8',$method='',$decode_utf8=true) |
@@ -46,6 +46,8 @@ discard block |
||
46 | 46 | * @param string Absolute path to be checked (with trailing slash) |
47 | 47 | * @param string Checker path under which the path |
48 | 48 | * should be (absolute path, with trailing slash, get it from api_get_path(SYS_COURSE_PATH)) |
49 | + * @param string $abs_path |
|
50 | + * @param string $checker_path |
|
49 | 51 | * @return bool True if the path is under the checker, false otherwise |
50 | 52 | */ |
51 | 53 | public static function check_abs_path($abs_path, $checker_path) |
@@ -257,6 +259,7 @@ discard block |
||
257 | 259 | * @param string The variable to filter for XSS, this params can be a string or an array (example : array(x,y)) |
258 | 260 | * @param int The user status,constant allowed (STUDENT, COURSEMANAGER, ANONYMOUS, COURSEMANAGERLOWSECURITY) |
259 | 261 | * @param bool $filter_terms |
262 | + * @param integer $user_status |
|
260 | 263 | * @return mixed Filtered string or array |
261 | 264 | */ |
262 | 265 | public static function remove_XSS($var, $user_status = null, $filter_terms = false) |
@@ -393,7 +396,7 @@ discard block |
||
393 | 396 | * This method provides specific protection (against XSS and other kinds of attacks) for static images (icons) used by the system. |
394 | 397 | * Image paths are supposed to be given by programmers - people who know what they do, anyway, this method encourages |
395 | 398 | * a safe practice for generating icon paths, without using heavy solutions based on HTMLPurifier for example. |
396 | - * @param string $img_path The input path of the image, it could be relative or absolute URL. |
|
399 | + * @param string $image_path The input path of the image, it could be relative or absolute URL. |
|
397 | 400 | * @return string Returns sanitized image path or an empty string when the image path is not secure. |
398 | 401 | * @author Ivan Tcholakov, March 2011 |
399 | 402 | */ |
@@ -348,6 +348,7 @@ discard block |
||
348 | 348 | |
349 | 349 | /** |
350 | 350 | * Gets an element |
351 | + * @param integer $gradebook_id |
|
351 | 352 | */ |
352 | 353 | public function get_skill_info($skill_id, $gradebook_id) |
353 | 354 | { |
@@ -577,7 +578,7 @@ discard block |
||
577 | 578 | * Gets an element |
578 | 579 | * @param int $id |
579 | 580 | * |
580 | - * @return array|mixed |
|
581 | + * @return integer |
|
581 | 582 | */ |
582 | 583 | public function get($id) |
583 | 584 | { |
@@ -923,7 +924,7 @@ discard block |
||
923 | 924 | /** |
924 | 925 | * Get user's skills |
925 | 926 | * |
926 | - * @param int $userId User's id |
|
927 | + * @param integer $user_id User's id |
|
927 | 928 | * @param bool $get_skill_data |
928 | 929 | */ |
929 | 930 | public function get_user_skills($user_id, $get_skill_data = false) |
@@ -1133,7 +1134,7 @@ discard block |
||
1133 | 1134 | * @param int skill id |
1134 | 1135 | * @param bool return a flat array or not |
1135 | 1136 | * @param int depth of the skills |
1136 | - * @return json |
|
1137 | + * @return string |
|
1137 | 1138 | */ |
1138 | 1139 | public function get_skills_tree_json( |
1139 | 1140 | $user_id = null, |
@@ -41,6 +41,7 @@ discard block |
||
41 | 41 | * Get all files of lang folder (forum.inc.php,gradebook.inc.php,notebook.inc.php) |
42 | 42 | * @param string The lang path folder (/var/www/my_lms/main/lang/spanish) |
43 | 43 | * @param bool true if we only want the "subname" trad4all instead of trad4all.inc.php |
44 | + * @param string $path |
|
44 | 45 | * |
45 | 46 | * @return array All file of lang folder |
46 | 47 | */ |
@@ -91,6 +92,7 @@ discard block |
||
91 | 92 | /** |
92 | 93 | * Get all information of language |
93 | 94 | * @param Integer The parent id(Language father id) |
95 | + * @param integer $parent_id |
|
94 | 96 | * @return array All information about language |
95 | 97 | */ |
96 | 98 | public static function get_all_information_of_language($parent_id) |
@@ -109,6 +111,7 @@ discard block |
||
109 | 111 | /** |
110 | 112 | * Get all information of chamilo file |
111 | 113 | * @param string The chamilo path file (/var/www/chamilo/main/lang/spanish/gradebook.inc.php) |
114 | + * @param string $system_path_file |
|
112 | 115 | * @patam Bool Whether we want to remove the '$' prefix in the results or not |
113 | 116 | * @return array Contains all information of chamilo file |
114 | 117 | */ |
@@ -369,7 +372,7 @@ discard block |
||
369 | 372 | /** |
370 | 373 | * Make available the language |
371 | 374 | * @param int The language id |
372 | - * @return void |
|
375 | + * @return boolean |
|
373 | 376 | */ |
374 | 377 | public static function make_available_language($language_id) |
375 | 378 | { |
@@ -306,7 +306,7 @@ |
||
306 | 306 | * @param bool $add_to_calendar |
307 | 307 | * @param bool $sendEmailTest |
308 | 308 | * |
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, |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * Start a timer and hand it back to the JS by assigning the current time (of start) to |
11 | 11 | * var asset_timer |
12 | - * @return string JavaScript time intializer |
|
12 | + * @return integer JavaScript time intializer |
|
13 | 13 | */ |
14 | 14 | function start_timer() |
15 | 15 | { |
@@ -129,7 +129,7 @@ |
||
129 | 129 | * @param int $sessionId |
130 | 130 | * @param string $downloadCertificateLink |
131 | 131 | * @param string $badgeLink |
132 | - * @return mixed|string |
|
132 | + * @return string |
|
133 | 133 | */ |
134 | 134 | function generateLPFinalItemTemplate($lpItemId, $courseCode, $sessionId = 0, $downloadCertificateLink = '', $badgeLink = '') |
135 | 135 | { |