@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | /** |
361 | 361 | * Get description titles by default |
362 | - * @return array |
|
362 | + * @return string[] |
|
363 | 363 | */ |
364 | 364 | public function get_default_description_title() |
365 | 365 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | |
379 | 379 | /** |
380 | 380 | * Get description titles editable by default |
381 | - * @return array |
|
381 | + * @return boolean[] |
|
382 | 382 | */ |
383 | 383 | public function get_default_description_title_editable() |
384 | 384 | { |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | |
398 | 398 | /** |
399 | 399 | * Get description icons by default |
400 | - * @return array |
|
400 | + * @return string[] |
|
401 | 401 | */ |
402 | 402 | public function get_default_description_icon() |
403 | 403 | { |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | /** |
419 | 419 | * Get questions by default for help |
420 | - * @return array |
|
420 | + * @return string[] |
|
421 | 421 | */ |
422 | 422 | public function get_default_question() |
423 | 423 | { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | |
437 | 437 | /** |
438 | 438 | * Get informations by default for help |
439 | - * @return array |
|
439 | + * @return string[] |
|
440 | 440 | */ |
441 | 441 | public function get_default_information() |
442 | 442 | { |
@@ -2309,7 +2309,7 @@ discard block |
||
2309 | 2309 | |
2310 | 2310 | /** |
2311 | 2311 | * Creates a file called mysql_dump.sql in the course folder |
2312 | - * @param $course_code The code of the course |
|
2312 | + * @param string $course_code The code of the course |
|
2313 | 2313 | * @todo Implementation for single database |
2314 | 2314 | */ |
2315 | 2315 | public static function create_database_dump($course_code) |
@@ -3352,6 +3352,7 @@ discard block |
||
3352 | 3352 | * in the sense that any user clicking them is registered as a student |
3353 | 3353 | * @param int User id |
3354 | 3354 | * @param bool Whether to show the document quick-loader or not |
3355 | + * @param integer $user_id |
|
3355 | 3356 | * @return string |
3356 | 3357 | */ |
3357 | 3358 | public static function returnSpecialCourses($user_id, $load_dirs = false) |
@@ -3654,6 +3655,7 @@ discard block |
||
3654 | 3655 | * class userportal-course-item. |
3655 | 3656 | * @param int User category id |
3656 | 3657 | * @param bool Whether to show the document quick-loader or not |
3658 | + * @param integer $user_category_id |
|
3657 | 3659 | * @return string |
3658 | 3660 | */ |
3659 | 3661 | public static function returnCoursesWithoutCategories($user_category_id, $load_dirs = false) |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | } |
354 | 354 | |
355 | 355 | /** |
356 | - * @return int |
|
356 | + * @return string |
|
357 | 357 | */ |
358 | 358 | public function selectPassPercentage() |
359 | 359 | { |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | * tells if questions are selected randomly, and if so returns the draws |
463 | 463 | * |
464 | 464 | * @author Olivier Brouckaert |
465 | - * @return integer - 0 if not random, otherwise the draws |
|
465 | + * @return boolean - 0 if not random, otherwise the draws |
|
466 | 466 | */ |
467 | 467 | public function isRandom() |
468 | 468 | { |
@@ -2830,7 +2830,7 @@ discard block |
||
2830 | 2830 | * @param int int lp id |
2831 | 2831 | * @param int int lp item id |
2832 | 2832 | * @param int int lp item_view id |
2833 | - * @param float $weight |
|
2833 | + * @param integer $weight |
|
2834 | 2834 | * @param array question list |
2835 | 2835 | */ |
2836 | 2836 | public function save_stat_track_exercise_info( |
@@ -5327,6 +5327,9 @@ discard block |
||
5327 | 5327 | } |
5328 | 5328 | } |
5329 | 5329 | |
5330 | + /** |
|
5331 | + * @param integer $exe_id |
|
5332 | + */ |
|
5330 | 5333 | function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id) |
5331 | 5334 | { |
5332 | 5335 | if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) { |
@@ -5478,7 +5481,7 @@ discard block |
||
5478 | 5481 | * @param int Maximum number of attempts (0 if no limit) |
5479 | 5482 | * @param int Feedback type |
5480 | 5483 | * @todo this was function was added due the import exercise via CSV |
5481 | - * @return int New exercise ID |
|
5484 | + * @return string New exercise ID |
|
5482 | 5485 | */ |
5483 | 5486 | public function createExercise( |
5484 | 5487 | $title, |
@@ -6813,7 +6816,7 @@ discard block |
||
6813 | 6816 | * @param bool $show_comment |
6814 | 6817 | * @param null $exercise_feedback |
6815 | 6818 | * @param bool $show_answers |
6816 | - * @param null $modelType |
|
6819 | + * @param integer $modelType |
|
6817 | 6820 | * @param bool $categoryMinusOne |
6818 | 6821 | * @return bool|null|string |
6819 | 6822 | */ |
@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | * @param int $questionId Question ID |
26 | 26 | * @param int $resultsDisabled |
27 | 27 | * @param string $originalStudentAnswer |
28 | + * @param boolean $showTotalScoreAndUserChoices |
|
28 | 29 | * |
29 | 30 | * @return void |
30 | 31 | */ |
@@ -71,6 +72,11 @@ discard block |
||
71 | 72 | * @param string Answer text |
72 | 73 | * @param int Exercise ID |
73 | 74 | * @param int Question ID |
75 | + * @param integer $feedback_type |
|
76 | + * @param string $answer |
|
77 | + * @param integer $id |
|
78 | + * @param integer $questionId |
|
79 | + * @param boolean|string $showTotalScoreAndUserChoices |
|
74 | 80 | * @return void |
75 | 81 | */ |
76 | 82 | public static function display_calculated_answer( |
@@ -110,6 +116,9 @@ discard block |
||
110 | 116 | * @param string Answer text |
111 | 117 | * @param int Exercise ID |
112 | 118 | * @param int Question ID |
119 | + * @param integer $feedback_type |
|
120 | + * @param integer $exe_id |
|
121 | + * @param integer $questionId |
|
113 | 122 | * @return void |
114 | 123 | */ |
115 | 124 | public static function display_free_answer( |
@@ -139,11 +148,10 @@ discard block |
||
139 | 148 | } |
140 | 149 | |
141 | 150 | /** |
142 | - * @param $feedback_type |
|
151 | + * @param integer $feedback_type |
|
143 | 152 | * @param $answer |
144 | - * @param $id |
|
145 | - * @param $questionId |
|
146 | - * @param null $nano |
|
153 | + * @param integer $id |
|
154 | + * @param integer $questionId |
|
147 | 155 | * @param int $results_disabled |
148 | 156 | */ |
149 | 157 | public static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $fileUrl = null, $results_disabled = 0) |
@@ -193,6 +201,7 @@ discard block |
||
193 | 201 | * @param string $answerComment |
194 | 202 | * @param int $resultsDisabled |
195 | 203 | * @param int $orderColor |
204 | + * @param boolean $showTotalScoreAndUserChoices |
|
196 | 205 | */ |
197 | 206 | public static function display_hotspot_answer( |
198 | 207 | $feedback_type, |
@@ -277,6 +286,13 @@ discard block |
||
277 | 286 | * @param integer Exercise ID |
278 | 287 | * @param integer Question ID |
279 | 288 | * @param boolean Whether to show the answer comment or not |
289 | + * @param integer $answerType |
|
290 | + * @param string $answer |
|
291 | + * @param string $answerComment |
|
292 | + * @param integer $answerCorrect |
|
293 | + * @param integer $id |
|
294 | + * @param integer $questionId |
|
295 | + * @param boolean $showTotalScoreAndUserChoices |
|
280 | 296 | * @return void |
281 | 297 | */ |
282 | 298 | public static function display_unique_or_multiple_answer( |
@@ -373,6 +389,14 @@ discard block |
||
373 | 389 | * @param integer Exercise ID |
374 | 390 | * @param integer Question ID |
375 | 391 | * @param boolean Whether to show the answer comment or not |
392 | + * @param integer $feedback_type |
|
393 | + * @param integer $answerType |
|
394 | + * @param string $answer |
|
395 | + * @param string $answerComment |
|
396 | + * @param integer $answerCorrect |
|
397 | + * @param integer $id |
|
398 | + * @param integer $questionId |
|
399 | + * @param boolean $showTotalScoreAndUserChoices |
|
376 | 400 | * @return void |
377 | 401 | */ |
378 | 402 | public static function display_multiple_answer_true_false( |
@@ -477,6 +501,14 @@ discard block |
||
477 | 501 | * @param integer Exercise ID |
478 | 502 | * @param integer Question ID |
479 | 503 | * @param boolean Whether to show the answer comment or not |
504 | + * @param integer $feedback_type |
|
505 | + * @param integer $answerType |
|
506 | + * @param string $answer |
|
507 | + * @param string $answerComment |
|
508 | + * @param integer $answerCorrect |
|
509 | + * @param integer $id |
|
510 | + * @param integer $questionId |
|
511 | + * @param boolean $showTotalScoreAndUserChoices |
|
480 | 512 | * @return void |
481 | 513 | */ |
482 | 514 | public static function display_multiple_answer_combination_true_false( |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | * @param string $template |
257 | 257 | * @param bool $forced |
258 | 258 | * |
259 | - * @return null|string |
|
259 | + * @return string |
|
260 | 260 | */ |
261 | 261 | public function load_region($region, $template, $forced = false) |
262 | 262 | { |
@@ -628,7 +628,7 @@ discard block |
||
628 | 628 | |
629 | 629 | /** |
630 | 630 | * Get first SMS plugin name |
631 | - * @return string|boolean |
|
631 | + * @return string|false |
|
632 | 632 | */ |
633 | 633 | public function getSMSPluginName() |
634 | 634 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @param mixed $param4 (optional) See function detail |
122 | 122 | * @since 1.1 |
123 | 123 | * @access public |
124 | - * @return PEAR_Error on error or true |
|
124 | + * @return boolean|null on error or true |
|
125 | 125 | * @throws PEAR_Error |
126 | 126 | */ |
127 | 127 | private function load(&$options, $param1=null, $param2=null, $param3=null, $param4=null) |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * @param mixed $values (optional) Array or comma delimited string of selected values |
141 | 141 | * @since 1.0 |
142 | 142 | * @access public |
143 | - * @return PEAR_Error on error or true |
|
143 | + * @return boolean on error or true |
|
144 | 144 | * @throws PEAR_Error |
145 | 145 | */ |
146 | 146 | private function loadArray($arr, $values = null) |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * |
208 | 208 | * @since 1.0 |
209 | 209 | * @access public |
210 | - * @return array of selected values |
|
210 | + * @return string of selected values |
|
211 | 211 | */ |
212 | 212 | function getSelected() |
213 | 213 | { |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | /** |
271 | 271 | * Sets the value of the form element |
272 | 272 | * |
273 | - * @param mixed $values Array or comma delimited string of selected values |
|
273 | + * @param mixed $value Array or comma delimited string of selected values |
|
274 | 274 | * @since 1.0 |
275 | 275 | * @access public |
276 | 276 | * @return void |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | * |
289 | 289 | * @since 1.0 |
290 | 290 | * @access public |
291 | - * @return array of selected values |
|
291 | + * @return string of selected values |
|
292 | 292 | */ |
293 | 293 | function getValue() |
294 | 294 | { |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | * |
320 | 320 | * @since 1.0 |
321 | 321 | * @access public |
322 | - * @return int |
|
322 | + * @return string|null |
|
323 | 323 | */ |
324 | 324 | function getSize() |
325 | 325 | { |
@@ -419,12 +419,9 @@ discard block |
||
419 | 419 | /** |
420 | 420 | * Adds a new OPTION to the SELECT |
421 | 421 | * |
422 | - * @param string $text Display text for the OPTION |
|
423 | - * @param string $value Value for the OPTION |
|
424 | - * @param mixed $attributes Either a typical HTML attribute string |
|
425 | - * or an associative array |
|
426 | 422 | * @since 1.0 |
427 | 423 | * @access public |
424 | + * @param string $label |
|
428 | 425 | * @return void |
429 | 426 | */ |
430 | 427 | function addOptGroup($options, $label) |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | /** |
118 | 118 | * Create folders |
119 | - * @param array $folderList |
|
119 | + * @param string[] $folderList |
|
120 | 120 | * @param OutputInterface $output |
121 | 121 | * @param string $folderPermissions |
122 | 122 | */ |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * http://chamilo/courses/ABC/document/file.jpg |
201 | 201 | * @param string $content |
202 | 202 | * |
203 | - * @return string |
|
203 | + * @return \simplehtmldom_1_5\simple_html_dom |
|
204 | 204 | */ |
205 | 205 | public function convertRelativeToAbsoluteUrl($content) |
206 | 206 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | |
198 | 198 | /** |
199 | 199 | * Get user |
200 | - * @return \User |
|
200 | + * @return User |
|
201 | 201 | */ |
202 | 202 | public function getUser() |
203 | 203 | { |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | |
513 | 513 | /** |
514 | 514 | * Calculate the average value from the feedback comments |
515 | - * @return int |
|
515 | + * @return string |
|
516 | 516 | */ |
517 | 517 | public function getAverage() |
518 | 518 | { |
@@ -114,7 +114,7 @@ |
||
114 | 114 | |
115 | 115 | /** |
116 | 116 | * Get feedbackDateTime |
117 | - * @return type |
|
117 | + * @return \DateTime |
|
118 | 118 | */ |
119 | 119 | public function getFeedbackDateTime() |
120 | 120 | { |