@@ -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 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Instance the plugin |
38 | 38 | * @staticvar null $result |
39 | - * @return Tour |
|
39 | + * @return AzureActiveDirectory |
|
40 | 40 | */ |
41 | 41 | static function create() |
42 | 42 | { |
@@ -173,7 +173,7 @@ |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param array $file |
176 | - * @return bool|string |
|
176 | + * @return string|false |
|
177 | 177 | */ |
178 | 178 | public static function import_uploaded_file($file) |
179 | 179 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @return bool |
|
41 | + * @return false|null |
|
42 | 42 | */ |
43 | 43 | public function create_user_folder() |
44 | 44 | { |
@@ -1212,6 +1212,7 @@ |
||
1212 | 1212 | * Restore a forum-post |
1213 | 1213 | * @TODO Restore tree-structure of posts. For example: attachments to posts. |
1214 | 1214 | * @param false|string $topic_id |
1215 | + * @param false|string $forum_id |
|
1215 | 1216 | */ |
1216 | 1217 | public function restore_post($id, $topic_id, $forum_id, $sessionId = 0) |
1217 | 1218 | { |
@@ -25,6 +25,7 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Useful finder - experimental akelos like only use in notification.lib.php send function |
28 | + * @param string $type |
|
28 | 29 | */ |
29 | 30 | public function find($type, $options = null) |
30 | 31 | { |