git.cweiske.de
/
bdrem.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0036cdb
)
Add CSV to dist config
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 18 Mar 2015 20:05:50 +0000
(21:05 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 18 Mar 2015 20:05:50 +0000
(21:05 +0100)
data/bdrem.config.php.dist
patch
|
blob
|
history
diff --git
a/data/bdrem.config.php.dist
b/data/bdrem.config.php.dist
index 6d259e67c9aa8561cc1bc81370cf545b28778caa..3689d1bb4a916c526570d3e6080d61d04c33c40f 100644
(file)
--- a/
data/bdrem.config.php.dist
+++ b/
data/bdrem.config.php.dist
@@
-2,6
+2,25
@@
//source: birthday file
$source = array('Bdf', '/path/to/birthday.bdf');
//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',
//Source: SQL database
$source = array(
'Sql',