diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-02-12 20:48:01 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-02-12 20:48:01 +0100 |
| commit | fe70439784d16f49b4b95befb3df62a62a851174 (patch) | |
| tree | aff8329cc22d91e1f957bd233954d0e640548348 /data/bdrem.config.php.dist | |
| parent | f4339edbbe92a1c4c104f6a58e9cfb4b2a93966e (diff) | |
| download | bdrem-fe70439784d16f49b4b95befb3df62a62a851174.tar.gz bdrem-fe70439784d16f49b4b95befb3df62a62a851174.zip | |
first sql source implementation
Diffstat (limited to 'data/bdrem.config.php.dist')
| -rw-r--r-- | data/bdrem.config.php.dist | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/data/bdrem.config.php.dist b/data/bdrem.config.php.dist index 87d01fc..7af4ed0 100644 --- a/data/bdrem.config.php.dist +++ b/data/bdrem.config.php.dist @@ -1,5 +1,27 @@ <?php +//source: birthday file $source = array('Bdf', '/path/to/birthday.bdf'); + +//Source: SQL database +$source = array( + 'Sql', + array( + 'dsn' => 'mysql:dbname=bdrem;host=127.0.0.1', + 'user' => 'FIXME', + 'password' => 'FIXME', + 'table' => 'contacts', + 'fields' => array( + 'date' => array( + //column name => event title + 'c_birthday' => 'Birthday' + ), + //column with name + 'name' => 'c_name' + ) + ) +); + + $daysBefore = 3; $daysAfter = 14; $locale = 'de_DE.UTF-8'; |
