@@ -260,7 +260,7 @@ |
||
260 | 260 | * Zend Engine 2 uses __construct |
261 | 261 | * |
262 | 262 | * @param string $elementName Dual Select name attribute |
263 | - * @param mixed $elementLabel Label(s) for the select boxes |
|
263 | + * @param string $elementLabel Label(s) for the select boxes |
|
264 | 264 | * @param mixed $options Data to be used to populate options |
265 | 265 | * @param mixed $attributes Either a typical HTML attribute string or |
266 | 266 | * an associative array |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @param string $prompt text prompt, should include possible options |
192 | 192 | * @param string $default default value when enter pressed |
193 | 193 | * @param array $options list of allowed options, empty means any text |
194 | - * @param bool $casesensitive true if options are case sensitive |
|
194 | + * @param bool $casesensitiveoptions true if options are case sensitive |
|
195 | 195 | * @return string entered text |
196 | 196 | */ |
197 | 197 | function cli_input($prompt, $default='', array $options=null, $casesensitiveoptions=false) { |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | /** |
289 | 289 | * Print or return section separator string |
290 | 290 | * @param bool $return false means print, true return as string |
291 | - * @return mixed void or string |
|
291 | + * @return string|null void or string |
|
292 | 292 | */ |
293 | 293 | function cli_separator($return=false) { |
294 | 294 | $separator = str_repeat('-', 79)."\n"; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * |
94 | 94 | * @param string $rank |
95 | 95 | * |
96 | - * @return Question |
|
96 | + * @return Category |
|
97 | 97 | */ |
98 | 98 | public function setRank($rank) |
99 | 99 | { |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | /** |
202 | 202 | * Get questions |
203 | 203 | * |
204 | - * @return \Doctrine\Common\Collections\Collection |
|
204 | + * @return Question[] |
|
205 | 205 | */ |
206 | 206 | public function getQuestions() |
207 | 207 | { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @Route("/contact") |
20 | 20 | * |
21 | 21 | * @param Request $request |
22 | - * @return mixed |
|
22 | + * @return Response |
|
23 | 23 | */ |
24 | 24 | public function indexAction(Request $request) |
25 | 25 | { |
@@ -116,7 +116,7 @@ |
||
116 | 116 | * @param int $sessionId |
117 | 117 | * @param string $downloadCertificateLink |
118 | 118 | * @param string $badgeLink |
119 | - * @return mixed|string |
|
119 | + * @return string |
|
120 | 120 | */ |
121 | 121 | function generateLPFinalItemTemplate($lpItemId, $courseCode, $sessionId=0, $downloadCertificateLink='', $badgeLink='') |
122 | 122 | { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | } |
240 | 240 | |
241 | 241 | /** |
242 | - * @param doc_id id of document (id in mainDb.document table) |
|
242 | + * @param doc_id string of document (id in mainDb.document table) |
|
243 | 243 | * @author Sebastien Piraux <[email protected]> |
244 | 244 | * @desc Record information for upload event |
245 | 245 | * used in the works tool to record informations when |
@@ -313,6 +313,9 @@ discard block |
||
313 | 313 | * @param int session_id |
314 | 314 | * @param int learnpath_id (id of the learnpath) |
315 | 315 | * @param int learnpath_item_id (id of the learnpath_item) |
316 | + * @param integer $score |
|
317 | + * @param integer $weighting |
|
318 | + * @param integer $session_id |
|
316 | 319 | * |
317 | 320 | * @author Sebastien Piraux <[email protected]> |
318 | 321 | * @author Julio Montoya Armas <[email protected]> Reworked 2010 |
@@ -414,7 +417,9 @@ discard block |
||
414 | 417 | * @param integer Session ID (from the session table). Default value of null means "get from context". |
415 | 418 | * @param integer Learnpath ID (from c_lp table). Default value of null means "get from context". |
416 | 419 | * @param integer Learnpath item ID (from the c_lp_item table). Default value of null means "get from context". |
417 | - * @return boolean Result of the insert query |
|
420 | + * @param integer $exe_id |
|
421 | + * @param integer $position |
|
422 | + * @return false|string Result of the insert query |
|
418 | 423 | */ |
419 | 424 | public static function saveQuestionAttempt( |
420 | 425 | $score, |
@@ -581,6 +586,7 @@ discard block |
||
581 | 586 | * @param int Whether this answer is correct (1) or not (0) |
582 | 587 | * @param string Coordinates of this point (e.g. 123;324) |
583 | 588 | * @param bool update results? |
589 | + * @param integer $exe_id |
|
584 | 590 | * @return boolean Result of the insert query |
585 | 591 | * @uses Course code and user_id from global scope $_cid and $_user |
586 | 592 | */ |
@@ -720,7 +726,6 @@ discard block |
||
720 | 726 | /** |
721 | 727 | * Get every email stored in the database |
722 | 728 | * |
723 | - * @param int $etId |
|
724 | 729 | * @return type |
725 | 730 | * @assert () !== false |
726 | 731 | */ |
@@ -788,11 +793,11 @@ discard block |
||
788 | 793 | /** |
789 | 794 | * Save the new message for one event and for one language |
790 | 795 | * |
791 | - * @param string $eventName |
|
796 | + * @param string $event_name |
|
792 | 797 | * @param array $users |
793 | 798 | * @param string $message |
794 | 799 | * @param string $subject |
795 | - * @param string $eventMessageLanguage |
|
800 | + * @param string $event_message_language |
|
796 | 801 | * @param int $activated |
797 | 802 | */ |
798 | 803 | public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated) |
@@ -926,10 +931,10 @@ discard block |
||
926 | 931 | } |
927 | 932 | |
928 | 933 | /** |
929 | - * @param $user_id |
|
934 | + * @param integer $user_id |
|
930 | 935 | * @param $exerciseId |
931 | - * @param $lp_id |
|
932 | - * @param $lp_item_id |
|
936 | + * @param integer $lp_id |
|
937 | + * @param integer $lp_item_id |
|
933 | 938 | * @return int |
934 | 939 | */ |
935 | 940 | public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id) |
@@ -1106,6 +1111,7 @@ discard block |
||
1106 | 1111 | * @param int exercise id |
1107 | 1112 | * @param int $courseId |
1108 | 1113 | * @param int session id |
1114 | + * @param integer $user_id |
|
1109 | 1115 | * @return array with the results |
1110 | 1116 | * |
1111 | 1117 | */ |
@@ -1201,6 +1207,7 @@ discard block |
||
1201 | 1207 | * @param int exercise id |
1202 | 1208 | * @param int $courseId |
1203 | 1209 | * @param int session id |
1210 | + * @param integer $user_id |
|
1204 | 1211 | * @return array with the results |
1205 | 1212 | * |
1206 | 1213 | */ |
@@ -1241,6 +1248,7 @@ discard block |
||
1241 | 1248 | * @param int exercise id |
1242 | 1249 | * @param string course code |
1243 | 1250 | * @param int session id |
1251 | + * @param integer $exe_id |
|
1244 | 1252 | * @return array with the results |
1245 | 1253 | * |
1246 | 1254 | */ |
@@ -1290,6 +1298,8 @@ discard block |
||
1290 | 1298 | * @param int lp id |
1291 | 1299 | * @param int lp item id |
1292 | 1300 | * @param string order asc or desc |
1301 | + * @param integer $courseId |
|
1302 | + * @param string $order |
|
1293 | 1303 | * @return array with the results |
1294 | 1304 | * |
1295 | 1305 | */ |
@@ -1349,7 +1359,7 @@ discard block |
||
1349 | 1359 | * @param int exercise id |
1350 | 1360 | * @param int $courseId |
1351 | 1361 | * @param int session id |
1352 | - * @return array with the results |
|
1362 | + * @return string with the results |
|
1353 | 1363 | * |
1354 | 1364 | */ |
1355 | 1365 | public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0) |
@@ -1525,7 +1535,7 @@ discard block |
||
1525 | 1535 | * @param int exercise id |
1526 | 1536 | * @param int course id |
1527 | 1537 | * @param int session id |
1528 | - * @return array with the results |
|
1538 | + * @return integer with the results |
|
1529 | 1539 | * |
1530 | 1540 | */ |
1531 | 1541 | public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0) |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | * @param string $label |
214 | 214 | * @param array $attributes |
215 | 215 | * |
216 | - * @return mixed |
|
216 | + * @return HTML_QuickForm_element |
|
217 | 217 | */ |
218 | 218 | public function addDatePicker($name, $label, $attributes = []) |
219 | 219 | { |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * @param string $label |
226 | 226 | * @param array $attributes |
227 | 227 | * |
228 | - * @return mixed |
|
228 | + * @return HTML_QuickForm_element |
|
229 | 229 | */ |
230 | 230 | public function addSelectLanguage($name, $label, $options = [], $attributes = []) |
231 | 231 | { |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @param string $label |
238 | 238 | * @param array $attributes |
239 | 239 | * |
240 | - * @return mixed |
|
240 | + * @return HTML_QuickForm_element |
|
241 | 241 | */ |
242 | 242 | public function addDateTimePicker($name, $label, $attributes = []) |
243 | 243 | { |
@@ -700,7 +700,7 @@ discard block |
||
700 | 700 | * @param array $options |
701 | 701 | * @param array $attributes |
702 | 702 | * |
703 | - * @return HTML_QuickForm_radio |
|
703 | + * @return HTML_QuickForm_group |
|
704 | 704 | */ |
705 | 705 | public function addRadio($name, $label, $options = array(), $attributes = array()) |
706 | 706 | { |
@@ -835,7 +835,7 @@ discard block |
||
835 | 835 | * @param string $name |
836 | 836 | * @param string $label |
837 | 837 | * |
838 | - * @return mixed |
|
838 | + * @return HTML_QuickForm_element |
|
839 | 839 | */ |
840 | 840 | public function addButtonAdvancedSettings($name, $label = '') |
841 | 841 | { |
@@ -932,7 +932,7 @@ discard block |
||
932 | 932 | /** |
933 | 933 | * This function has been created for avoiding changes directly within QuickForm class. |
934 | 934 | * When we use it, the element is threated as 'required' to be dealt during validation. |
935 | - * @param array $element The array of elements |
|
935 | + * @param array $elements The array of elements |
|
936 | 936 | * @param string $message The message displayed |
937 | 937 | */ |
938 | 938 | public function add_multiple_required_rule($elements, $message) |
@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * ChamiloForm constructor. |
16 | - * @param $mode |
|
17 | - * @param $returnurl |
|
18 | - * @param $cancelurl |
|
16 | + * @param string $mode |
|
17 | + * @param string $returnurl |
|
18 | + * @param string $cancelurl |
|
19 | 19 | * @param $customdata |
20 | 20 | */ |
21 | 21 | public function __construct($mode, $returnurl, $cancelurl, $customdata = []) |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * Check that form data is valid. |
138 | 138 | * You should almost always use this, rather than {@see validate_defined_fields} |
139 | 139 | * |
140 | - * @return bool true if form data valid |
|
140 | + * @return boolean|null true if form data valid |
|
141 | 141 | */ |
142 | 142 | public function is_validated() |
143 | 143 | { |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * is NOT to validate the form when a no submit button has been pressed. |
167 | 167 | * pass true here to override this behaviour |
168 | 168 | * |
169 | - * @return bool true if form data valid |
|
169 | + * @return boolean|null true if form data valid |
|
170 | 170 | */ |
171 | 171 | public function validate_defined_fields($validateonnosubmit=false) |
172 | 172 | { |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | * @param $stok |
429 | 429 | * @param $code |
430 | 430 | * @param $search_term |
431 | - * @return html |
|
431 | + * @return string |
|
432 | 432 | */ |
433 | 433 | function return_register_button($course, $stok, $code, $search_term) |
434 | 434 | { |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | * @param $stok |
444 | 444 | * @param $search_term |
445 | 445 | * @param $code |
446 | - * @return html |
|
446 | + * @return string |
|
447 | 447 | */ |
448 | 448 | function return_unregister_button($course, $stok, $search_term, $code) |
449 | 449 | { |