aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2023-12-20 21:55:59 +0100
committerChristian Weiske <cweiske@cweiske.de>2023-12-20 21:55:59 +0100
commitf50e644a31cb6949248ca1dcccc836df20aea4ef (patch)
tree1df03063ed91543739e2b295538b1da5109057b3
parent4bbbffb1a2f194f85ae2629436dd9ac17b3c819f (diff)
downloadbdrem-f50e644a31cb6949248ca1dcccc836df20aea4ef.tar.gz
bdrem-f50e644a31cb6949248ca1dcccc836df20aea4ef.zip
Use [] array syntax in example config
-rw-r--r--data/bdrem.config.php.dist44
1 files changed, 22 insertions, 22 deletions
diff --git a/data/bdrem.config.php.dist b/data/bdrem.config.php.dist
index 1e877e8..46773ed 100644
--- a/data/bdrem.config.php.dist
+++ b/data/bdrem.config.php.dist
@@ -1,57 +1,57 @@
<?php
//source: birthday file
-$source = array('Bdf', '/path/to/birthday.bdf');
+$source = ['Bdf', '/path/to/birthday.bdf'];
//Source: CSV file (simple)
-$source = array('Csv', '/path/to/file.csv');
+$source = ['Csv', '/path/to/file.csv'];
//Source: CSV file (complex)
-$source = array(
+$source = [
'Csv',
- array(
+ [
'filename' => '/path/to/file.csv',
- 'columns' => array(
+ 'columns' => [
'name' => 0,
'event' => 1,
'date' => 2
- ),
+ ],
'firstLineIsHeader' => true,
'defaultEvent' => 'Birthday',
'separator' => ',',
- )
-);
+ ]
+];
//Source: SQL database
-$source = array(
+$source = [
'Sql',
- array(
+ [
'dsn' => 'mysql:dbname=bdrem;host=127.0.0.1',
'user' => 'FIXME',
'password' => 'FIXME',
'table' => 'contacts',
- 'fields' => array(
- 'date' => array(
+ 'fields' => [
+ 'date' => [
//column name => event title
'c_birthday' => 'Birthday'
- ),
+ ],
//column with name, or array with column names
- 'name' => array('c_name'),
+ 'name' => ['c_name'],
//sprintf-compatible name formatting instruction
'nameFormat' => '%s',
- )
- )
-);
+ ]
+ ]
+];
//Source: LDAP
-$source = array(
+$source = [
'Ldap',
- array(
+ [
'host' => 'ldap.example.org',
'basedn' => 'ou=adressbuch,dc=example,dc=org',
'binddn' => 'cn=FIXME,ou=users,dc=example,dc=org',
'bindpw' => 'FIXME'
- )
-);
+ ]
+];
//Source: Directory of .vcf vCard files (2 subfolder levels supported)
$source = [
@@ -68,5 +68,5 @@ $locale = 'de_DE.UTF-8';
//email settings
$mail_from = 'birthday@example.org';
-$mail_to = array('a@example.org', 'b@example.org');
+$mail_to = ['a@example.org', 'b@example.org'];
?>