Lines Matching refs:csv
1015 * Export a list of users in csv format using the current filter criteria
1031 header('Content-type: text/csv;charset=utf-8');
1032 header('Content-Disposition: attachment; filename="wikiusers.csv"');
1036 // output the csv
1052 * Import a file of users in csv format
1054 * csv file should have 4 columns, user_id, full name, email, groups (comma separated)
1079 while ($csv = fgets($fd)) {
1080 if (!Clean::isUtf8($csv)) {
1081 $csv = utf8_encode($csv);
1083 $raw = str_getcsv($csv);
1092 $this->import_failures[$line] = ['error' => $error, 'user' => $raw, 'orig' => $csv];
1106 $this->import_failures[$line] = ['error' => $error, 'user' => $raw, 'orig' => $csv];
1198 * Downloads failures as csv file
1206 header('Content-type: text/csv;charset=utf-8');
1207 header('Content-Disposition: attachment; filename="importfails.csv"');
1211 // output the csv