@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | } |
| 355 | 355 | |
| 356 | 356 | /** |
| 357 | - * @return int |
|
| 357 | + * @return string |
|
| 358 | 358 | */ |
| 359 | 359 | public function selectPassPercentage() |
| 360 | 360 | { |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | * tells if questions are selected randomly, and if so returns the draws |
| 474 | 474 | * |
| 475 | 475 | * @author Olivier Brouckaert |
| 476 | - * @return integer - 0 if not random, otherwise the draws |
|
| 476 | + * @return boolean - 0 if not random, otherwise the draws |
|
| 477 | 477 | */ |
| 478 | 478 | public function isRandom() |
| 479 | 479 | { |
@@ -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( |
@@ -5118,6 +5118,7 @@ discard block |
||
| 5118 | 5118 | /** |
| 5119 | 5119 | * Sends a notification when a user ends an examn |
| 5120 | 5120 | * |
| 5121 | + * @param integer $exe_id |
|
| 5121 | 5122 | */ |
| 5122 | 5123 | public function send_mail_notification_for_exam($question_list_answers, $origin, $exe_id) |
| 5123 | 5124 | { |
@@ -5198,6 +5199,7 @@ discard block |
||
| 5198 | 5199 | /** |
| 5199 | 5200 | * Sends a notification when a user ends an examn |
| 5200 | 5201 | * |
| 5202 | + * @param integer $exe_id |
|
| 5201 | 5203 | */ |
| 5202 | 5204 | function send_notification_for_open_questions($question_list_answers, $origin, $exe_id) |
| 5203 | 5205 | { |
@@ -5295,6 +5297,9 @@ discard block |
||
| 5295 | 5297 | } |
| 5296 | 5298 | } |
| 5297 | 5299 | |
| 5300 | + /** |
|
| 5301 | + * @param integer $exe_id |
|
| 5302 | + */ |
|
| 5298 | 5303 | function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id) |
| 5299 | 5304 | { |
| 5300 | 5305 | if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) { |
@@ -5388,7 +5393,7 @@ discard block |
||
| 5388 | 5393 | |
| 5389 | 5394 | /** |
| 5390 | 5395 | * @param array $user_data result of api_get_user_info() |
| 5391 | - * @param null $start_date |
|
| 5396 | + * @param string $start_date |
|
| 5392 | 5397 | * @param null $duration |
| 5393 | 5398 | * @param string $ip Optional. The user IP |
| 5394 | 5399 | * @return string |
@@ -5446,7 +5451,7 @@ discard block |
||
| 5446 | 5451 | * @param int Maximum number of attempts (0 if no limit) |
| 5447 | 5452 | * @param int Feedback type |
| 5448 | 5453 | * @todo this was function was added due the import exercise via CSV |
| 5449 | - * @return int New exercise ID |
|
| 5454 | + * @return string New exercise ID |
|
| 5450 | 5455 | */ |
| 5451 | 5456 | public function createExercise( |
| 5452 | 5457 | $title, |
@@ -6795,7 +6800,7 @@ discard block |
||
| 6795 | 6800 | * @param bool $show_comment |
| 6796 | 6801 | * @param null $exercise_feedback |
| 6797 | 6802 | * @param bool $show_answers |
| 6798 | - * @param null $modelType |
|
| 6803 | + * @param integer $modelType |
|
| 6799 | 6804 | * @param bool $categoryMinusOne |
| 6800 | 6805 | * @return bool|null|string |
| 6801 | 6806 | */ |
@@ -7956,8 +7961,8 @@ discard block |
||
| 7956 | 7961 | /** |
| 7957 | 7962 | * Returns an HTML ribbon to show on top of the exercise result, with |
| 7958 | 7963 | * colouring depending on the success or failure of the student |
| 7959 | - * @param $score |
|
| 7960 | - * @param $weight |
|
| 7964 | + * @param integer $score |
|
| 7965 | + * @param integer $weight |
|
| 7961 | 7966 | * @param bool $check_pass_percentage |
| 7962 | 7967 | * @return string |
| 7963 | 7968 | */ |