@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Validate the imported data. |
15 | - * @param $skills |
|
15 | + * @param Ddeboer\DataImport\Reader\CsvReader $skills |
|
16 | 16 | * @return array |
17 | 17 | */ |
18 | 18 | function validate_data($skills) |
@@ -50,6 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Save the imported data |
52 | 52 | * @param array List of users |
53 | + * @param Ddeboer\DataImport\Reader\CsvReader $skills |
|
53 | 54 | * @return void |
54 | 55 | * @uses global variable $inserted_in_course, |
55 | 56 | * which returns the list of courses the user was inserted in |
@@ -77,7 +78,7 @@ discard block |
||
77 | 78 | /** |
78 | 79 | * Read the CSV-file |
79 | 80 | * @param string $file Path to the CSV-file |
80 | - * @return array All userinformation read from the file |
|
81 | + * @return Ddeboer\DataImport\Reader\CsvReader All userinformation read from the file |
|
81 | 82 | */ |
82 | 83 | function parse_csv_data($file) |
83 | 84 | { |
@@ -227,7 +227,7 @@ |
||
227 | 227 | /** |
228 | 228 | * Read the CSV-file |
229 | 229 | * @param string $file Path to the CSV-file |
230 | - * @return array All userinformation read from the file |
|
230 | + * @return Ddeboer\DataImport\Reader\CsvReader All userinformation read from the file |
|
231 | 231 | */ |
232 | 232 | function parse_csv_data($file) |
233 | 233 | { |
@@ -15,6 +15,9 @@ discard block |
||
15 | 15 | // Set this option to true to enforce strict purification for usenames. |
16 | 16 | $purification_option_for_usernames = false; |
17 | 17 | |
18 | +/** |
|
19 | + * @param Ddeboer\DataImport\Reader\CsvReader $users |
|
20 | + */ |
|
18 | 21 | function validate_data($users) |
19 | 22 | { |
20 | 23 | global $defined_auth_sources; |
@@ -228,7 +231,7 @@ discard block |
||
228 | 231 | /** |
229 | 232 | * Read the CSV-file |
230 | 233 | * @param string $file Path to the CSV-file |
231 | - * @return array All userinformation read from the file |
|
234 | + * @return Ddeboer\DataImport\Reader\CsvReader All userinformation read from the file |
|
232 | 235 | */ |
233 | 236 | function parse_csv_data($file) |
234 | 237 | { |
@@ -9,6 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Validates imported data. |
12 | + * @param Ddeboer\DataImport\Reader\CsvReader $classes |
|
12 | 13 | */ |
13 | 14 | function validate_data($classes) { |
14 | 15 | $errors = array(); |
@@ -36,7 +37,7 @@ discard block |
||
36 | 37 | /** |
37 | 38 | * Save imported class data to database |
38 | 39 | * |
39 | - * @param $classes |
|
40 | + * @param Ddeboer\DataImport\Reader\CsvReader $classes |
|
40 | 41 | * |
41 | 42 | * @return int |
42 | 43 | */ |
@@ -11,6 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Validates imported data. |
14 | + * @param Ddeboer\DataImport\Reader\CsvReader $user_classes |
|
14 | 15 | */ |
15 | 16 | function validate_data($user_classes) { |
16 | 17 | global $purification_option_for_usernames; |
@@ -66,6 +67,7 @@ discard block |
||
66 | 67 | |
67 | 68 | /** |
68 | 69 | * Saves imported data. |
70 | + * @param Ddeboer\DataImport\Reader\CsvReader $users_classes |
|
69 | 71 | */ |
70 | 72 | function save_data($users_classes, $deleteUsersNotInList = false) { |
71 | 73 | |
@@ -115,7 +117,7 @@ discard block |
||
115 | 117 | /** |
116 | 118 | * Reads a CSV-file. |
117 | 119 | * @param string $file Path to the CSV-file |
118 | - * @return array All course-information read from the file |
|
120 | + * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file |
|
119 | 121 | */ |
120 | 122 | function parse_csv_data($file) { |
121 | 123 | $courses = Import::csvToArray($file); |
@@ -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 | { |
@@ -1,6 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | 3 | * Validates imported data. |
4 | + * @param Ddeboer\DataImport\Reader\CsvReader $users |
|
4 | 5 | */ |
5 | 6 | function validate_data($users) { |
6 | 7 | global $defined_auth_sources; |
@@ -87,6 +88,7 @@ discard block |
||
87 | 88 | |
88 | 89 | /** |
89 | 90 | * Save the imported data |
91 | + * @param Ddeboer\DataImport\Reader\CsvReader $users |
|
90 | 92 | */ |
91 | 93 | function save_data($users) { |
92 | 94 | $user_table = Database :: get_main_table(TABLE_MAIN_USER); |
@@ -134,7 +136,7 @@ discard block |
||
134 | 136 | /** |
135 | 137 | * Reads the CSV-file. |
136 | 138 | * @param string $file Path to the CSV-file |
137 | - * @return array All userinformation read from the file |
|
139 | + * @return Ddeboer\DataImport\Reader\CsvReader All userinformation read from the file |
|
138 | 140 | */ |
139 | 141 | function parse_csv_data($file) { |
140 | 142 | $users = Import :: csvToArray($file); |
@@ -11,6 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Validates imported data. |
14 | + * @param Ddeboer\DataImport\Reader\CsvReader $user_classes |
|
14 | 15 | */ |
15 | 16 | function validate_data($user_classes) { |
16 | 17 | global $purification_option_for_usernames; |
@@ -66,6 +67,7 @@ discard block |
||
66 | 67 | |
67 | 68 | /** |
68 | 69 | * Saves imported data. |
70 | + * @param Ddeboer\DataImport\Reader\CsvReader $users_classes |
|
69 | 71 | */ |
70 | 72 | function save_data($users_classes, $deleteUsersNotInList = false) { |
71 | 73 | |
@@ -115,7 +117,7 @@ discard block |
||
115 | 117 | /** |
116 | 118 | * Reads a CSV-file. |
117 | 119 | * @param string $file Path to the CSV-file |
118 | - * @return array All course-information read from the file |
|
120 | + * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file |
|
119 | 121 | */ |
120 | 122 | function parse_csv_data($file) { |
121 | 123 | $courses = Import::csvToArray($file); |
@@ -8,6 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | /** |
10 | 10 | * Validates the imported data. |
11 | + * @param Ddeboer\DataImport\Reader\CsvReader $users_courses |
|
11 | 12 | */ |
12 | 13 | function validate_data($users_courses) |
13 | 14 | { |
@@ -66,6 +67,7 @@ discard block |
||
66 | 67 | |
67 | 68 | /** |
68 | 69 | * Saves imported data. |
70 | + * @param Ddeboer\DataImport\Reader\CsvReader $users_courses |
|
69 | 71 | */ |
70 | 72 | function save_data($users_courses) |
71 | 73 | { |
@@ -134,7 +136,7 @@ discard block |
||
134 | 136 | /** |
135 | 137 | * Reads CSV-file. |
136 | 138 | * @param string $file Path to the CSV-file |
137 | - * @return array All course-information read from the file |
|
139 | + * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file |
|
138 | 140 | */ |
139 | 141 | function parse_csv_data($file) |
140 | 142 | { |