Add CSV to dist config
authorChristian Weiske <cweiske@cweiske.de>
Wed, 18 Mar 2015 20:05:50 +0000 (21:05 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 18 Mar 2015 20:05:50 +0000 (21:05 +0100)
data/bdrem.config.php.dist

index 6d259e6..3689d1b 100644 (file)
@@ -2,6 +2,25 @@
 //source: birthday file
 $source = array('Bdf', '/path/to/birthday.bdf');
 
+//Source: CSV file (simple)
+$source = array('Csv', '/path/to/file.csv');
+
+//Source: CSV file (complex)
+$source = array(
+    'Csv',
+    array(
+        'filename' => '/path/to/file.csv',
+        'columns' => array(
+            'name'  => 0,
+            'event' => 1,
+            'date'  => 2
+        ),
+        'firstLineIsHeader' => true,
+        'defaultEvent' => 'Birthday',
+        'separator' => ',',
+    )
+);
+
 //Source: SQL database
 $source = array(
     'Sql',