@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * Deletes all survey invitations of a user |
48 | 48 | * @param int $user_id |
49 | 49 | * |
50 | - * @return boolean |
|
50 | + * @return false|null |
|
51 | 51 | * @assert ('') === false |
52 | 52 | */ |
53 | 53 | public static function delete_all_survey_invitations_by_user($user_id) |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * Retrieves all the survey information |
105 | 105 | * |
106 | 106 | * @param integer $survey_id the id of the survey |
107 | - * @param boolean $shared this parameter determines if |
|
107 | + * @param integer $shared this parameter determines if |
|
108 | 108 | * we have to get the information of a survey from the central (shared) database or from the |
109 | 109 | * course database |
110 | 110 | * @param string course code optional |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | * This function deletes a survey (and also all the question in that survey |
572 | 572 | * |
573 | 573 | * @param int $survey_id id of the survey that has to be deleted |
574 | - * @return true |
|
574 | + * @return boolean |
|
575 | 575 | * |
576 | 576 | * @author Patrick Cool <[email protected]>, Ghent University |
577 | 577 | * @version January 2007 |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | * |
757 | 757 | * @param int $survey_id id of the survey that has to be duplicated |
758 | 758 | * @param int $courseId id of the course which survey has to be duplicated |
759 | - * @return true |
|
759 | + * @return boolean |
|
760 | 760 | * |
761 | 761 | * @author Eric Marguin <[email protected]>, Elixir Interactive |
762 | 762 | * @version October 2007 |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | /** |
797 | 797 | * This function recalculates the number of people who have taken the survey (=filled at least one question) |
798 | 798 | * |
799 | - * @param int $survey_id the id of the survey somebody |
|
799 | + * @param int $survey_data the id of the survey somebody |
|
800 | 800 | * @return true |
801 | 801 | * |
802 | 802 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1367,7 +1367,7 @@ discard block |
||
1367 | 1367 | * This function deletes a shared survey question from the main database and all its options |
1368 | 1368 | * |
1369 | 1369 | * @param int $question_id the id of the question |
1370 | - * @param int $shared |
|
1370 | + * @param integer $survey_id |
|
1371 | 1371 | * |
1372 | 1372 | * @todo delete all the options of this question |
1373 | 1373 | * |
@@ -1494,8 +1494,8 @@ discard block |
||
1494 | 1494 | * This function deletes all the options of the questions of a given survey |
1495 | 1495 | * This function is normally only called when a survey is deleted |
1496 | 1496 | * |
1497 | - * @param $survey_id the id of the survey that has to be deleted |
|
1498 | - * @return true |
|
1497 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
1498 | + * @return boolean |
|
1499 | 1499 | * |
1500 | 1500 | * @author Patrick Cool <[email protected]>, Ghent University |
1501 | 1501 | * @version January 2007 |
@@ -1562,8 +1562,8 @@ discard block |
||
1562 | 1562 | * This function deletes all the answers anyone has given on this survey |
1563 | 1563 | * This function is normally only called when a survey is deleted |
1564 | 1564 | * |
1565 | - * @param $survey_id the id of the survey that has to be deleted |
|
1566 | - * @return true |
|
1565 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
1566 | + * @return boolean |
|
1567 | 1567 | * |
1568 | 1568 | * @todo write the function |
1569 | 1569 | * |
@@ -1832,7 +1832,7 @@ discard block |
||
1832 | 1832 | /** |
1833 | 1833 | * This function checks the parameters that are used in this page |
1834 | 1834 | * |
1835 | - * @return string The header, an error and the footer if any parameter fails, else it returns true |
|
1835 | + * @return null|boolean The header, an error and the footer if any parameter fails, else it returns true |
|
1836 | 1836 | * @author Patrick Cool <[email protected]>, Ghent University |
1837 | 1837 | * @version February 2007 |
1838 | 1838 | */ |
@@ -2383,6 +2383,7 @@ discard block |
||
2383 | 2383 | * Display score data about a survey question |
2384 | 2384 | * @param array Question info |
2385 | 2385 | * @param integer The offset of results shown |
2386 | + * @param integer $offset |
|
2386 | 2387 | * @return void (direct output) |
2387 | 2388 | */ |
2388 | 2389 | public static function display_question_report_score($survey_data, $question, $offset) |
@@ -3223,7 +3224,7 @@ discard block |
||
3223 | 3224 | * @param array User's answers |
3224 | 3225 | * @param mixed User ID or user details as string - Used as a string in the result string |
3225 | 3226 | * @param boolean Whether to display user fields or not |
3226 | - * @return string One line of the csv file |
|
3227 | + * @return string[] One line of the csv file |
|
3227 | 3228 | */ |
3228 | 3229 | public static function export_complete_report_row_xls( |
3229 | 3230 | $survey_data, |
@@ -3532,6 +3533,7 @@ discard block |
||
3532 | 3533 | * |
3533 | 3534 | * @param integer Survey ID |
3534 | 3535 | * @param integer Question ID |
3536 | + * @param integer $survey_id |
|
3535 | 3537 | * @return Array Array containing all answers of all users, grouped by user |
3536 | 3538 | * |
3537 | 3539 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -3826,7 +3828,7 @@ discard block |
||
3826 | 3828 | |
3827 | 3829 | /** |
3828 | 3830 | * @param $params |
3829 | - * @return bool|int |
|
3831 | + * @return false|string |
|
3830 | 3832 | */ |
3831 | 3833 | public static function save_invitation($params) |
3832 | 3834 | { |
@@ -3880,6 +3882,7 @@ discard block |
||
3880 | 3882 | * |
3881 | 3883 | * @param int invitedUser - the userId (course user) or emailaddress of additional user |
3882 | 3884 | * $param string $invitation_code - the unique invitation code for the URL |
3885 | + * @param string|null $invitation_text |
|
3883 | 3886 | * @return void |
3884 | 3887 | */ |
3885 | 3888 | public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text) |
@@ -4786,7 +4789,7 @@ discard block |
||
4786 | 4789 | * @author Isaac Flores Paz <[email protected]> |
4787 | 4790 | * @param int $user_id - User ID |
4788 | 4791 | * @param string $survey_code |
4789 | - * @param int $user_id_answer - User in survey answer table (user id or anonymus) |
|
4792 | + * @param int $user_answer - User in survey answer table (user id or anonymus) |
|
4790 | 4793 | * |
4791 | 4794 | * @return boolean |
4792 | 4795 | */ |
@@ -11,6 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Validates imported data. |
14 | + * @param Ddeboer\DataImport\Reader\CsvReader $classes |
|
14 | 15 | */ |
15 | 16 | function validate_data($classes) { |
16 | 17 | $errors = array(); |
@@ -35,6 +36,7 @@ discard block |
||
35 | 36 | |
36 | 37 | /** |
37 | 38 | * Save imported class data to database |
39 | + * @param Ddeboer\DataImport\Reader\CsvReader $classes |
|
38 | 40 | */ |
39 | 41 | function save_data($classes) { |
40 | 42 | $number_of_added_classes = 0; |
@@ -151,7 +151,7 @@ |
||
151 | 151 | /** |
152 | 152 | * Read the CSV-file |
153 | 153 | * @param string $file Path to the CSV-file |
154 | - * @return array All course-information read from the file |
|
154 | + * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file |
|
155 | 155 | */ |
156 | 156 | function parse_csv_data($file) |
157 | 157 | { |