@@ -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 | { |
@@ -314,7 +314,7 @@ |
||
314 | 314 | * Set votes |
315 | 315 | * |
316 | 316 | * @param integer $votes |
317 | - * @return integer |
|
317 | + * @return Message |
|
318 | 318 | */ |
319 | 319 | public function setVotes($votes) |
320 | 320 | { |
@@ -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 | */ |
@@ -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 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param array $data |
39 | 39 | * @param string $filename |
40 | 40 | * |
41 | - * @return mixed csv file | false if no data to export |
|
41 | + * @return false|null csv file | false if no data to export |
|
42 | 42 | */ |
43 | 43 | public static function arrayToCsv($data, $filename = 'export') |
44 | 44 | { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @param string Name of common tag to place each line in |
161 | 161 | * @param string Name of the root element. A root element should always be given. |
162 | 162 | * @param string Encoding in which the data is provided |
163 | - * @return void Prompts the user for a file download |
|
163 | + * @return boolean Prompts the user for a file download |
|
164 | 164 | */ |
165 | 165 | public static function export_complex_table_xml( |
166 | 166 | $data, |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | * @param string $name |
287 | 287 | * @param string $format |
288 | 288 | * |
289 | - * @return bool |
|
289 | + * @return false|null |
|
290 | 290 | */ |
291 | 291 | public static function htmlToOdt($html, $name, $format = 'odt') |
292 | 292 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | /** |
75 | 75 | * @param $courseInfo |
76 | - * @param $weeksCount |
|
76 | + * @param string $weeksCount |
|
77 | 77 | * @param $page |
78 | 78 | * @return array |
79 | 79 | */ |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | /** |
184 | 184 | * @param $datos |
185 | - * @param $pagina |
|
185 | + * @param integer $pagina |
|
186 | 186 | * @return string |
187 | 187 | */ |
188 | 188 | function showStudentResult($datos, $pagina) |
@@ -201,8 +201,8 @@ discard block |
||
201 | 201 | |
202 | 202 | /** |
203 | 203 | * @param $data |
204 | - * @param $numero_semanas |
|
205 | - * @return array |
|
204 | + * @param integer $numero_semanas |
|
205 | + * @return string[] |
|
206 | 206 | */ |
207 | 207 | function showStudentResultExport($data, $numero_semanas) |
208 | 208 | { |