Add user CSV import

This commit is contained in:
Frederic Guillot
2015-10-12 14:44:28 -04:00
parent e57386a183
commit e515f37435
20 changed files with 514 additions and 35 deletions

View File

@@ -12,27 +12,6 @@ use Pimple\Container;
*/
class Tool
{
/**
* Write a CSV file
*
* @static
* @access public
* @param array $rows Array of rows
* @param string $filename Output filename
*/
public static function csv(array $rows, $filename = 'php://output')
{
$fp = fopen($filename, 'w');
if (is_resource($fp)) {
foreach ($rows as $fields) {
fputcsv($fp, $fields);
}
fclose($fp);
}
}
/**
* Get the mailbox hash from an email address
*